DaelisDanceofBlades.lua 1.5 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubador/DaelisDanceofBlades.lua
  3. Script Author : neatz09
  4. Script Date : 2020.09.02 12:09:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Increases AGI of caster by 47.0
  9. -- Increases Fervor of caster by 2.0
  10. -- Adds 14.0% to base avoidance.
  11. -- Increases Mitigation of caster vs physical damage by 292
  12. -- Increases Mitigation of caster vs elemental, noxious and arcane damage by 379
  13. -- When damaged with a melee weapon this spell has a 20% chance to cast Song Barrier on target's attacker.
  14. -- Inflicts 39 - 65 mental damage on target
  15. -- When damaged with a spell this spell has a 20% chance to cast Song Barrier on target's attacker.
  16. -- Inflicts 39 - 65 mental damage on target
  17. function cast(Caster, Target, Agi, Avoid, Phys, EleMit, DmgType, MinVal, MaxVal)
  18. Say(Caster, "Fervor not Implemented")
  19. AddSpellBonus(Caster, 2, Agi)
  20. AddSpellBonus(Caster, 696, Avoid)
  21. AddSpellBonus(Caster, 200, Phys)
  22. AddSpellBonus(Caster, 201, EleMit)
  23. AddSpellBonus(Caster, 202, EleMit)
  24. AddSpellBonus(Caster, 203, EleMit)
  25. AddProc(Target, 16, 20)
  26. AddProc(Target, 17, 20)
  27. end
  28. function proc(Caster, Target, Agi, Avoid, Phys, EleMit, DmgType, MinVal, MaxVal)
  29. if Type == 1 then
  30. ProcDamage(Caster, Target, "Song Barrier", DmgType, MinVal, MaxVal)
  31. end
  32. if Type == 7 then
  33. ProcDamage(Caster, Target, "Song Barrier", DmgType, MinVal, MaxVal)
  34. end
  35. end
  36. function remove(Caster, Target)
  37. RemoveSpellBonus(Target)
  38. RemoveProc(Target)
  39. end