LashingTongue.lua 1.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. --[[
  2. Script Name : Spells/Traditions/LashingTongue.lua
  3. Script Author : neatz09
  4. Script Date : 2022.05.21 05:05:40
  5. Script Purpose :
  6. :
  7. --]]
  8. --[[ *Inflicts 7 - 9 crushing damage on target
  9. *Stuns target
  10. *Epic targets gain an immunity to Stun effects of 3.7 seconds and duration is reduced to 0.4 seconds.
  11. *Resistibility increases against targets higher than level 29.
  12. --]]
  13. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  14. Level = GetLevel(Caster)
  15. SpellLevel = 7
  16. Mastery = SpellLevel + 50
  17. StatBonus = GetStr(Caster) / 10
  18. if Level < Mastery then
  19. LvlBonus = Level - SpellLevel
  20. else LvlBonus = Mastery - SpellLevel
  21. end
  22. DmgBonus = LvlBonus + StatBonus
  23. MaxDmg = MaxVal + math.floor(DmgBonus)
  24. MinDmg = MinVal + math.floor(DmgBonus)
  25. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  26. AddControlEffect(Target, 4)
  27. end
  28. function remove(Caster, Target)
  29. RemoveControlEffect(Target, 4)
  30. end