1234567891011121314151617181920212223242526 |
- --[[
- Script Name : Spells/Fighter/Warrior/Guardian/Retaliate.lua
- Script Author : Dello
- Script Date : 10/6/2014
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, DmgType, MinVal, MaxVal)
- if MaxVal ~= nil and MinVal < MaxVal then
- SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
- else
- SpellDamage(Target, DmgType, MinVal)
- end
- if not IsEpic(Target) then
- AddControlEffect(Target, 3)
- end
- end
- function remove(Caster, Target)
- RemoveControlEffect(Target, 3)
- end
|