mirror of
https://github.com/mangosfour/server.git
synced 2025-12-30 01:37:03 +00:00
[11804] Fix glyph 63279
This commit is contained in:
parent
b5e50d5c2b
commit
f48a7867ac
2 changed files with 7 additions and 4 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue