mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix aura update for (c)mangos tbc and classic
This commit is contained in:
@@ -138,7 +138,11 @@ namespace LuaAura
|
|||||||
int32 duration = Eluna::CHECKVAL<int32>(E->L, 2);
|
int32 duration = Eluna::CHECKVAL<int32>(E->L, 2);
|
||||||
#ifndef TRINITY
|
#ifndef TRINITY
|
||||||
aura->GetHolder()->SetAuraDuration(duration);
|
aura->GetHolder()->SetAuraDuration(duration);
|
||||||
|
#if (defined(TBC) || defined(CLASSIC))
|
||||||
|
aura->GetHolder()->UpdateAuraDuration();
|
||||||
|
#else
|
||||||
aura->GetHolder()->SendAuraUpdate(false);
|
aura->GetHolder()->SendAuraUpdate(false);
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
aura->SetDuration(duration);
|
aura->SetDuration(duration);
|
||||||
#endif
|
#endif
|
||||||
@@ -158,7 +162,11 @@ namespace LuaAura
|
|||||||
int32 duration = Eluna::CHECKVAL<int32>(E->L, 2);
|
int32 duration = Eluna::CHECKVAL<int32>(E->L, 2);
|
||||||
#ifndef TRINITY
|
#ifndef TRINITY
|
||||||
aura->GetHolder()->SetAuraMaxDuration(duration);
|
aura->GetHolder()->SetAuraMaxDuration(duration);
|
||||||
|
#if (defined(TBC) || defined(CLASSIC))
|
||||||
|
aura->GetHolder()->UpdateAuraDuration();
|
||||||
|
#else
|
||||||
aura->GetHolder()->SendAuraUpdate(false);
|
aura->GetHolder()->SendAuraUpdate(false);
|
||||||
|
#endif
|
||||||
#else
|
#else
|
||||||
aura->SetMaxDuration(duration);
|
aura->SetMaxDuration(duration);
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user