ShoulderCharge.lua 822 B

1234567891011121314151617181920212223242526272829303132333435
  1. --[[
  2. Script Name : Spells/Fighter/Brawler/ShoulderCharge.lua
  3. Script Author : LordPazuzu
  4. Script Date : 9/2/2023
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, DmgLow, DmgHigh)
  9. Level = GetLevel(Caster)
  10. SpellLevel = 13
  11. Mastery = SpellLevel + 10
  12. StatBonus = GetStr(Caster) / 10
  13. if Level < Mastery then
  14. LvlBonus = Level - SpellLevel
  15. else LvlBonus = Mastery - SpellLevel
  16. end
  17. DmgBonus = LvlBonus + StatBonus
  18. MaxDmg = math.floor(DmgBonus) * 2 + DmgHigh
  19. MinDmg = math.floor(DmgBonus) * 2 + DmgLow
  20. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  21. AddControlEffect(Target, 4 )
  22. end
  23. function remove(Caster, Target)
  24. RemoveControlEffect(Target, 4)
  25. end