1410 {
1411
1413 for (Unit::ControlSet::const_iterator itr = player->m_Controlled.begin(); itr != player->m_Controlled.end(); ++itr)
1415 if (undeadPet->IsAlive() &&
1416 undeadPet->GetOwnerGUID() == player->GetGUID() &&
1418 undeadPet->IsWithinDist(player, 100.0f, false))
1420
1422 }
@ CREATURE_TYPE_UNDEAD
Definition: SharedDefines.h:2633
@ SPELL_CAST_OK
Definition: SharedDefines.h:1138
@ SPELL_FAILED_NO_PET
Definition: SharedDefines.h:1033
Definition: Creature.h:46
Creature * ToCreature()
Definition: Object.h:202
Definition: Player.h:1064
Unit * GetCaster()
Definition: SpellScript.cpp:401