[Paladin] Glyphe de Divinité
[code=diff]
diff --git a/src/server/game/Entities/Unit/Unit.cpp b/src/server/game/Entities/Unit/Unit.cpp
index fad6eb8..18afe0f 100755
--- a/src/server/game/Entities/Unit/Unit.cpp
+++ b/src/server/game/Entities/Unit/Unit.cpp
@@ -6777,19 +6777,6 @@ bool Unit::HandleDummyAuraProc(Unit *pVictim, uint32 damage, AuraEffect* trigger

break;
}
- // Glyph of Divinity
- case 54939:
- {
- // Lookup base amount mana restore
- for (uint8 i=0; i<MAX_SPELL_EFFECTS; i++)
- if (procSpell->Effect[i] == SPELL_EFFECT_ENERGIZE)
- {
- int32 mana = SpellMgr::CalculateSpellEffectAmount(procSpell, i);
- CastCustomSpell(this, 54986, 0, &mana, 0, true, castItem, triggeredByAura);
- break;
- }
- return true;
- }
// Glyph of Flash of Light
case 54936:
{
@@ -7831,6 +7818,22 @@ bool Unit::HandleAuraProc(Unit * pVictim, uint32 damage, Aura * triggeredByAura,
return true;
}
}
+ // Glyph of Divinity
+ else if (dummySpell->Id == 54939)
+ {
+ // Check if we are the target and prevent mana gain
+ if (triggeredByAura->GetCasterGUID() == pVictim->GetGUID())
+ return false;
+ // Lookup base amount mana restore
+ for (uint8 i=0; i<MAX_SPELL_EFFECTS; i++)
+ if (procSpell->Effect[i] == SPELL_EFFECT_ENERGIZE)
+ {
+ // multiply by 2 because CalculateSpellEffectAmount takes dbc values
+ int32 mana = SpellMgr::CalculateSpellEffectAmount(procSpell, i) * 2;
+ CastCustomSpell(this, 54986, 0, &mana, NULL, true);
+ }
+ return true;
+ }
break;
}
case SPELLFAMILY_MAGE:[/code]

Juste une petite amélioration de la glyphe de divinité du paladin, un grand tobias pour m'avoir corrigé

Retourner en haut Accueil