AzerothCore 3.3.5a
OpenSource WoW Emulator
Loading...
Searching...
No Matches
npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI Struct Reference
Inheritance diagram for npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI:
ScriptedAI CreatureAI UnitAI

Public Member Functions

 npc_high_overlord_saurfang_igbAI (Creature *creature)
 
void sGossipSelect (Player *, uint32, uint32) override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void EnterEvadeMode (EvadeReason) override
 
void DoAction (int32 action) override
 
void SetData (uint32 type, uint32 data) override
 
void DamageTaken (Unit *, uint32 &damage, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void AttackStart (Unit *victim) override
 
bool CanAIAttack (Unit const *target) const override
 
- Public Member Functions inherited from ScriptedAI
 ScriptedAI (Creature *creature)
 
 ~ScriptedAI () override
 
void AttackStartNoMove (Unit *target)
 
void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask) override
 Called at any Damage from any attacker (before damage apply) More...
 
void UpdateAI (uint32 diff) override
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
void JustDied (Unit *) override
 
void KilledUnit (Unit *) override
 
void JustSummoned (Creature *) override
 
void SummonedCreatureDespawn (Creature *) override
 
void SpellHit (Unit *, SpellInfo const *) override
 
void SpellHitTarget (Unit *, SpellInfo const *) override
 
void MovementInform (uint32, uint32) override
 
void OnPossess (bool)
 
bool IsInRoom (const Position *pos, Axis axis, bool above)
 
void Reset () override
 
void JustEngagedWith (Unit *) override
 Called for reaction when initially engaged. More...
 
void AttackStart (Unit *) override
 
void DoStartMovement (Unit *target, float distance=0.0f, float angle=0.0f)
 
void DoStartNoMovement (Unit *target)
 
void DoStopAttack ()
 
void DoCastSpell (Unit *target, SpellInfo const *spellInfo, bool triggered=false)
 
void DoPlaySoundToSet (WorldObject *source, uint32 soundId)
 
void DoPlayMusic (uint32 soundId, bool zone)
 
void DoAddThreat (Unit *unit, float amount)
 
void DoModifyThreatByPercent (Unit *unit, int32 pct)
 
void DoResetThreat (Unit *unit)
 
void DoResetThreatList ()
 
float DoGetThreat (Unit *unit)
 
void DoTeleportPlayer (Unit *unit, float x, float y, float z, float o)
 
void DoTeleportPlayer (Unit *unit, Position pos)
 
void DoTeleportAll (float x, float y, float z, float o)
 
UnitDoSelectLowestHpFriendly (float range, uint32 minHPDiff=1)
 
std::list< Creature * > DoFindFriendlyCC (float range)
 
std::list< Creature * > DoFindFriendlyMissingBuff (float range, uint32 spellId)
 
PlayerGetPlayerAtMinimumRange (float minRange)
 
CreatureDoSpawnCreature (uint32 entry, float offsetX, float offsetY, float offsetZ, float angle, uint32 type, uint32 despawntime)
 
bool IsUniqueTimedEventDone (uint32 id) const
 
void SetUniqueTimedEventDone (uint32 id)
 
void ResetUniqueTimedEvent (uint32 id)
 
void ClearUniqueTimedEventsDone ()
 
void ScheduleTimedEvent (Milliseconds timerMin, Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleTimedEvent (Milliseconds timerMax, std::function< void()> exec, Milliseconds repeatMin, Milliseconds repeatMax=0s, uint32 uniqueId=0)
 
void ScheduleUniqueTimedEvent (Milliseconds timer, std::function< void()> exec, uint32 uniqueId)
 
bool HealthBelowPct (uint32 pct) const
 
bool HealthAbovePct (uint32 pct) const
 
SpellInfo const * SelectSpell (Unit *target, uint32 school, uint32 mechanic, SelectTargetType targets, uint32 powerCostMin, uint32 powerCostMax, float rangeMin, float rangeMax, SelectEffect effect)
 
void SetEquipmentSlots (bool loadDefault, int32 mainHand=EQUIP_NO_CHANGE, int32 offHand=EQUIP_NO_CHANGE, int32 ranged=EQUIP_NO_CHANGE)
 
virtual bool CheckEvadeIfOutOfCombatArea () const
 
bool IsHeroic () const
 
Difficulty GetDifficulty () const
 
bool Is25ManRaid () const
 
template<class T >
const T & DUNGEON_MODE (const T &normal5, const T &heroic10) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25) const
 
template<class T >
const T & RAID_MODE (const T &normal10, const T &normal25, const T &heroic10, const T &heroic25) const
 
PlayerSelectTargetFromPlayerList (float maxdist, uint32 excludeAura=0, bool mustBeInLOS=false) const
 
- Public Member Functions inherited from CreatureAI
void Talk (uint8 id, WorldObject const *whisperTarget=nullptr, Milliseconds delay=0s)
 Causes the creature to talk/say the text assigned to their entry in the creature_text database table. More...
 
void Talk (uint8 id, Milliseconds delay)
 
 CreatureAI (Creature *creature)
 
 ~CreatureAI () override
 
void MoveCircleChecks ()
 
void MoveBackwardsChecks ()
 
void MoveInLineOfSight_Safe (Unit *who)
 == Reactions At ================================= More...
 
void TriggerAlert (Unit const *who) const
 
virtual bool CanRespawn ()
 
virtual void EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
virtual void JustEngagedWith (Unit *)
 Called for reaction when initially engaged. More...
 
virtual void JustDied (Unit *)
 
virtual void KilledUnit (Unit *)
 
virtual void JustSummoned (Creature *)
 
virtual void IsSummonedBy (WorldObject *)
 
virtual void SummonedCreatureDespawn (Creature *)
 
virtual void SummonedCreatureDies (Creature *, Unit *)
 
virtual void SummonedCreatureDespawnAll ()
 
virtual void SummonedCreatureEvade (Creature *)
 
virtual void SpellHit (Unit *, SpellInfo const *)
 
