*Show correct duration for persistent aura.

--HG--
branch : trunk
This commit is contained in:
megamage
2009-05-10 01:20:12 -05:00
parent aba285664f
commit d0bf6edd36
+3 -1
View File
@@ -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);
}