Core/Pet: Fix initial energy of DK's Ghoul (#115)

This commit is contained in:
Rival
2016-08-26 18:21:56 +04:00
committed by Shin
parent 527bbf80d5
commit f82c3fd94c

View File

@@ -977,6 +977,9 @@ bool Guardian::InitStatsForLevel(uint8 petlevel)
// Can be summon and guardian
if (GetEntry() == NPC_RISEN_GHOUL)
{
// 100% energy after summon
SetPower(POWER_ENERGY, GetMaxPower(POWER_ENERGY));
// xinef: fixes orc death knight command racial
if (m_owner->getRace() == RACE_ORC)
CastSpell(this, SPELL_ORC_RACIAL_COMMAND, true, NULL, NULL, m_owner->GetGUID());
@@ -2240,4 +2243,4 @@ void Pet::RemoveSpellCooldown(uint32 spell_id, bool update /* = false */)
playerOwner->SendDirectMessage(&data);
}
}
}
}