[11804] Fix glyph 63279

This commit is contained in:
Lightguard 2011-09-24 18:31:48 +02:00
parent b5e50d5c2b
commit f48a7867ac
2 changed files with 7 additions and 4 deletions

View file

@ -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;

View file

@ -1,4 +1,4 @@
#ifndef __REVISION_NR_H__
#define __REVISION_NR_H__
#define REVISION_NR "11803"
#define REVISION_NR "11804"
#endif // __REVISION_NR_H__