1392 {
1393
1395 for (Unit::ControlSet::const_iterator itr = player->m_Controlled.begin(); itr != player->m_Controlled.end(); ++itr)
1397 if (undeadPet->IsAlive() &&
1398 undeadPet->GetOwnerGUID() == player->GetGUID() &&
1400 undeadPet->IsWithinDist(player, 100.0f, false))
1402
1404 }
@ CREATURE_TYPE_UNDEAD
Definition: SharedDefines.h:2605
@ SPELL_CAST_OK
Definition: SharedDefines.h:1110
@ SPELL_FAILED_NO_PET
Definition: SharedDefines.h:1005
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:197
Definition: Player.h:1046
Unit * GetCaster()
Definition: SpellScript.cpp:401