mirror of
https://github.com/azerothcore/mod-ale
synced 2025-11-29 15:38:17 +08:00
Eluna fix visual updates for aura methods for (c)mangos
This commit is contained in:
@@ -138,6 +138,7 @@ 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);
|
||||||
|
aura->GetHolder()->SendAuraUpdate(false);
|
||||||
#else
|
#else
|
||||||
aura->SetDuration(duration);
|
aura->SetDuration(duration);
|
||||||
#endif
|
#endif
|
||||||
@@ -157,6 +158,7 @@ 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);
|
||||||
|
aura->GetHolder()->SendAuraUpdate(false);
|
||||||
#else
|
#else
|
||||||
aura->SetMaxDuration(duration);
|
aura->SetMaxDuration(duration);
|
||||||
#endif
|
#endif
|
||||||
@@ -188,7 +190,7 @@ namespace LuaAura
|
|||||||
int Remove(Eluna* E, Aura* aura)
|
int Remove(Eluna* E, Aura* aura)
|
||||||
{
|
{
|
||||||
#ifndef TRINITY
|
#ifndef TRINITY
|
||||||
aura->GetHolder()->RemoveAura(aura->GetEffIndex());
|
aura->GetTarget()->RemoveSpellAuraHolder(aura->GetHolder(), AURA_REMOVE_BY_CANCEL);
|
||||||
#else
|
#else
|
||||||
aura->Remove();
|
aura->Remove();
|
||||||
#endif
|
#endif
|
||||||
|
|||||||
Reference in New Issue
Block a user