63 {
65 if (!charmer)
66 return;
67
68 std::list<GameObject*> gList;
71 for (std::list<GameObject*>::const_iterator itr = gList.begin(); itr != gList.end(); ++itr, ++counter)
72 {
73 if (counter >= 10)
74 break;
77 continue;
79 if (cr2)
80 {
84 }
85
88 }
89 }
std::uint8_t uint8
Definition: Define.h:109
@ UNIT_FLAG_NONE
Definition: UnitDefines.h:228
@ GO_JUST_DEACTIVATED
Definition: GameObject.h:114
@ SPELL_ROCKET_LAUNCHER
Definition: zone_shadowmoon_valley.cpp:50
@ FACTION_MONSTER
Definition: SharedDefines.h:195
Definition: Creature.h:46
Definition: GameObject.h:121
bool isSpawned() const
Definition: GameObject.h:190
void SetLootState(LootState s, Unit *unit=nullptr)
Definition: GameObject.cpp:2442
void GetGameObjectListWithEntryInGrid(std::list< GameObject * > &lList, uint32 uiEntry, float fMaxSearchRange) const
Definition: Object.cpp:2493
Creature * SummonTrigger(float x, float y, float z, float ang, uint32 dur, bool setLevel=false, CreatureAI *(*GetAI)(Creature *)=nullptr)
Definition: Object.cpp:2404
float GetPositionZ() const
Definition: Position.h:119
float GetPositionX() const
Definition: Position.h:117
float GetPositionY() const
Definition: Position.h:118
Definition: Player.h:1064
void KilledMonsterCredit(uint32 entry, ObjectGuid guid=ObjectGuid::Empty)
Definition: PlayerQuest.cpp:1921
void SetFaction(uint32 faction)
Definition: Unit.cpp:10018
Player * GetCharmerOrOwnerPlayerOrPlayerItself() const
Definition: Unit.cpp:10578
void ReplaceAllUnitFlags(UnitFlags flags)
Remove the Unit flag specify only.
Definition: Unit.h:685
SpellCastResult CastSpell(SpellCastTargets const &targets, SpellInfo const *spellInfo, CustomSpellValues const *value, TriggerCastFlags triggerFlags=TRIGGERED_NONE, Item *castItem=nullptr, AuraEffect const *triggeredByAura=nullptr, ObjectGuid originalCaster=ObjectGuid::Empty)
Definition: Unit.cpp:1168
Unit * GetCaster()
Definition: SpellScript.cpp:401