9
3

FlashofSteel.lua 570 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Scout/Rogue/Swashbuckler/FlashofSteel.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.20 07:11:31
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal, BonusAmt)
  9. if MaxVal ~= nil and MinVal < MaxVal then
  10. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  11. else
  12. SpellDamage(Target, DmgType, MinVal)
  13. end
  14. AddSpellBonus(Target, 629, BonusAmt)
  15. end
  16. function remove(Caster, Target)
  17. RemoveSpellBonus(Target)
  18. end