123456789101112131415161718192021222324252627282930313233343536373839404142434445464748 |
- --[[
- Script Name : Spells/Traditions/VenomousBite.lua
- Script Author : LordPazuzu
- Script Date : 2023.08.27 02:08:03
- Script Purpose :
- :
- --]]
- function cast(Caster, Target, MainVal, DoTVal)
- Level = GetLevel(Caster)
- SpellLevel = 3
- Mastery = SpellLevel + 50
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
- TotalDmg = MainVal + LvlBonus
- SpellDamage(Target, 2, TotalDmg, TotalDmg)
- end
- function tick(Caster, Target, MainVal, DoTVal)
- SetInfoStructString(Target, "visual_state", "result_poison_rain_damage")
- Level = GetLevel(Caster)
- SpellLevel = 4
- Mastery = SpellLevel + 3
-
- if Level < Mastery then
- LvlBonus = Level - SpellLevel
- else LvlBonus = Mastery - SpellLevel
- end
- PowerDrain = 0 - DoTVal - LvlBonus
- ModifyPower(Target, PowerDrain)
- if IsPlayer(Target) and GetClientVersion(Target) <= 526 then
- SpawnSet(Target,"visual_state",3227)
- else
- SpawnSet(Target,"visual_state",3227)
- end
- --SpellHeal("Power", PowerDrain, PowerDrain, Target)
- end
- function remove(Caster, Target, DoTType, MinVal, MaxVal)
- SpawnSet(Target,"visual_state",0)
- end
|