QuickSwipe.lua 814 B

123456789101112131415161718192021222324252627282930
  1. --[[
  2. Script Name : Spells/Scout/Animist/Beastlord/QuickSwipe.lua
  3. Script Author : John Adams
  4. Script Date : 2013.11.20 09:11:24
  5. Script Purpose :
  6. :
  7. --]]
  8. -- Info from spell_display_effects (remove from script when done)
  9. function cast(Caster, Target, DmgType, MinVal, MaxVal, DPSAmt, AttackSpeed)
  10. -- Inflicts 7 - 13 melee damage on target
  11. if MaxVal ~= nil and MinVal < MaxVal then
  12. SpellDamage(Target, DmgType, math.random(MinVal, MaxVal))
  13. else
  14. SpellDamage(Target, DmgType, MinVal)
  15. end
  16. -- Decreases Damage Per Second of target by 4.2
  17. AddSpellBonus(Target, 629, DPSAmt)
  18. -- Decreases Attack Speed of target by 3.6
  19. AddSpellBonus(Target, 617, AttackSpeed)
  20. end
  21. function remove(Caster, Target)
  22. RemoveSpellBonus(Target)
  23. end