mirror of
https://github.com/TrinityCore/TrinityCore.git
synced 2026-02-02 15:17:27 +01:00
Core: Cleaning up hungarian notation - Phase7: pOwner -> owner
This commit is contained in:
@@ -2103,11 +2103,11 @@ public:
|
||||
void DamageTaken(Unit* /*killer*/, uint32 &damage)
|
||||
{
|
||||
if (me->isSummon())
|
||||
if (Unit* pOwner = me->ToTempSummon()->GetSummoner())
|
||||
if (Unit* owner = me->ToTempSummon()->GetSummoner())
|
||||
{
|
||||
if (pOwner->HasAura(GLYPH_OF_SHADOWFIEND))
|
||||
if (owner->HasAura(GLYPH_OF_SHADOWFIEND))
|
||||
if (damage >= me->GetHealth())
|
||||
pOwner->CastSpell(pOwner, GLYPH_OF_SHADOWFIEND_MANA, true);
|
||||
owner->CastSpell(owner, GLYPH_OF_SHADOWFIEND_MANA, true);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user