Massacre.lua 758 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/Predator/Assassin/Massacre.lua
  3. Script Author : Jabantiz
  4. Script Date : 2014.04.17 05:04:44
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- You must be in stealth to use this!
  10. if not IsStealthed(Caster) then
  11. SendMessage(Caster, "You must be in stealth to use this!", "yellow")
  12. return false
  13. end
  14. return true
  15. end
  16. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  17. -- Inflicts 203 - 339 melee damage on targets in Area of Effect
  18. if MaxVal ~= nil and MinVal < MaxVal then
  19. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  20. else
  21. SpellDamage(Target, DmgType, MinVal)
  22. end
  23. end