1581 {
1582
1584 for (Unit::ControlSet::const_iterator itr = player->m_Controlled.begin(); itr != player->m_Controlled.end(); ++itr)
1586 if (undeadPet->IsAlive() &&
1587 undeadPet->GetOwnerGUID() == player->GetGUID() &&
1589 undeadPet->IsWithinDist(player, 100.0f, false))
1591
1593 }
@ 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