123456789101112131415161718192021222324252627 |
- --[[
- Script Name : Spells/Fighter/Taunt.lua
- Script Author : LordPazuzu
- Script Date : 9/29/2023
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, MinVal, MaxVal)
- Level = GetLevel(Caster)
- SpellLevel = 3
- Mastery = SpellLevel + 10
- StatBonus = GetStr(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
-
- HateBonus = LvlBonus * 2
- MaxHate = MaxVal + HateBonus
- MinHate = MinVal + HateBonus
- AddHate(Caster, Target, math.random(MinHate,MaxHate),1)
-
- end
|