aboutsummaryrefslogtreecommitdiff
path: root/src/server/scripts/Spells
diff options
context:
space:
mode:
authorariel- <ariel-@users.noreply.github.com>2016-10-05 03:10:05 -0300
committerjoschiwald <joschiwald.trinity@gmail.com>2017-08-13 15:14:21 +0200
commitd5c7675bccaaf87678cdd32215a3db2401fda137 (patch)
tree28aae624e5faf7aa8d6654ce8978479e899fbedf /src/server/scripts/Spells
parent2b8af950da11c83ba9c48c4e741d709c3531e949 (diff)
Core/Auras: reset periodic aura timers by default. Except when aura comes from triggered spell
Closes #17961 (cherry picked from commit b5e8e0a5db69f2d8075c7e16e4e70c4373d4424f) # Conflicts: # src/server/game/Entities/Unit/Unit.cpp # src/server/game/Entities/Unit/Unit.h # src/server/game/Spells/Auras/SpellAuraEffects.cpp # src/server/game/Spells/Auras/SpellAuraEffects.h # src/server/game/Spells/Auras/SpellAuras.cpp # src/server/game/Spells/Auras/SpellAuras.h # src/server/game/Spells/Spell.cpp # src/server/scripts/Outland/HellfireCitadel/BloodFurnace/boss_kelidan_the_breaker.cpp # src/server/scripts/Spells/spell_priest.cpp
Diffstat (limited to 'src/server/scripts/Spells')
-rw-r--r--src/server/scripts/Spells/spell_warlock.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/server/scripts/Spells/spell_warlock.cpp b/src/server/scripts/Spells/spell_warlock.cpp
index e357549fdec..9054fc984b2 100644
--- a/src/server/scripts/Spells/spell_warlock.cpp
+++ b/src/server/scripts/Spells/spell_warlock.cpp
@@ -527,6 +527,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, flag128(0x2, 0, 0), caster->GetGUID()))
{
@@ -536,6 +537,7 @@ class spell_warl_everlasting_affliction : public SpellScriptLoader
aurEff->CalculatePeriodic(caster, false, false);
aurEff->GetBase()->RefreshDuration(true);
}
+ }
}
void Register() override