Core/Spells: Fixed Heart of the Phoenix pet spell

Closes issue #3911.

--HG--
branch : trunk
This commit is contained in:
Shauren
2010-11-11 22:53:52 +01:00
parent 0f9279b7ef
commit 090acddee3
2 changed files with 10 additions and 3 deletions
@@ -80,7 +80,13 @@ void WorldSession::HandlePetAction(WorldPacket & recv_data)
}
if (!pet->isAlive())
return;
{
SpellEntry const* spell = (flag == ACT_ENABLED || flag == ACT_PASSIVE) ? sSpellStore.LookupEntry(spellid) : NULL;
if (!spell)
return;
if (!(spell->Attributes & SPELL_ATTR_CASTABLE_WHILE_DEAD))
return;
}
//TODO: allow control charmed player?
if (pet->GetTypeId() == TYPEID_PLAYER && !(flag == ACT_COMMAND && spellid == COMMAND_ATTACK))