mirror of
https://github.com/mangosfour/server.git
synced 2025-12-17 16:37:00 +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))
|
if (Aura* aura = holder->GetAuraByEffectIndex(eff_index))
|
||||||
{
|
{
|
||||||
// already exists, refresh duration
|
// 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());
|
aura->SetAuraDuration(i_dynobject.GetDuration());
|
||||||
holder->SendAuraUpdate(false);
|
holder->SendAuraUpdate(false);
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
#ifndef __REVISION_NR_H__
|
#ifndef __REVISION_NR_H__
|
||||||
#define __REVISION_NR_H__
|
#define __REVISION_NR_H__
|
||||||
#define REVISION_NR "10336"
|
#define REVISION_NR "10337"
|
||||||
#endif // __REVISION_NR_H__
|
#endif // __REVISION_NR_H__
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue