MurderousRake.lua 964 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/MurderousRake.lua
  3. Script Author : Zcoretri
  4. Script Date : 17.March.2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Must be flanking or behind
  10. if IsBehind(Caster, Target) then
  11. return true
  12. else
  13. SendMessage(Caster, "You must be flanking or behind your target to use this ability!", "yellow")
  14. end
  15. end
  16. function cast(Caster, Target, DmgType, MinDmg, MaxDmg, Mitigation1)
  17. -- Decreases Mitigation of target vs elemental and noxious damage by 360
  18. -- Decreases Mitigation of target vs arcane damage by 360
  19. -- Inflicts 145 - 241 melee damage on target
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. AddSpellBonus(Target, 201, Mitigation1)
  22. AddSpellBonus(Target, 202, Mitigation1)
  23. AddSpellBonus(Target, 203, Mitigation1)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Target)
  27. end