virtual void SpellHitTarget (Unit *, SpellInfo const *)
 
virtual void AttackedBy (Unit *)
 
virtual bool IsEscorted ()
 
virtual void JustRespawned ()
 
virtual void MovementInform (uint32, uint32)
 
virtual void PathEndReached (uint32)
 
void OnCharmed (bool apply) override
 Called when unit is charmed. More...
 
virtual void JustReachedHome ()
 
void DoZoneInCombat (Creature *creature=nullptr, float maxRangeToNearestTarget=250.0f)
 
virtual void ReceiveEmote (Player *, uint32)
 
virtual void OwnerAttackedBy (Unit *)
 
virtual void OwnerAttacked (Unit *)
 
virtual void CorpseRemoved (uint32 &)
 == Triggered Actions Requested ================== More...
 
virtual void PassengerBoarded (Unit *, int8, bool)
 == Fields ======================================= More...
 
virtual bool BeforeSpellClick (Unit *)
 
virtual void OnSpellClick (Unit *, bool &)
 
virtual bool CanSeeAlways (WorldObject const *)
 
virtual bool CanBeSeen (Player const *)
 
virtual bool CanAlwaysBeDetectable (WorldObject const *)
 
virtual void PetStopAttack ()
 
virtual bool CheckInRoom ()
 
CreatureBoundary const * GetBoundary () const
 
void SetBoundary (CreatureBoundary const *boundary, bool negativeBoundaries=false)
 
bool IsInBoundary (Position const *who=nullptr) const
 
virtual void CalculateThreat (Unit *, float &, SpellInfo const *)
 
virtual bool OnTeleportUnreacheablePlayer (Player *)
 
virtual void OnAuraRemove (AuraApplication *, AuraRemoveMode)
 
- Public Member Functions inherited from UnitAI
 UnitAI (Unit *unit)
 
virtual ~UnitAI ()
 
virtual bool CanAIAttack (Unit const *) const
 
virtual void AttackStart (Unit *)
 
virtual void UpdateAI (uint32)=0
 Use to start attacking a target. Called just before JustEngagedWith() More...
 
virtual void InitializeAI ()
 
virtual void Reset ()
 
virtual void OnCharmed (bool apply)=0
 Called when unit is charmed. More...
 
virtual void DoAction (int32)
 
virtual uint32 GetData (uint32) const
 
virtual void SetData (uint32, uint32)
 
virtual void SetGUID (ObjectGuid, int32=0)
 
virtual ObjectGuid GetGUID (int32=0) const
 
