DeathsDoor.lua 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/DeathsDoor.lua
  3. Script Author : theFoof
  4. Script Date : 2013.12.08 08:12:24
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases AGI of caster
  9. -- When damaged this spell has a chance to cast Death Barrier on target's attacker.
  10. -- Inflicts disease damage on target
  11. -- Adds to base avoidance.
  12. -- Increases Mitigation of caster vs physical damage
  13. -- Increases Mitigation of caster vs elemental, noxious and arcane damage
  14. function cast(Caster, Target, AgiAmt, ProcChance, DDType, DmgLow, DmgHigh, AvoidAmt, PhysMit, EleNoxMit)
  15. AddSpellBonus(Target, 2, AgiAmt)
  16. AddProc(Target, 2, ProcChance)
  17. AddSpellBonus(Target, 696, AvoidAmt)
  18. AddSpellBonus(Target, 200, PhysMit)
  19. AddSpellBonus(Target, 201, EleNoxMit)
  20. AddSpellBonus(Target, 202, EleNoxMit)
  21. end
  22. function proc(Caster, Target, ProcType, AgiAmt, ProcChance, DDType, DmgLow, DmgHigh, AvoidAmt, PhysMit, EleNoxMit)
  23. ProcDamage(Caster, Target, "Death Barrier", DDType, DmgLow, DmgHigh)
  24. end
  25. function remove(Caster, Target)
  26. RemoveSpellBonus(Caster)
  27. RemoveProc(Caster)
  28. end