From 19f3dc297a3b60729ebe435952beb2237a4f9ef0 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 1 Dec 2014 17:33:39 +0200 Subject: [PATCH] Eluna fix visual updates for aura methods for (c)mangos --- AuraMethods.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/AuraMethods.h b/AuraMethods.h index 99cbeb4..0b0912e 100644 --- a/AuraMethods.h +++ b/AuraMethods.h @@ -138,6 +138,7 @@ namespace LuaAura int32 duration = Eluna::CHECKVAL(E->L, 2); #ifndef TRINITY aura->GetHolder()->SetAuraDuration(duration); + aura->GetHolder()->SendAuraUpdate(false); #else aura->SetDuration(duration); #endif @@ -157,6 +158,7 @@ namespace LuaAura int32 duration = Eluna::CHECKVAL(E->L, 2); #ifndef TRINITY aura->GetHolder()->SetAuraMaxDuration(duration); + aura->GetHolder()->SendAuraUpdate(false); #else aura->SetMaxDuration(duration); #endif @@ -188,7 +190,7 @@ namespace LuaAura int Remove(Eluna* E, Aura* aura) { #ifndef TRINITY - aura->GetHolder()->RemoveAura(aura->GetEffIndex()); + aura->GetTarget()->RemoveSpellAuraHolder(aura->GetHolder(), AURA_REMOVE_BY_CANCEL); #else aura->Remove(); #endif