UnitSelectTarget (SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 
template<class PREDICATE >
UnitSelectTarget (SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position=0, float dist=0.0f, bool playerOnly=false, bool withTank=true, int32 aura=0)
 Select the best (up to) <num> targets (in <targetType> order) from the threat list that fulfill the following: More...
 
template<class PREDICATE >
void SelectTargetList (std::list< Unit * > &targetList, uint32 num, SelectTargetMethod targetType, uint32 position, PREDICATE const &predicate)
 
virtual void JustEnteredCombat (Unit *)
 Called when the unit enters combat. More...
 
virtual void JustExitedCombat ()
 Called when the unit leaves combat. More...
 
virtual void DamageDealt (Unit *, uint32 &, DamageEffectType)
 Called at any Damage to any victim (before damage apply) More...
 
virtual void DamageTaken (Unit *, uint32 &, DamageEffectType, SpellSchoolMask)
 Called at any Damage from any attacker (before damage apply) More...
 
virtual void HealReceived (Unit *, uint32 &)
 Called when the creature receives heal. More...
 
virtual void OnPowerUpdate (Powers, int32, int32, uint32)
 Called when the creature power updates. More...
 
virtual void HealDone (Unit *, uint32 &)
 Called when the unit heals. More...
 
virtual void OnCalculateMeleeDamageReceived (uint32 &, Unit *)
 Called during damage calculations. More...
 
virtual void OnCalculateSpellDamageReceived (int32 &, Unit *)
 
virtual void OnCalculatePeriodicTickReceived (uint32 &, Unit *)
 Called during calculation when receiving periodic healing or damage (DoT or HoT) More...
 
void AttackStartCaster (Unit *victim, float dist)
 
SpellCastResult DoAddAuraToAllHostilePlayers (uint32 spellid)
 
SpellCastResult DoCast (uint32 spellId)
 
SpellCastResult DoCast (Unit *victim, uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastSelf (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastToAllHostilePlayers (uint32 spellid, bool triggered=false)
 To specify the caster as target if the spell is self-cast. More...
 
SpellCastResult DoCastVictim (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastAOE (uint32 spellId, bool triggered=false)
 
SpellCastResult DoCastRandomTarget (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false, bool withTank=true)
 Cast the spell on a random unit from the threat list. More...
 
SpellCastResult DoCastMaxThreat (uint32 spellId, uint32 threatTablePosition=0, float dist=0.0f, bool playerOnly=true, bool triggered=false)
 Cast spell on the top threat target, which may not be the current victim. More...
 
float DoGetSpellMaxRange (uint32 spellId, bool positive=false)
 
void DoMeleeAttackIfReady ()
 
bool DoSpellAttackIfReady (uint32 spell)
 
void DoSpellAttackToRandomTargetIfReady (uint32 spell, uint32 threatTablePosition=0, float dist=0.f, bool playerOnly=true)
 
virtual void SummonMovementInform (Creature *, uint32, uint32)
 Called when a summon reaches a waypoint or point movement finished. More...
 
virtual void sGossipHello (Player *)
 
virtual void sGossipSelect (Player *, uint32, uint32)
 
virtual void sGossipSelectCode (Player *, uint32, uint32, char const *)
 
virtual void sQuestAccept (Player *, Quest const *)
 
virtual void sQuestSelect (Player *, Quest const *)
 
virtual void sQuestComplete (Player *, Quest const *)
 
virtual void sQuestReward (Player *, Quest const *, uint32)
 
virtual void sOnGameEvent (bool, uint16)
 
virtual std::string GetDebugInfo () const
 

Private Attributes

EventMap _events
 
PassengerController _controller
 
InstanceScript_instance
 
time_t _firstMageCooldown
 
time_t _axethrowersYellCooldown
 
time_t _rocketeersYellCooldown
 
uint16 checkTimer
 

Additional Inherited Members

- Public Types inherited from ScriptedAI
enum class  Axis {
  AXIS_X ,
  AXIS_Y
}
 
- Public Types inherited from CreatureAI
enum  EvadeReason {
  EVADE_REASON_NO_HOSTILES ,
  EVADE_REASON_BOUNDARY ,
  EVADE_REASON_SEQUENCE_BREAK ,
  EVADE_REASON_NO_PATH ,
  EVADE_REASON_OTHER
}
 
- Static Public Member Functions inherited from CreatureAI
static bool IsInBounds (CreatureBoundary const &boundary, Position const *who)
 
- Static Public Member Functions inherited from UnitAI
static void FillAISpellInfo ()
 
- Public Attributes inherited from ScriptedAI
Creatureme
 
- Static Public Attributes inherited from UnitAI
static AISpellInfoTypeAISpellInfo
 
- Protected Member Functions inherited from CreatureAI
bool UpdateVictim ()
 
bool UpdateVictimWithGaze ()
 
void SetGazeOn (Unit *target)
 
CreatureDoSummon (uint32 entry, Position const &pos, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummon (uint32 entry, WorldObject *obj, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
CreatureDoSummonFlyer (uint32 entry, WorldObject *obj, float flightZ, float radius=5.0f, uint32 despawnTime=30000, TempSummonType summonType=TEMPSUMMON_CORPSE_TIMED_DESPAWN)
 
virtual void MoveInLineOfSight (Unit *)
 
bool _EnterEvadeMode (EvadeReason why=EVADE_REASON_OTHER)
 
- Protected Attributes inherited from CreatureAI
Creature *const me
 
EventMap events
 
TaskScheduler scheduler
 
CreatureBoundary const * _boundary
 
bool _negateBoundary
 
- Protected Attributes inherited from UnitAI
Unit *const me
 

Detailed Description

Constructor & Destructor Documentation

◆ npc_high_overlord_saurfang_igbAI()

npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::npc_high_overlord_saurfang_igbAI ( Creature creature)
inline
774 : ScriptedAI(creature), _instance(creature->GetInstanceScript())
775 {
776 _events.Reset();
779 me->m_CombatDistance = 70.0f;
781 _axethrowersYellCooldown = time_t(0);
782 _rocketeersYellCooldown = time_t(0);
783 checkTimer = 1000;
784 }
@ TEAM_HORDE
Definition: SharedDefines.h:761
Seconds GetGameTime()
Definition: GameTime.cpp:38
void Reset()
Definition: EventMap.cpp:21
Definition: ScriptedCreature.h:190
Creature * me
Definition: ScriptedCreature.h:280
float m_CombatDistance
Definition: Creature.h:372
void SetRegeneratingHealth(bool enable)
Definition: Creature.h:319
MotionTransport * ToMotionTransport()
Definition: GameObject.h:328
InstanceScript * GetInstanceScript() const
Definition: Object.cpp:1192
Transport * GetTransport() const
Definition: Object.h:599
void ResetSlots(TeamId teamId, MotionTransport *t)
Definition: boss_icecrown_gunship_battle.cpp:411
time_t _rocketeersYellCooldown
Definition: boss_icecrown_gunship_battle.cpp:1092
EventMap _events
Definition: boss_icecrown_gunship_battle.cpp:1087
uint16 checkTimer
Definition: boss_icecrown_gunship_battle.cpp:1093
PassengerController _controller
Definition: boss_icecrown_gunship_battle.cpp:1088
time_t _firstMageCooldown
Definition: boss_icecrown_gunship_battle.cpp:1090
time_t _axethrowersYellCooldown
Definition: boss_icecrown_gunship_battle.cpp:1091
InstanceScript * _instance
Definition: boss_icecrown_gunship_battle.cpp:1089

References _axethrowersYellCooldown, _controller, _events, _firstMageCooldown, _rocketeersYellCooldown, checkTimer, GameTime::GetGameTime(), WorldObject::GetTransport(), Creature::m_CombatDistance, ScriptedAI::me, EventMap::Reset(), PassengerController::ResetSlots(), Creature::SetRegeneratingHealth(), TEAM_HORDE, and GameObject::ToMotionTransport().

Member Function Documentation

◆ AttackStart()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::AttackStart ( Unit victim)
inlineoverridevirtual

Reimplemented from ScriptedAI.

1063 {
1064 if (victim && me->Attack(victim, true))
1065 {
1066 if (victim->GetPositionZ() < 478.0f)
1067 me->GetMotionMaster()->MoveChase(victim);
1068 else
1069 {
1070 float x, y, z, o;
1071 me->GetHomePosition(x, y, z, o);
1072 me->GetMotionMaster()->MovePoint(0, x, y, z, false);
1073 }
1074 }
1075 }
void GetHomePosition(float &x, float &y, float &z, float &ori) const
Definition: Creature.h:339
float GetPositionZ() const
Definition: Position.h:119
MotionMaster * GetMotionMaster()
Definition: Unit.h:1601
bool Attack(Unit *victim, bool meleeAttack)
Definition: Unit.cpp:10234
void MoveChase(Unit *target, std::optional< ChaseRange > dist={}, std::optional< ChaseAngle > angle={})
Force the unit to chase this target. Doesn't work with UNIT_FLAG_DISABLE_MOVE.
Definition: MotionMaster.cpp:313
void MovePoint(uint32 id, const Position &pos, bool generatePath=true, bool forceDestination=true)
Definition: MotionMaster.h:211

References Unit::Attack(), Creature::GetHomePosition(), Unit::GetMotionMaster(), Position::GetPositionZ(), ScriptedAI::me, MotionMaster::MoveChase(), and MotionMaster::MovePoint().

◆ CanAIAttack()

bool npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::CanAIAttack ( Unit const *  target) const
inlineoverridevirtual

Reimplemented from UnitAI.

1078 {
1080 return false;
1081 if (target->GetEntry() == NPC_SKYBREAKER_MARINE || target->GetEntry() == NPC_SKYBREAKER_SERGEANT)
1082 return target->ToCreature()->GetReactState() != REACT_PASSIVE;
1083 return target->GetTransport() == me->GetTransport() && target->GetPositionY() < (_instance->GetData(DATA_TEAMID_IN_INSTANCE) == TEAM_HORDE ? 2431.0f : 2025.0f);
1084 }
@ IN_PROGRESS
Definition: InstanceScript.h:58
@ REACT_PASSIVE
Definition: Unit.h:548
@ NPC_SKYBREAKER_MARINE
Definition: icecrown_citadel.h:236
@ NPC_SKYBREAKER_SERGEANT
Definition: icecrown_citadel.h:237
@ DATA_ICECROWN_GUNSHIP_BATTLE
Definition: icecrown_citadel.h:94
@ DATA_TEAMID_IN_INSTANCE
Definition: trial_of_the_champion.h:44
float GetPositionY() const
Definition: Position.h:118
EncounterState GetBossState(uint32 id) const
Definition: InstanceScript.h:235
virtual uint32 GetData(uint32) const
Definition: ZoneScript.h:52

References _instance, DATA_ICECROWN_GUNSHIP_BATTLE, DATA_TEAMID_IN_INSTANCE, InstanceScript::GetBossState(), ZoneScript::GetData(), Object::GetEntry(), Position::GetPositionY(), Creature::GetReactState(), WorldObject::GetTransport(), IN_PROGRESS, ScriptedAI::me, NPC_SKYBREAKER_MARINE, NPC_SKYBREAKER_SERGEANT, REACT_PASSIVE, TEAM_HORDE, and Object::ToCreature().

Referenced by UpdateAI().

◆ DamageTaken()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DamageTaken ( Unit ,
uint32 ,
DamageEffectType  ,
SpellSchoolMask   
)
inlineoverridevirtual

Called at any Damage from any attacker (before damage apply)

Note
It use for recalculation damage or special reaction at damage for attack reaction use AttackedBy called for non DOT damage in Unit::DealDamage also

Reimplemented from ScriptedAI.

895 {
898
899 if (damage >= me->GetHealth())
900 damage = me->GetHealth() - 1;
901 }
@ SPELL_TASTE_OF_BLOOD
Definition: boss_icecrown_gunship_battle.cpp:154
bool HasAura(uint32 spellId, ObjectGuid casterGUID=ObjectGuid::Empty, ObjectGuid itemCasterGUID=ObjectGuid::Empty, uint8 reqEffMask=0) const
Definition: Unit.cpp:5669
uint32 GetHealth() const
Definition: Unit.h:869
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
bool HealthBelowPctDamaged(int32 pct, uint32 damage) const
Definition: Unit.h:874

References Unit::CastSpell(), Unit::GetHealth(), Unit::HasAura(), Unit::HealthBelowPctDamaged(), ScriptedAI::me, and SPELL_TASTE_OF_BLOOD.

◆ DoAction()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::DoAction ( int32  action)
inlineoverridevirtual

Reimplemented from UnitAI.

821 {
822 if (action == ACTION_ENEMY_GUNSHIP_TALK)
823 {
826
828 muradin->AI()->DoAction(ACTION_SPAWN_ALL_ADDS);
829
834
837 if (Creature* orgrimsHammer = _instance->GetCreature(DATA_ORGRIMS_HAMMER))
838 {
840 orgrimsHammer->CastSpell(orgrimsHammer, SPELL_CHECK_FOR_PLAYERS, true);
841 }
842 }
843 else if (action == ACTION_SPAWN_MAGE)
844 {
845 time_t now = GameTime::GetGameTime().count();
846 if (_firstMageCooldown > now)
848 else
850 }
851 else if (action == ACTION_SPAWN_ALL_ADDS)
852 {
856 if (Is25ManRaid())
858 else
859 {
863 }
864 }
865 else if (action == ACTION_EXIT_SHIP)
866 {
867 G3D::Vector3 points[SaurfangExitPathSize];
868 for (uint8 i = 0; i < SaurfangExitPathSize; ++i)
869 {
870 points[i].x = SaurfangExitPath[i].GetPositionX();
871 points[i].y = SaurfangExitPath[i].GetPositionY();
872 points[i].z = SaurfangExitPath[i].GetPositionZ();
873 }
874 Movement::PointsArray path(points, points + SaurfangExitPathSize);
875 me->SetWalk(true);
877 init.DisableTransportPathTransformations();
878 init.MovebyPath(path, 0);
879 init.Launch();
880 me->DespawnOrUnsummon(18000);
881 }
882 }
constexpr auto IN_MILLISECONDS
Definition: Common.h:53
std::uint8_t uint8
Definition: Define.h:109
@ ENCOUNTER_FRAME_ENGAGE
Definition: InstanceScript.h:45
@ MUSIC_ENCOUNTER
Definition: boss_icecrown_gunship_battle.cpp:189
uint32 const SaurfangExitPathSize
Definition: boss_icecrown_gunship_battle.cpp:230
@ ACTION_SPAWN_MAGE
Definition: boss_icecrown_gunship_battle.cpp:194
@ ACTION_SPAWN_ALL_ADDS
Definition: boss_icecrown_gunship_battle.cpp:195
@ SPELL_CHECK_FOR_PLAYERS
Definition: boss_icecrown_gunship_battle.cpp:111
@ SAY_SAURFANG_INTRO_5
Definition: boss_icecrown_gunship_battle.cpp:39
Position const SaurfangExitPath[SaurfangExitPathSize]
Definition: boss_icecrown_gunship_battle.cpp:231
@ EVENT_CHECK_MORTAR
Definition: boss_icecrown_gunship_battle.cpp:99
@ EVENT_INTRO_H_5
Definition: boss_icecrown_gunship_battle.cpp:81
@ EVENT_SUMMON_MAGE
Definition: boss_icecrown_gunship_battle.cpp:95
@ EVENT_KEEP_PLAYER_IN_COMBAT
Definition: boss_icecrown_gunship_battle.cpp:94
@ EVENT_INTRO_H_6
Definition: boss_icecrown_gunship_battle.cpp:82
@ EVENT_CHECK_RIFLEMAN
Definition: boss_icecrown_gunship_battle.cpp:98
@ EVENT_ADDS
Definition: boss_icecrown_gunship_battle.cpp:96
@ SLOT_MORTAR_4
Definition: boss_icecrown_gunship_battle.cpp:275
@ SLOT_MAGE_2
Definition: boss_icecrown_gunship_battle.cpp:255
@ SLOT_MORTAR_1
Definition: boss_icecrown_gunship_battle.cpp:270
@ SLOT_MAGE_1
Definition: boss_icecrown_gunship_battle.cpp:254
@ SLOT_RIFLEMAN_4
Definition: boss_icecrown_gunship_battle.cpp:261
@ SLOT_RIFLEMAN_1
Definition: boss_icecrown_gunship_battle.cpp:258
@ SLOT_MORTAR_2
Definition: boss_icecrown_gunship_battle.cpp:271
@ NPC_IGB_MURADIN_BRONZEBEARD
Definition: icecrown_citadel.h:227
@ ACTION_ENEMY_GUNSHIP_TALK
Definition: icecrown_citadel.h:519
@ ACTION_EXIT_SHIP
Definition: icecrown_citadel.h:520
@ AREA_ICECROWN_CITADEL
Definition: icecrown_citadel.h:585
@ DATA_THE_SKYBREAKER
Definition: icecrown_citadel.h:138
@ DATA_ORGRIMS_HAMMER
Definition: icecrown_citadel.h:139
Talk
Definition: hyjal.cpp:82
std::vector< Vector3 > PointsArray
Definition: MoveSplineInitArgs.h:28
void ScheduleEvent(uint32 eventId, uint32 time, uint32 group=0, uint32 phase=0)
Definition: EventMap.cpp:56
bool Is25ManRaid() const
Definition: ScriptedCreature.h:385
Definition: Creature.h:46
void DespawnOrUnsummon(Milliseconds msTimeToDespawn, Seconds forcedRespawnTimer)
Definition: Creature.cpp:2173
bool SetWalk(bool enable) override
Enable or disable the creature's walk mode by removing: MOVEMENTFLAG_WALKING. Infom also the client.
Definition: Creature.cpp:3178
Map * GetMap() const
Definition: Object.h:531
Creature * FindNearestCreature(uint32 entry, float range, bool alive=true) const
Definition: Object.cpp:2446
float GetPositionX() const
Definition: Position.h:117
virtual bool SetBossState(uint32 id, EncounterState state)
Definition: InstanceScript.cpp:351
Creature * GetCreature(uint32 type)
Definition: InstanceScript.cpp:100
void SendEncounterUnit(uint32 type, Unit *unit=nullptr, uint8 param1=0, uint8 param2=0)
Definition: InstanceScript.cpp:713
void SetZoneMusic(uint32 zoneId, uint32 musicId)
Definition: Map.cpp:3759
Definition: MoveSplineInit.h:71
bool SummonCreatures(Creature *summoner, PassengerSlots first, PassengerSlots last)
Definition: boss_icecrown_gunship_battle.cpp:425

References _controller, _events, _firstMageCooldown, _instance, ACTION_ENEMY_GUNSHIP_TALK, ACTION_EXIT_SHIP, ACTION_SPAWN_ALL_ADDS, ACTION_SPAWN_MAGE, AREA_ICECROWN_CITADEL, DATA_ICECROWN_GUNSHIP_BATTLE, DATA_ORGRIMS_HAMMER, DATA_THE_SKYBREAKER, Creature::DespawnOrUnsummon(), Movement::MoveSplineInit::DisableTransportPathTransformations(), ENCOUNTER_FRAME_ENGAGE, EVENT_ADDS, EVENT_CHECK_MORTAR, EVENT_CHECK_RIFLEMAN, EVENT_INTRO_H_5, EVENT_INTRO_H_6, EVENT_KEEP_PLAYER_IN_COMBAT, EVENT_SUMMON_MAGE, WorldObject::FindNearestCreature(), InstanceScript::GetCreature(), GameTime::GetGameTime(), WorldObject::GetMap(), Position::GetPositionX(), Position::GetPositionY(), Position::GetPositionZ(), IN_MILLISECONDS, IN_PROGRESS, ScriptedAI::Is25ManRaid(), Movement::MoveSplineInit::Launch(), ScriptedAI::me, Movement::MoveSplineInit::MovebyPath(), MUSIC_ENCOUNTER, NPC_IGB_MURADIN_BRONZEBEARD, SaurfangExitPath, SaurfangExitPathSize, SAY_SAURFANG_INTRO_5, EventMap::ScheduleEvent(), InstanceScript::SendEncounterUnit(), InstanceScript::SetBossState(), Creature::SetWalk(), Map::SetZoneMusic(), SLOT_MAGE_1, SLOT_MAGE_2, SLOT_MORTAR_1, SLOT_MORTAR_2, SLOT_MORTAR_4, SLOT_RIFLEMAN_1, SLOT_RIFLEMAN_4, SPELL_CHECK_FOR_PLAYERS, and PassengerController::SummonCreatures().

◆ EnterEvadeMode()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::EnterEvadeMode ( EvadeReason  )
inlineoverridevirtual

Reimplemented from CreatureAI.

811 {
812 if (!me->IsAlive())
813 return;
815 me->CombatStop(true);
817 Reset();
818 }
void Reset() override
Definition: ScriptedCreature.h:287
void ClearAllThreat()
Definition: ThreatMgr.cpp:417
void CombatStop(bool includingCast=false)
Definition: Unit.cpp:10398
bool IsAlive() const
Definition: Unit.h:1204
ThreatMgr & GetThreatMgr()
Definition: Unit.h:839
void MoveTargetedHome(bool walk=false)
The unit will return this initial position (owner for pets and summoned creatures)....
Definition: MotionMaster.cpp:259

References ThreatMgr::ClearAllThreat(), Unit::CombatStop(), Unit::GetMotionMaster(), Unit::GetThreatMgr(), Unit::IsAlive(), ScriptedAI::me, MotionMaster::MoveTargetedHome(), and ScriptedAI::Reset().

◆ JustEngagedWith()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::JustEngagedWith ( Unit )
inlineoverridevirtual

Called for reaction when initially engaged.

Reimplemented from ScriptedAI.

801 {
808 }
@ SPELL_FRIENDLY_BOSS_DAMAGE_MOD
Definition: boss_icecrown_gunship_battle.cpp:110
@ SPELL_BATTLE_FURY
Definition: boss_icecrown_gunship_battle.cpp:131
@ EVENT_CLEAVE
Definition: boss_icecrown_gunship_battle.cpp:100
void CancelEvent(uint32 eventId)
Definition: EventMap.cpp:190

References _events, _instance, EventMap::CancelEvent(), Unit::CastSpell(), DATA_TEAMID_IN_INSTANCE, EVENT_CLEAVE, ZoneScript::GetData(), Unit::HasAura(), ScriptedAI::me, EventMap::ScheduleEvent(), SPELL_BATTLE_FURY, SPELL_FRIENDLY_BOSS_DAMAGE_MOD, and TEAM_HORDE.

◆ SetData()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::SetData ( uint32  type,
uint32  data 
)
inlineoverridevirtual

Reimplemented from UnitAI.

885 {
886 if (type == ACTION_CLEAR_SLOT)
887 {
889 if (data == SLOT_FREEZE_MAGE)
890 _events.ScheduleEvent(EVENT_SUMMON_MAGE, 30s, 33s + 500ms);
891 }
892 }
@ ACTION_CLEAR_SLOT
Definition: boss_icecrown_gunship_battle.cpp:196
PassengerSlots
Definition: boss_icecrown_gunship_battle.cpp:249
@ SLOT_FREEZE_MAGE
Definition: boss_icecrown_gunship_battle.cpp:251
void ClearSlot(PassengerSlots slot)
Definition: boss_icecrown_gunship_battle.cpp:464

References _controller, _events, ACTION_CLEAR_SLOT, PassengerController::ClearSlot(), EVENT_SUMMON_MAGE, EventMap::ScheduleEvent(), and SLOT_FREEZE_MAGE.

◆ sGossipSelect()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::sGossipSelect ( Player ,
uint32  ,
uint32   
)
inlineoverridevirtual

Reimplemented from UnitAI.

787 {
789 return;
791 me->GetTransport()->setActive(true);
798 }
@ UNIT_NPC_FLAG_GOSSIP
Definition: UnitDefines.h:294
@ EVENT_INTRO_H_2
Definition: boss_icecrown_gunship_battle.cpp:77
@ EVENT_INTRO_SUMMON_SKYBREAKER
Definition: boss_icecrown_gunship_battle.cpp:78
@ EVENT_INTRO_H_3
Definition: boss_icecrown_gunship_battle.cpp:79
@ EVENT_INTRO_H_4
Definition: boss_icecrown_gunship_battle.cpp:80
@ EVENT_INTRO_H_1
Definition: boss_icecrown_gunship_battle.cpp:76
void setActive(bool isActiveObject)
Definition: Object.cpp:1085
void EnableMovement(bool enabled)
Definition: Transport.cpp:455
void RemoveNpcFlag(NPCFlags flags)
Definition: Unit.h:696
bool HasNpcFlag(NPCFlags flags) const
Definition: Unit.h:694

References _events, MotionTransport::EnableMovement(), EVENT_INTRO_H_1, EVENT_INTRO_H_2, EVENT_INTRO_H_3, EVENT_INTRO_H_4, EVENT_INTRO_SUMMON_SKYBREAKER, WorldObject::GetTransport(), Unit::HasNpcFlag(), ScriptedAI::me, Unit::RemoveNpcFlag(), EventMap::ScheduleEvent(), WorldObject::setActive(), GameObject::ToMotionTransport(), and UNIT_NPC_FLAG_GOSSIP.

◆ UpdateAI()

void npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::UpdateAI ( uint32  )
inlineoverridevirtual

Use to start attacking a target. Called just before JustEngagedWith()

Reimplemented from ScriptedAI.

904 {
906 {
907 if (me->GetVictim())
908 {
910 {
911 if (me->GetVictim()->GetPositionZ() >= 478.0f)
912 {
913 float x, y, z, o;
914 me->GetHomePosition(x, y, z, o);
915 me->GetMotionMaster()->MovePoint(0, x, y, z, false);
916 }
917 }
918 else
919 {
920 if (me->GetVictim()->GetPositionZ() < 478.0f)
922 }
923 }
924
925 if (checkTimer <= diff)
926 {
927 checkTimer = 1000;
928 Map::PlayerList const& pl = me->GetMap()->GetPlayers();
929 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
930 if (Player* p = itr->GetSource())
931 if (CanAIAttack(p) && me->IsValidAttackTarget(p))
932 {
934 p->SetInCombatWith(me);
935 me->AddThreat(p, 0.0f);
936 }
937 }
938 else
939 checkTimer -= diff;
940 }
941
942 UpdateVictim();
943 _events.Update(diff);
944
945 switch (_events.ExecuteEvent())
946 {
947 case 0:
948 break;
949 case EVENT_INTRO_H_1:
951 break;
952 case EVENT_INTRO_H_2:
954 break;
956 sTransportMgr->CreateTransport(GO_THE_SKYBREAKER_H, 0, me->GetMap());
957 break;
958 case EVENT_INTRO_H_3:
960 break;
961 case EVENT_INTRO_H_4:
963 break;
964 case EVENT_INTRO_H_5:
966 muradin->AI()->Talk(SAY_MURADIN_INTRO_H);
967 break;
968 case EVENT_INTRO_H_6:
970 break;
973 {
974 //_instance->DoCastSpellOnPlayers(SPELL_LOCK_PLAYERS_AND_TAP_CHEST);
975 Map::PlayerList const& pl = me->GetMap()->GetPlayers();
976 for (Map::PlayerList::const_iterator itr = pl.begin(); itr != pl.end(); ++itr)
977 if (Player* p = itr->GetSource())
978 if (!p->IsGameMaster())
979 p->SetInCombatState(true);
981 }
982 break;
983
987 break;
988 case EVENT_ADDS:
993 if (MotionTransport* orgrimsHammer = (me->GetTransport() ? me->GetTransport()->ToMotionTransport() : nullptr))
994 {
995 float x, y, z, o;
997 orgrimsHammer->CalculatePassengerPosition(x, y, z, &o);
999 }
1000
1002 if (MotionTransport* skybreaker = transport->ToMotionTransport())
1003 {
1004 float x, y, z, o;
1006 skybreaker->CalculatePassengerPosition(x, y, z, &o);
1008 }
1009
1012 break;
1015 muradin->AI()->Talk(SAY_MURADIN_BOARD);
1016 break;
1019 {
1021 {
1024 }
1025 }
1027 break;
1028 case EVENT_CHECK_MORTAR:
1030 {
1032 {
1035 }
1036 }
1038 break;
1039 case EVENT_CLEAVE:
1040 if (me->GetVictim())
1041 me->CastSpell(me->GetVictim(), SPELL_CLEAVE, false);
1043 break;
1044
1045 default:
1046 break;
1047 }
1048
1050 return;
1051
1054 else if (me->isAttackReady())
1055 {
1059 }
1060 }
#define sTransportMgr
Definition: TransportMgr.h:163
@ CHASE_MOTION_TYPE
Definition: MotionMaster.h:43
@ UNIT_STATE_CASTING
Definition: UnitDefines.h:164
@ TEMPSUMMON_TIMED_DESPAWN
Definition: Object.h:47
@ SPELL_CLEAVE
Definition: boss_icecrown_gunship_battle.cpp:130
@ SPELL_RENDING_THROW
Definition: boss_icecrown_gunship_battle.cpp:153
Position const OrgrimsHammerTeleportPortal
Definition: boss_icecrown_gunship_battle.cpp:212
@ SAY_SAURFANG_INTRO_4
Definition: boss_icecrown_gunship_battle.cpp:38
@ SAY_SAURFANG_MAGES
Definition: boss_icecrown_gunship_battle.cpp:46
@ SAY_SAURFANG_ENTER_SKYBREAKER
Definition: boss_icecrown_gunship_battle.cpp:43
@ SAY_SAURFANG_INTRO_3
Definition: boss_icecrown_gunship_battle.cpp:37
@ SAY_MURADIN_INTRO_H
Definition: boss_icecrown_gunship_battle.cpp:58
@ SAY_SAURFANG_INTRO_1
Definition: boss_icecrown_gunship_battle.cpp:35
@ SAY_SAURFANG_INTRO_2
Definition: boss_icecrown_gunship_battle.cpp:36
@ SAY_SAURFANG_AXETHROWERS
Definition: boss_icecrown_gunship_battle.cpp:44
@ SAY_MURADIN_BOARD
Definition: boss_icecrown_gunship_battle.cpp:59
@ SAY_SAURFANG_ROCKETEERS
Definition: boss_icecrown_gunship_battle.cpp:45
@ SAY_SAURFANG_INTRO_6
Definition: boss_icecrown_gunship_battle.cpp:40
Position const SkybreakerTeleportExit
Definition: boss_icecrown_gunship_battle.cpp:213
@ EVENT_ADDS_BOARD_YELL
Definition: boss_icecrown_gunship_battle.cpp:97
@ SLOT_MARINE_4
Definition: boss_icecrown_gunship_battle.cpp:283
@ SLOT_RIFLEMAN_8
Definition: boss_icecrown_gunship_battle.cpp:267
@ SLOT_MARINE_1
Definition: boss_icecrown_gunship_battle.cpp:278
@ SLOT_SERGEANT_2
Definition: boss_icecrown_gunship_battle.cpp:289
@ SLOT_SERGEANT_1
Definition: boss_icecrown_gunship_battle.cpp:286
@ SLOT_MARINE_2
Definition: boss_icecrown_gunship_battle.cpp:279
@ NPC_TELEPORT_PORTAL
Definition: icecrown_citadel.h:231
@ NPC_TELEPORT_EXIT
Definition: icecrown_citadel.h:232
@ GO_THE_SKYBREAKER_H
Definition: icecrown_citadel.h:403
Definition: LinkedList.h:139
uint32 ExecuteEvent()
Definition: EventMap.cpp:114
void Update(uint32 time)
Definition: EventMap.h:54
void DoMeleeAttackIfReady()
Definition: UnitAI.cpp:39
bool UpdateVictim()
Definition: CreatureAI.cpp:269
TempSummon * SummonCreature(uint32 id, const Position &pos, TempSummonType spwtype=TEMPSUMMON_MANUAL_DESPAWN, uint32 despwtime=0, uint32 vehId=0, SummonPropertiesEntry const *properties=nullptr, bool visibleBySummonerOnly=false) const
Definition: Object.cpp:2355
void SetOrientation(float orientation)
Definition: Position.h:112
void GetPosition(float &x, float &y) const
Definition: Position.h:122
float GetAngle(const Position *pos) const
Definition: Position.cpp:77
Definition: Player.h:1064
Definition: Transport.h:29
Definition: Transport.h:48
void AddThreat(Unit *victim, float fThreat, SpellSchoolMask schoolMask=SPELL_SCHOOL_MASK_NORMAL, SpellInfo const *threatSpell=nullptr)
Definition: Unit.cpp:14608
void SetInCombatWith(Unit *enemy, uint32 duration=0)
Definition: Unit.cpp:13538
bool IsWithinMeleeRange(Unit const *obj, float dist=0.f) const
Definition: Unit.cpp:665
Unit * GetVictim() const
Definition: Unit.h:789
bool HasUnitState(const uint32 f) const
Definition: Unit.h:673
bool isAttackReady(WeaponAttackType type=BASE_ATTACK) const
Definition: Unit.h:766
bool IsValidAttackTarget(Unit const *target, SpellInfo const *bySpell=nullptr) const
Definition: Unit.cpp:13828
void resetAttackTimer(WeaponAttackType type=BASE_ATTACK)
Definition: Unit.cpp:643
ObjectGuid GetGuidData(uint32 type) const override
Definition: InstanceScript.cpp:95
Map * instance
Definition: InstanceScript.h:148
PlayerList const & GetPlayers() const
Definition: Map.h:486
Transport * GetTransport(ObjectGuid const guid)
Definition: Map.cpp:3329
Definition: MapRefMgr.h:26
iterator begin()
Definition: MapRefMgr.h:36
iterator end()
Definition: MapRefMgr.h:37
MovementGeneratorType GetCurrentMovementGeneratorType() const
Definition: MotionMaster.cpp:910
bool CanAIAttack(Unit const *target) const override
Definition: boss_icecrown_gunship_battle.cpp:1077

References _axethrowersYellCooldown, _controller, _events, _instance, _rocketeersYellCooldown, Unit::AddThreat(), MapRefMgr::begin(), CanAIAttack(), Unit::CastSpell(), CHASE_MOTION_TYPE, checkTimer, DATA_ICECROWN_GUNSHIP_BATTLE, UnitAI::DoMeleeAttackIfReady(), MapRefMgr::end(), EVENT_ADDS, EVENT_ADDS_BOARD_YELL, EVENT_CHECK_MORTAR, EVENT_CHECK_RIFLEMAN, EVENT_CLEAVE, EVENT_INTRO_H_1, EVENT_INTRO_H_2, EVENT_INTRO_H_3, EVENT_INTRO_H_4, EVENT_INTRO_H_5, EVENT_INTRO_H_6, EVENT_INTRO_SUMMON_SKYBREAKER, EVENT_KEEP_PLAYER_IN_COMBAT, EVENT_SUMMON_MAGE, EventMap::ExecuteEvent(), WorldObject::FindNearestCreature(), Position::GetAngle(), InstanceScript::GetBossState(), MotionMaster::GetCurrentMovementGeneratorType(), GameTime::GetGameTime(), InstanceScript::GetGuidData(), Creature::GetHomePosition(), WorldObject::GetMap(), Unit::GetMotionMaster(), Map::GetPlayers(), Position::GetPosition(), Position::GetPositionZ(), WorldObject::GetTransport(), Map::GetTransport(), Unit::GetVictim(), GO_THE_SKYBREAKER_H, Unit::HasUnitState(), IN_PROGRESS, InstanceScript::instance, ScriptedAI::Is25ManRaid(), Unit::isAttackReady(), Unit::IsValidAttackTarget(), Unit::IsWithinMeleeRange(), ScriptedAI::me, MotionMaster::MoveChase(), MotionMaster::MovePoint(), NPC_IGB_MURADIN_BRONZEBEARD, NPC_TELEPORT_EXIT, NPC_TELEPORT_PORTAL, OrgrimsHammerTeleportPortal, Unit::resetAttackTimer(), SAY_MURADIN_BOARD, SAY_MURADIN_INTRO_H, SAY_SAURFANG_AXETHROWERS, SAY_SAURFANG_ENTER_SKYBREAKER, SAY_SAURFANG_INTRO_1, SAY_SAURFANG_INTRO_2, SAY_SAURFANG_INTRO_3, SAY_SAURFANG_INTRO_4, SAY_SAURFANG_INTRO_6, SAY_SAURFANG_MAGES, SAY_SAURFANG_ROCKETEERS, EventMap::ScheduleEvent(), Unit::SetInCombatWith(), Position::SetOrientation(), SkybreakerTeleportExit, SLOT_FREEZE_MAGE, SLOT_MAGE_1, SLOT_MAGE_2, SLOT_MARINE_1, SLOT_MARINE_2, SLOT_MARINE_4, SLOT_MORTAR_1, SLOT_MORTAR_2, SLOT_MORTAR_4, SLOT_RIFLEMAN_1, SLOT_RIFLEMAN_4, SLOT_RIFLEMAN_8, SLOT_SERGEANT_1, SLOT_SERGEANT_2, SPELL_CLEAVE, SPELL_RENDING_THROW, sTransportMgr, WorldObject::SummonCreature(), PassengerController::SummonCreatures(), TEMPSUMMON_TIMED_DESPAWN, GameObject::ToMotionTransport(), UNIT_STATE_CASTING, EventMap::Update(), and CreatureAI::UpdateVictim().

Member Data Documentation

◆ _axethrowersYellCooldown

time_t npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::_axethrowersYellCooldown
private

◆ _controller

PassengerController npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::_controller
private

◆ _events

EventMap npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::_events
private

◆ _firstMageCooldown

time_t npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::_firstMageCooldown
private

◆ _instance

InstanceScript* npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::_instance
private

◆ _rocketeersYellCooldown

time_t npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::_rocketeersYellCooldown
private

◆ checkTimer

uint16 npc_high_overlord_saurfang_igb::npc_high_overlord_saurfang_igbAI::checkTimer
private