MisfortunesKiss.lua 789 B

12345678910111213141516171819202122232425262728293031
  1. --[[
  2. Script Name : Spells/Scout/Bard/Dirge/MisfortunesKiss.lua
  3. Script Author : theFoof
  4. Script Date : 2013.12.8
  5. Script Purpose :
  6. :
  7. --]]
  8. function precast(Caster, Target)
  9. if IsStealthed(Caster) then
  10. return true
  11. end
  12. SendMessage(Caster, "You must be sneaking to use this ability.", "yellow")
  13. return false, 0
  14. end
  15. function cast(Caster, Target, DmgType, DmgLow, DmgHigh, WisAmt)
  16. -- Info from spell_display_effects (remove from script when done)
  17. -- Inflicts 18 - 30 melee damage on target
  18. -- Decreases WIS of target by 5.0
  19. -- You must be sneaking to use this ability.
  20. SpellDamage(Target, DmgType, DmgLow, DmgHigh)
  21. AddSpellBonus(Target, 3, WisAmt)
  22. end
  23. function remove(Caster, Target)
  24. RemoveSpellBonus(Target)
  25. end