From f82c3fd94cbbd55109f4b12856d975b020432e38 Mon Sep 17 00:00:00 2001 From: Rival Date: Fri, 26 Aug 2016 18:21:56 +0400 Subject: [PATCH] Core/Pet: Fix initial energy of DK's Ghoul (#115) --- src/game/Entities/Pet/Pet.cpp | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/game/Entities/Pet/Pet.cpp b/src/game/Entities/Pet/Pet.cpp index 8bb6fdaeb..a0f34e86d 100644 --- a/src/game/Entities/Pet/Pet.cpp +++ b/src/game/Entities/Pet/Pet.cpp @@ -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); } } -} \ No newline at end of file +}