1411 {
1412
1414 for (Unit::ControlSet::const_iterator itr = player->m_Controlled.begin(); itr != player->m_Controlled.end(); ++itr)
1416 if (undeadPet->IsAlive() &&
1417 undeadPet->GetOwnerGUID() == player->GetGUID() &&
1419 undeadPet->IsWithinDist(player, 100.0f, false))
1421
1423 }
@ CREATURE_TYPE_UNDEAD
Definition SharedDefines.h:2633
@ SPELL_CAST_OK
Definition SharedDefines.h:1138
@ SPELL_FAILED_NO_PET
Definition SharedDefines.h:1033
Creature * ToCreature()
Definition Object.h:206
Unit * GetCaster()
Definition SpellScript.cpp:401