Core/Auras: reset periodic aura timers by default. Except when aura comes from triggered spell
This commit is contained in:
1 parent
8f4fd78cbf
commit
a7a024d1d6
10 files changed
+62
-55
No files matched your search
@@ -544,6 +544,7 @@ class spell_warl_everlasting_affliction : public SpellScriptLoader
|
||||
{
|
||||
Unit* caster = GetCaster();
|
||||
if (Unit* target = GetHitUnit())
|
||||
{
|
||||
// Refresh corruption on target
|
||||
if (AuraEffect* aurEff = target->GetAuraEffect(SPELL_AURA_PERIODIC_DAMAGE, SPELLFAMILY_WARLOCK, 0x2, 0, 0, caster->GetGUID()))
|
||||
{
|
||||
@@ -551,6 +552,7 @@ class spell_warl_everlasting_affliction : public SpellScriptLoader
|
||||
aurEff->CalculatePeriodic(caster, false, false);
|
||||
aurEff->GetBase()->RefreshDuration(true);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
void Register() override
|
||||
|
||||
Reference in new issue
Block a user