From f48a7867acb3e4333150a41c3dc104b37ac901fe Mon Sep 17 00:00:00 2001 From: Lightguard Date: Sat, 24 Sep 2011 18:31:48 +0200 Subject: [PATCH] [11804] Fix glyph 63279 --- src/game/UnitAuraProcHandler.cpp | 9 ++++++--- src/shared/revision_nr.h | 2 +- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/src/game/UnitAuraProcHandler.cpp b/src/game/UnitAuraProcHandler.cpp index 0080e5ada..f56885e50 100644 --- a/src/game/UnitAuraProcHandler.cpp +++ b/src/game/UnitAuraProcHandler.cpp @@ -2442,10 +2442,13 @@ SpellAuraProcResult Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, Aura basepoints[0] = triggerAmount; // Glyph of Earth Shield - if (Aura* aur = GetDummyAura(63279)) + if(Unit* caster = triggeredByAura->GetCaster()) { - int32 aur_mod = aur->GetModifier()->m_amount; - basepoints[0] = int32(basepoints[0] * (aur_mod + 100.0f) / 100.0f); + if (Aura* aur = caster->GetDummyAura(63279)) + { + int32 aur_mod = aur->GetModifier()->m_amount; + basepoints[0] = int32(basepoints[0] * (aur_mod + 100.0f) / 100.0f); + } } triggered_spell_id = 379; diff --git a/src/shared/revision_nr.h b/src/shared/revision_nr.h index 615f2a908..aca1bb393 100644 --- a/src/shared/revision_nr.h +++ b/src/shared/revision_nr.h @@ -1,4 +1,4 @@ #ifndef __REVISION_NR_H__ #define __REVISION_NR_H__ - #define REVISION_NR "11803" + #define REVISION_NR "11804" #endif // __REVISION_NR_H__