NightStrike.lua 780 B

1234567891011121314151617181920212223242526272829
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubadour/NightStrike.lua
  3. Script Author : Zcoretri
  4. Script Date : 17.March.2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. -- You must be sneaking to use this ability.
  10. if IsStealthed(Caster) then
  11. return true
  12. else
  13. SendMessage(Caster, "You must be sneaking to use this ability!", "yellow")
  14. return false, 0
  15. end
  16. end
  17. function cast(Caster, Target, DmgType, MinDmg, MaxDmg, IntAmt)
  18. -- Decreases INT of target by 10.4
  19. AddSpellBonus(Target, 4, IntAmt)
  20. -- Inflicts melee damage on target
  21. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  22. end
  23. function remove(Caster, Target, DmgType, MinDmg, MaxDmg, IntAmt)
  24. RemoveSpellBonus(Target)
  25. end