9
3

SandrasDeafeningStrike.lua 1.0 KB

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Scout/Bard/Troubador/SandrasDeafeningStrike.lua
  3. Script Author : Zcoretri
  4. Script Date : 17.March.2014
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinDmg, MaxDmg, MinDebuff, MaxDebuff, MinBuff, MaxBuff)
  9. -- Inflicts mental damage on target
  10. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  11. -- Decreases power of target
  12. if MaxDebuff ~= nil and MinDebuff < MaxDebuff then
  13. DebuffAmt = math.random(MinDebuff, MaxDebuff)
  14. else
  15. DebuffAmt = MinDebuff
  16. end
  17. AddSpellBonus(Caster, 501, DebuffAmt)
  18. -- Increases power of caster
  19. if MaxBuff ~= nil and MinBuff < MaxBuff then
  20. BuffAmt = math.random(MinBuff, MaxBuff)
  21. else
  22. BuffAmt = MinBuff
  23. end
  24. AddSpellBonus(Caster, 501, BuffAmt)
  25. end
  26. function remove(Caster, Target, DmgType, MinDmg, MaxDmg, MinDebuff, MaxDebuff, MinBuff, MaxBuff)
  27. RemoveSpellBonus(Target)
  28. RemoveSpellBonus(Caster)
  29. end