9
3

TelluricStrike.lua 647 B

123456789101112131415161718192021
  1. --[[
  2. Script Name : Spells/Pet/TelluricStrike.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.18 02:11:37
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, MinVal, MaxVal, DmgType, DmgLow, DmgHigh, MinHate, MaxHate)
  9. local IntBonus = GetInt(Caster) / 10
  10. local MinDmg = math.floor(DmgLow + IntBonus)
  11. local MaxDmg = math.floor(DmgHigh + IntBonus)
  12. local MinHate = math.floor(MinVal + IntBonus)
  13. local MaxHate = math.floor(MaxVal + IntBonus)
  14. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  15. AddHate(Caster, Target, MakeRandomInt(MinHate, MaxHate), 1)
  16. end