NullifyingStaff.lua 695 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/AA/NullifyingStaff.lua
  3. Script Author : neatz09
  4. Script Date : 2020.12.11 07:12:57
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 311 - 519 melee damage on target
  9. -- Decreases Combat Mitigation of target by 4.4.
  10. -- Decreases Mitigation of target vs arcane damage by 1228
  11. function cast(Caster, Target, DmgType, MinVal, MaxVal, CombatMit, Arcane)
  12. SpellDamage(Target, DmgType, MinVal, MaxVal)
  13. --if LastSpellAttackHit() then
  14. --AddSpellBonus(Target, 0, CombatMit)
  15. --end
  16. if LastSpellAttackHit() then
  17. AddSpellBonus(Target, 203, Arcane)
  18. end
  19. end
  20. function remove(Caster, Target)
  21. RemoveSpellBonus(Target)
  22. end