SilentPalm.lua 588 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/Monk/SilentPalm.lua
  3. Script Author : Dello
  4. Script Date : 16/06/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DmgType, MinVal)
  13. end
  14. if not IsEpic(Target) then
  15. AddControlEffect(Target, 2)
  16. end
  17. end
  18. function remove(Caster, Target)
  19. RemoveControlEffect(Target, 2)
  20. end