mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 10:37:12 +00:00
[10337] Correctly handle auras with infinite duration in code added by [10335]...
This commit is contained in:
parent
085811fc06
commit
0aa9e5a133
2 changed files with 2 additions and 2 deletions
|
|
@ -180,7 +180,7 @@ inline void MaNGOS::DynamicObjectUpdater::VisitHelper(Unit* target)
|
|||
if (Aura* aura = holder->GetAuraByEffectIndex(eff_index))
|
||||
{
|
||||
// already exists, refresh duration
|
||||
if (aura->GetAuraDuration() < i_dynobject.GetDuration())
|
||||
if (aura->GetAuraDuration() >=0 && uint32(aura->GetAuraDuration()) < i_dynobject.GetDuration())
|
||||
{
|
||||
aura->SetAuraDuration(i_dynobject.GetDuration());
|
||||
holder->SendAuraUpdate(false);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue