Core/Spells: Set a MaxDuration of spellstolen aura to the original aura MaxDuration

This commit is contained in:
tobmaps
2011-06-19 23:08:41 +07:00
parent 50a716e031
commit 6c33347511
+2 -1
View File
@@ -3807,7 +3807,8 @@ void Unit::RemoveAurasDueToSpellBySteal(uint32 spellId, uint64 casterGUID, Unit
aura->SetIsSingleTarget(true);
caster->GetSingleCastAuras().push_back(aura);
}
newAura->SetLoadedState(dur, dur, stealCharge ? 1 : aura->GetCharges(), 1, recalculateMask, &damage[0]);
// FIXME: using aura->GetMaxDuration() maybe not blizzlike but it fixes stealing of spells like Innervate
newAura->SetLoadedState(aura->GetMaxDuration(), dur, stealCharge ? 1 : aura->GetCharges(), 1, recalculateMask, &damage[0]);
newAura->ApplyForTargets();
}
}