9
3

Blasphemy.lua 583 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Fighter/Crusader/Shadowknight/Blasphemy.lua
  3. Script Author : Dello
  4. Script Date : 15/07/2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal, ResistAmt)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. AddHate(Caster, Target, math.random(MinVal, MaxVal), 1)
  11. else
  12. AddHate(Caster, Target, MinVal, 1)
  13. end
  14. if target ~= nil then
  15. Interrupt(Target)
  16. end
  17. AddSpellBonus(Target, 202, ResistAmt)
  18. end
  19. function remove(Caster, Target)
  20. RemoveSpellBonus(Target)
  21. end