Skip to content

Commit

Permalink
[11804] Fix glyph 63279
Browse files Browse the repository at this point in the history
  • Loading branch information
Ligthguard committed Sep 24, 2011
1 parent 7d807b9 commit 611a4ad
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions src/game/UnitAuraProcHandler.cpp
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion 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__

0 comments on commit 611a4ad

Please sign in to comment.