DancingBlade.lua 890 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubadour/DancingBlade.lua
  3. Script Author : Zcoretri
  4. Script Date : 17.March.2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. if IsFlanking(Caster, Target) then
  10. return true
  11. else
  12. SendMessage(Caster, "You must be flanking or behind your target to use this ability!", "yellow")
  13. return false
  14. end
  15. end
  16. function cast(Caster, Target, DmgType, MinDmg, MaxDmg, Mitigation)
  17. -- Inflicts melee damage on target
  18. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  19. -- Decreases Mitigation of target vs elemental, noxious and arcane damage
  20. AddSpellBonus(Target, 201, Mitigation)
  21. AddSpellBonus(Target, 202, Mitigation)
  22. AddSpellBonus(Target, 203, Mitigation)
  23. end
  24. function remove(Caster, Target)
  25. RemoveSpellBonus(Target)
  26. end