aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authormegamage <none@none>2009-05-10 01:20:12 -0500
committermegamage <none@none>2009-05-10 01:20:12 -0500
commitd0bf6edd3603e978a0b1aa47dd25526245e28549 (patch)
tree67ea036ce343cb8e097d1acc379db73b5111be29 /src
parentaba285664fe9660a545bb4abc3d31cedb5142540 (diff)
*Show correct duration for persistent aura.
--HG-- branch : trunk
Diffstat (limited to 'src')
-rw-r--r--src/game/GridNotifiersImpl.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/game/GridNotifiersImpl.h b/src/game/GridNotifiersImpl.h
index 7b7911820c6..12f3706c4e2 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);
}