Core/Spells: Harvest Soul will now use GetTickNumber instead of a own variable

This commit is contained in:
Ovahlord committed 2019-03-22 01:29:43 +01:00
1 parent e5ce4f5fea
commit 65ce8409a3
1 file changed
+1 -5
+1 -5
View File
@@ -1634,7 +1634,6 @@ class spell_warl_soul_harvest : public AuraScript
bool Load() override
{
_tickCounts = 0;
return true;
}
@@ -1645,8 +1644,7 @@ class spell_warl_soul_harvest : public AuraScript
void HandleDummy(AuraEffect const* aurEff)
{
_tickCounts++;
if (!(_tickCounts % 3))
if (!(aurEff->GetTickNumber() % 3))
GetTarget()->CastSpell(GetTarget(), SPELL_WARLOCK_SOUL_HARVEST_ENERGIZE, true, nullptr, aurEff);
}
@@ -1654,8 +1652,6 @@ class spell_warl_soul_harvest : public AuraScript
{
OnEffectPeriodic += AuraEffectPeriodicFn(spell_warl_soul_harvest::HandleDummy, EFFECT_0, SPELL_AURA_PERIODIC_DUMMY);
}
private:
uint8 _tickCounts;
};
void AddSC_warlock_spell_scripts()