9
3

FlamboyantStrike.lua 666 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/FlamboyantStrike.lua
  3. Script Author : neatz09
  4. Script Date : 2019.09.23 01:09:37
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Inflicts 267 - 446 melee damage on target
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, BonusAmt)
  10. if MaxVal ~= nil and MinVal < MaxVal then
  11. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  12. else
  13. SpellDamage(Target, DmgType, MinVal)
  14. end
  15. -- Decreases INT of target by 142.6
  16. AddSpellBonus(Target, 4, BonusAmt)
  17. end
  18. function remove(Caster, Target)
  19. RemoveSpellBonus(Target)
  20. end