DarosDullBlade.lua 754 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/DarosDullBlade.lua
  3. Script Author : theFoof
  4. Script Date : 2014.2.20
  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, DmgLow, DmgHigh, DPS)
  17. -- Inflicts 24 - 41 melee damage on target
  18. -- Decreases Damage Per Second of target by 10.9
  19. -- Must be flanking or behind
  20. SpellDamage(Target, DmgType, DmgLow, DmgHigh)
  21. AddSpellBonus(Target, 629, DPS)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus()
  25. end