IF
	HPLT(Myself,10)
THEN
	RESPONSE #100
		CreateVisualEffectObject("SPGENHLA",Myself)
                SetGlobal("RU_RAIGEN_APPEAR","GLOBAL",2)
                DropInventory()

		DestroySelf()
END

IF
	See(NearestEnemyOf(Myself))
        GlobalLT("PRO1_NUM","LOCALS",6)
        !GlobalTimerNotExpired("PRO1_TIMER","LOCALS")
	!HPLT(Myself,10)
THEN
	RESPONSE #100
                SetGlobalTimer("PRO1_TIMER","LOCALS",60)
                IncrementGlobal("PRO1_NUM","LOCALS",1)
                ReallyForceSpellRES("SPCL901",Myself)
                Continue()
END

IF
        !GlobalTimerNotExpired("ELECTRIC_SKILLS","LOCALS")
        See(NearestEnemyOf(Myself))
        !See(SecondNearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #80
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@168) // 볼타 체이닝 스피어!
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
	RESPONSE #20
                Continue()
END

IF
        !GlobalTimerNotExpired("ELECTRIC_SKILLS","LOCALS")
        See(NearestEnemyOf(Myself))
        See(SecondNearestEnemyOf(Myself))
        !See(ThirdNearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #80
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@168) // 볼타 체이닝 스피어!
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
	RESPONSE #20
                Continue()
END

IF
        !GlobalTimerNotExpired("ELECTRIC_SKILLS","LOCALS")
        See(NearestEnemyOf(Myself))
        See(SecondNearestEnemyOf(Myself))
        See(ThirdNearestEnemyOf(Myself))
        !See(FourthNearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",12)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@169) // 볼타 볼텍스!
                ReallyForceSpellRES("RU_RAIG2",NearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@168) // 볼타 체이닝 스피어!
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",ThirdNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",ThirdNearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
END

IF
        !GlobalTimerNotExpired("ELECTRIC_SKILLS","LOCALS")
        See(NearestEnemyOf(Myself))
        See(SecondNearestEnemyOf(Myself))
        See(ThirdNearestEnemyOf(Myself))
        See(FourthNearestEnemyOf(Myself))
        !See(FifthNearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",12)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@169) // 볼타 볼텍스!
                ReallyForceSpellRES("RU_RAIG2",NearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@168) // 볼타 체이닝 스피어!
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",ThirdNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",FourthNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
END

IF
        !GlobalTimerNotExpired("ELECTRIC_SKILLS","LOCALS")
        See(NearestEnemyOf(Myself))
        See(SecondNearestEnemyOf(Myself))
        See(ThirdNearestEnemyOf(Myself))
        See(FourthNearestEnemyOf(Myself))
        See(FifthNearestEnemyOf(Myself))
        !See(SixthNearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",12)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@169) // 볼타 볼텍스!
                ReallyForceSpellRES("RU_RAIG2",NearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@168) // 볼타 체이닝 스피어!
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",ThirdNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",FourthNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",FifthNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
END

IF
        !GlobalTimerNotExpired("ELECTRIC_SKILLS","LOCALS")
        See(NearestEnemyOf(Myself))
        See(SecondNearestEnemyOf(Myself))
        See(ThirdNearestEnemyOf(Myself))
        See(FourthNearestEnemyOf(Myself))
        See(FifthNearestEnemyOf(Myself))
        See(SixthNearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@169) // 볼타 볼텍스!
                ReallyForceSpellRES("RU_RAIG2",NearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
	RESPONSE #50
                SetGlobalTimer("ELECTRIC_SKILLS","LOCALS",6)
                CreateVisualEffectObject("SPFLSRIN",Myself)
                DisplayStringHead(Myself,@168) // 볼타 체이닝 스피어!
                ReallyForceSpellRES("RU_RAIG1",NearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SecondNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",ThirdNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",FourthNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",FifthNearestEnemyOf(Myself))
                SmallWait(5)
                ReallyForceSpellRES("RU_RAIG1",SixthNearestEnemyOf(Myself))
		ScreenShake([20.20],1)
                Continue()
END

IF
	See(NearestEnemyOf(Myself))
        GlobalLT("WIND_NUM","LOCALS",11)
	!HPLT(Myself,10)
THEN
	RESPONSE #100
                IncrementGlobal("WIND_NUM","LOCALS",1)
                ReallyForceSpellRES("SPCL901",Myself)
                Continue()
END

IF
	See(NearestEnemyOf(Myself))
        CheckStat(NearestEnemyOf(Myself),0,WIZARD_PROTECTION_FROM_MAGIC_WEAPONS)
	!HPLT(Myself,10)
THEN
	RESPONSE #100
		AttackReevaluate(NearestEnemyOf(Myself),30)
END

IF
	See(NearestEnemyOf(Myself))
	!HPLT(Myself,10)
THEN
	RESPONSE #100
		AttackReevaluate(NearestEnemyOf(Myself),30)
END

IF
	!See(NearestEnemyOf(Myself))
        InActiveArea(Myself)
        OR(2)
          GlobalGT("WIND_NUM","LOCALS",0)
          GlobalGT("PRO1_NUM","LOCALS",0)
THEN
	RESPONSE #100
		SetGlobal("WIND_NUM","LOCALS",0)
                SetGlobal("PRO1_NUM","LOCALS",0)
END

IF
        !See(NearestEnemyOf(Myself))
        !InActiveArea(Myself)
        Global("RU_RAIGEN_APPEAR","GLOBAL",1)
THEN
	RESPONSE #100
                SetGlobal("RU_RAIGEN_APPEAR","GLOBAL",0)
		DestroySelf()
END

IF
        AttackedBy([GOODCUTOFF],DEFAULT)
	Allegiance(Myself,NEUTRAL)
THEN
	RESPONSE #100
                Enemy()
END