From d0bf6edd3603e978a0b1aa47dd25526245e28549 Mon Sep 17 00:00:00 2001 From: megamage Date: Sun, 10 May 2009 01:20:12 -0500 Subject: [PATCH] *Show correct duration for persistent aura. --HG-- branch : trunk --- src/game/GridNotifiersImpl.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h index 7b7911820c..12f3706c4e 100644 --- a/src/game/GridNotifiersImpl.h +++ b/src/game/GridNotifiersImpl.h @@ -208,7 +208,9 @@ inline void Trinity::DynamicObjectUpdater::VisitHelper(Unit* target) if (target->IsImmunedToSpell(spellInfo) || target->IsImmunedToSpellEffect(spellInfo, eff_index)) return; // Apply PersistentAreaAura on target - target->AddAuraEffect(spellInfo, eff_index, i_dynobject.GetCaster()); + if(Aura *aur = target->AddAuraEffect(spellInfo, eff_index, i_dynobject.GetCaster())) + aur->SetAuraDuration(i_dynobject.GetDuration()); + i_dynobject.AddAffected(target); }