ScriptName DfSV_ss_darkpierceScript extends ActiveMagicEffect

GlobalVariable Property DfSV_PCSheartXP auto

Event OnEffectStart(Actor akTarget, Actor akCaster)
	float heartXP = DfSV_PCSheartXP.GetValue()
	float chdamage = akCaster.GetAV("health")
	float cmdamage = akCaster.GetAV("magicka")
	float csdamage = akCaster.GetAV("stamina")
	
	float hdamage = (chdamage * 0.2)
	float mdamage = (cmdamage * 0.2)
	float sdamage = (csdamage * 0.2)
	
	float heartAttack = (hdamage + mdamage + sdamage)
	
	float heartXPup = (heartAttack *0.5)
	heartXP += heartXPup
	DfSV_PCSheartXP.SetValue(heartXP)
	
	akCaster.DamageAV("health",hdamage)
	akCaster.DamageAV("magicka",mdamage)
	akCaster.DamageAV("stamina",sdamage)
	akTarget.DamageAV("health",hdamage)
	akTarget.DamageAV("magicka",mdamage)
	akTarget.DamageAV("stamina",sdamage)
endEvent