1609 {
1610
1612 for (Unit::ControlSet::const_iterator itr = player->m_Controlled.begin(); itr != player->m_Controlled.end(); ++itr)
1614 if (undeadPet->IsAlive() &&
1615 undeadPet->GetOwnerGUID() == player->GetGUID() &&
1617 undeadPet->IsWithinDist(player, 100.0f, false))
1619
1621 }
@ CREATURE_TYPE_UNDEAD
Definition SharedDefines.h:2629
@ 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