From 28788e0efeddf4d7faf9a15c514257b277f0b352 Mon Sep 17 00:00:00 2001 From: Rochet2 Date: Mon, 1 Dec 2014 21:31:34 +0200 Subject: [PATCH] Eluna fix aura update for (c)mangos tbc and classic --- AuraMethods.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/AuraMethods.h b/AuraMethods.h index 0b0912e..76166eb 100644 --- a/AuraMethods.h +++ b/AuraMethods.h @@ -138,7 +138,11 @@ namespace LuaAura int32 duration = Eluna::CHECKVAL(E->L, 2); #ifndef TRINITY aura->GetHolder()->SetAuraDuration(duration); +#if (defined(TBC) || defined(CLASSIC)) + aura->GetHolder()->UpdateAuraDuration(); +#else aura->GetHolder()->SendAuraUpdate(false); +#endif #else aura->SetDuration(duration); #endif @@ -158,7 +162,11 @@ namespace LuaAura int32 duration = Eluna::CHECKVAL(E->L, 2); #ifndef TRINITY aura->GetHolder()->SetAuraMaxDuration(duration); +#if (defined(TBC) || defined(CLASSIC)) + aura->GetHolder()->UpdateAuraDuration(); +#else aura->GetHolder()->SendAuraUpdate(false); +#endif #else aura->SetMaxDuration(duration); #endif