1142 {
1144
1146 {
1148 {
1151
1152
1153
1154 std::list<Creature*> servants;
1156 for (std::list<Creature*>::iterator itr = servants.begin(); itr != servants.end(); ++itr)
1157 {
1158
1159 if ((*itr)->isDead())
1160 (*itr)->Respawn(true);
1161
1165
1166 if (
Unit* target = (*itr)->SelectNearestTarget(150.0f))
1167 (*itr)->AI()->AttackStart(target);
1168 }
1169
1170
1171 std::list<Creature*> saboteurs;
1172 caster->GetCreatureListWithEntryInGrid(saboteurs,
NPC_SABOTEUR, 200.0f);
1173 for (std::list<Creature*>::iterator itr = saboteurs.begin(); itr != saboteurs.end(); ++itr)
1174 if ((*itr)->IsAlive())
1175
1177 }
1178 }
1179 }
@ NPC_SERVANT
Definition: zone_sholazar_basin.cpp:1121
@ NPC_PRESENCE
Definition: zone_sholazar_basin.cpp:1119
@ WHISPER_ACTIVATE
Definition: zone_sholazar_basin.cpp:1123
@ SPELL_LASHER_EMERGE
Definition: zone_sholazar_basin.cpp:1128
@ SPELL_WILD_GROWTH
Definition: zone_sholazar_basin.cpp:1129
@ SPELL_FREYA_DUMMY
Definition: zone_sholazar_basin.cpp:1125
@ SPELL_FREYA_DUMMY_TRIGGER
Definition: zone_sholazar_basin.cpp:1127
@ NPC_SABOTEUR
Definition: zone_sholazar_basin.cpp:1120
@ SPELL_LIFEFORCE
Definition: zone_sholazar_basin.cpp:1126
Definition: Creature.h:43
void GetCreatureListWithEntryInGrid(std::list< Creature * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2511
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2457
void PreventHitDefaultEffect(SpellEffIndex effIndex)
Definition: SpellScript.cpp:590
Unit * GetCaster()
Definition: SpellScript.cpp:401