9
3

DeathsDoor.lua 1.2 KB

123456789101112131415161718192021222324252627282930313233
  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. Say(Caster, "Fervor Not Implemented.")
  16. AddSpellBonus(Target, 2, AgiAmt)
  17. AddProc(Target, 2, ProcChance)
  18. AddSpellBonus(Target, 696, AvoidAmt)
  19. AddSpellBonus(Target, 200, PhysMit)
  20. AddSpellBonus(Target, 201, EleNoxMit)
  21. AddSpellBonus(Target, 202, EleNoxMit)
  22. end
  23. function proc(Caster, Target, ProcType, AgiAmt, ProcChance, DDType, DmgLow, DmgHigh, AvoidAmt, PhysMit, EleNoxMit)
  24. ProcDamage(Caster, Target, "Death Barrier", DDType, DmgLow, DmgHigh)
  25. end
  26. function remove(Caster, Target)
  27. RemoveSpellBonus(Caster)
  28. RemoveProc(Caster)
  29. end