Scriptname swordMagicFullBursterScript extends activemagiceffect

import Utility

ActorValue property HealthAV  Auto Const
EffectShader property MagicEffectShader auto const

GlobalVariable Property swordBlastDamageRate  Auto

Event OnEffectStart(Actor akTarget, Actor akCaster)

	float Damage
	Actor PlayerActor = Game.GetPlayer()

	Damage = PlayerActor.GetLevel()
	Damage *= swordBlastDamageRate.getValue() as float

	akTarget.DamageValue(HealthAV ,Damage)

	MagicEffectShader.play(akTarget, 1.0)
	akTarget.StartCombat(PlayerActor)

EndEvent

