9
3

Rob.lua 733 B

1234567891011121314151617181920212223242526
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Brigand/Rob.lua
  3. Script Purpose : Brigand Stealth attack + Debuff
  4. Script Author : Zcoretri
  5. Script Date : 13.March.2014
  6. Script Notes :
  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, MinDmg, MaxDmg, StatAmt)
  16. -- Inflicts 13 - 21 melee damage on target
  17. -- Decreases STR of target by 5.0
  18. SpellDamage(Target, DmgType, dmgAmount)
  19. AddSpellBonus(Target, 0, StatAmt)
  20. end
  21. function remove(Caster, Target, DmgType, MinDmg, MaxDmg, StatAmt)
  22. RemoveSpellBonus(Target)
  23. end