Scriptname KruziikSpellEffect extends activemagiceffect  

ImageSpaceModifier Property IS_Intro auto
ImageSpaceModifier Property IS_Main auto
ImageSpaceModifier Property IS_Outro auto


Event OnEffectStart(Actor akTarget, Actor akCaster)
	akCaster.ModAV("WeaponSpeedMult", 1.3)
	akCaster.ModAV("LeftWeaponSpeedMult", 1.3)
	akCaster.ModAV("SpeedMult", 30)


	IS_Intro.remove()
	IS_Main.remove()
	IS_Outro.remove()

	IS_Intro.Apply()
	utility.wait(0.83)
	IS_Intro.PopTo(IS_Main, 1.0)
EndEvent

Event OnEffectFinish(Actor akTarget, Actor akCaster)
    akCaster.ModAV("WeaponSpeedMult", -1.3)
    akCaster.ModAV("LeftWeaponSpeedMult", -1.3)
    akCaster.ModAV("SpeedMult", -30)


	Input.HoldKey(Input.GetMappedKey("Sprint"))
	Utility.Wait(0.1)
	Input.ReleaseKey(Input.GetMappedKey("Sprint"))

    IS_Intro.Remove()
    IS_Main.PopTo(IS_Outro, 1)
EndEvent