TellurianForce.lua 565 B

12345678910111213141516171819202122232425
  1. --[[
  2. Script Name : Spells/Pet/TellurianForce.lua
  3. Script Author : LordPazuzu
  4. Script Date : 2022.11.19 02:11:28
  5. Script Purpose :
  6. :
  7. --]]
  8. function cast(Caster, Target, DmgType, MinVal, MaxVal)
  9. local IntBonus = GetInt(Caster) / 10
  10. local MinDmg = math.floor(MinVal + IntBonus)
  11. local MaxDmg = math.floor(MaxVal + IntBonus)
  12. SpellDamage(Target, DmgType, MinDmg, MaxDmg)
  13. AddControlEffect(Target, 4)
  14. end
  15. function remove(Caster, Target)
  16. RemoveControlEffect(Target, 4)
  17. end