KidneyStab.lua 791 B

12345678910111213141516171819202122232425262728
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/KidneyStab.lua
  3. Script Author : Jabantiz
  4. Script Date : 2013.12.15 08:12:55
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- Must be flanking or behind
  10. return IsFlanking(Target, Caster)
  11. end
  12. function cast(Caster, Target, DmgType, MinVal, MaxVal, BonusAmt)
  13. -- Inflicts 29 - 36 melee damage on target
  14. if MaxVal ~= nil and MinVal < MaxVal then
  15. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  16. else
  17. SpellDamage(Target, DmgType, MinVal)
  18. end
  19. -- Decreases Mitigation of target vs physical damage by 54
  20. AddSpellBonus(Target, 200, BonusAmt)
  21. end
  22. function remove(Caster, Target)
  23. RemoveSpellBonus(Target)
  24. end