101 std::list<Creature*> units;
104 for (std::list<Creature*>::iterator itr = units.begin(); itr != units.end(); ++itr)
105 (*itr)->DespawnOrUnsummon();
109 for (std::list<Creature*>::iterator itr = units.begin(); itr != units.end(); ++itr)
110 (*itr)->DespawnOrUnsummon();
140 std::list<Creature*> stalkers;
142 std::list<Creature*> beetlers = stalkers;
146 for (std::list<Creature*>::iterator itr = beetlers.begin(); itr != beetlers.end(); ++itr)
148 stalkers.remove((*itr));
156 for (std::list<Creature*>::iterator itr = stalkers.begin(); itr != stalkers.end(); ++itr)
266 ptah->SetUninteractible(
true);
276 ptah->SetUninteractible(
false);
@ ENCOUNTER_FRAME_DISENGAGE
#define RegisterSpellScript(spell_script)
void GetCreatureListWithEntryInGrid(Container &container, WorldObject *source, uint32 entry, float maxSearchRange)
@ TARGET_UNIT_SRC_AREA_ENEMY
@ AURA_EFFECT_HANDLE_REAL
#define SpellObjectAreaTargetSelectFn(F, I, N)
#define AuraEffectApplyFn(F, I, N, M)
#define AuraEffectRemoveFn(F, I, N, M)
@ UNIT_FLAG_PREVENT_EMOTES_FROM_CHAT_TEXT
@ SPELL_SUMMON_JEWELED_SCARAB
@ SPELL_SUMMON_DUSTBONE_HORROR
void AddSC_boss_earthrager_ptah()
HookList< EffectApplyHandler > OnEffectRemove
HookList< EffectApplyHandler > OnEffectApply
InstanceScript *const instance
void JustEngagedWith(Unit *who) override
void Talk(uint8 id, WorldObject const *whisperTarget=nullptr)
virtual bool CheckInRoom()
void SetCanMelee(bool canMelee, bool fleeFromMelee=false)
void ScheduleEvent(uint32 eventId, Milliseconds time, uint32 group=0, uint8 phase=0)
uint8 GetPhaseMask() const
void SetPhase(uint8 phase)
virtual bool SetBossState(uint32 id, EncounterState state)
EncounterState GetBossState(uint32 id) const
void SendEncounterUnit(EncounterFrameType type, Unit const *unit, Optional< int32 > param1={}, Optional< int32 > param2={})
void SetZoneWeather(uint32 zoneId, WeatherState weatherId, float intensity)
HookList< ObjectAreaTargetSelectHandler > OnObjectAreaTargetSelect
bool Execute(uint64, uint32) override
SummonScarab(Unit *owner, InstanceScript *instance)
InstanceScript * _instance
SpellCastResult DoCastVictim(uint32 spellId, CastSpellExtraArgs const &args={})
Unit * SelectTarget(SelectTargetMethod targetType, uint32 offset=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
SpellCastResult DoCast(uint32 spellId)
bool HasUnitState(const uint32 f) const
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
void RemoveAurasDueToSpell(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, uint32 reqEffMask=0, AuraRemoveMode removeMode=AURA_REMOVE_BY_DEFAULT)
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
TempSummon * SummonCreature(uint32 entry, Position const &pos, TempSummonType despawnType=TEMPSUMMON_MANUAL_DESPAWN, Milliseconds despawnTime=0s, uint32 vehId=0, uint32 spellId=0, ObjectGuid privateObjectOwner=ObjectGuid::Empty)
void RemoveFlags(AuraEffect const *, AuraEffectHandleModes)
void SetFlags(AuraEffect const *, AuraEffectHandleModes)
void FilterTargets(std::list< WorldObject * > &targets)
@ WEATHER_STATE_LIGHT_SANDSTORM
#define RegisterHallsOfOriginationCreatureAI(ai_name)
@ AREA_TOMB_OF_THE_EARTHRAGER
void RandomResize(C &container, std::size_t requestedSize)
void JustDied(Unit *) override
boss_earthrager_ptah(Creature *creature)
void UpdateAI(uint32 diff) override
void SetData(uint32 index, uint32) override
void JustReachedHome() override
void JustEngagedWith(Unit *who) override
void DamageTaken(Unit *, uint32 &damage, DamageEffectType, SpellInfo const *) override