12345678910111213141516171819202122232425262728293031323334353637383940414243444546 |
- --[[
- Script Name : Spells/Priest/Druid/SylvanWind.lua
- Script Author : LordPazuzu
- Script Date : 3/18/2023
- Script Purpose :
- :
- --]]
- -- Heals group members (AE) for 61 - 74
- -- Heals group members (AE) for 10 - 12 every second
- function cast(Caster, Target, HealMin, HealMax, TickMin, TickMax)
- Level = GetLevel(Caster)
- SpellLevel = 16
- Mastery = SpellLevel + 10
- StatBonus = GetWis(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
- HealBonus = LvlBonus + StatBonus
- MinHeal = math.floor(HealBonus) * 2 + HealMin
- MaxHeal = math.floor(HealBonus) * 2 + HealMax
-
- SpellHeal("Heal", MinHeal, MaxHeal)
- end
- function tick(Caster, Target, HealMin, HealMax, TickMin, TickMax)
- Level = GetLevel(Caster)
- SpellLevel = 16
- Mastery = SpellLevel + 10
- StatBonus = GetWis(Caster) / 10
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
- HealBonus = LvlBonus + StatBonus
- MinTick = math.floor(HealBonus) * 2 + TickMin
- MaxTick = math.floor(HealBonus) * 2 + TickMax
-
- SpellHeal("Heal", MinTick, MaxTick)
- end
|