1589 {
1590
1592 for (Unit::ControlSet::const_iterator itr = player->m_Controlled.begin(); itr != player->m_Controlled.end(); ++itr)
1594 if (undeadPet->IsAlive() &&
1595 undeadPet->GetOwnerGUID() == player->GetGUID() &&
1597 undeadPet->IsWithinDist(player, 100.0f, false))
1599
1601 }
@ CREATURE_TYPE_UNDEAD
Definition SharedDefines.h:2627
@ SPELL_CAST_OK
Definition SharedDefines.h:1126
@ SPELL_FAILED_NO_PET
Definition SharedDefines.h:1021
Creature * ToCreature()
Definition Object.h:206
Unit * GetCaster()
Definition SpellScript.cpp:401