204 if (target->IsAlive())
232 if (target->IsAlive())
259 if (target->IsAlive())
301 return GetTrialOfTheChampionAI<boss_black_knightAI>(creature);
338 if (target->IsAlive())
348 return GetTrialOfTheChampionAI<npc_risen_ghoulAI>(creature);
378 return GetTrialOfTheChampionAI<npc_black_knight_skeletal_gryphonAI>(creature);
uint32 urand(uint32 min, uint32 max)
#define RegisterSpellScript(spell_script)
@ SPELL_EFFECT_SCRIPT_EFFECT
#define SpellEffectFn(F, I, N)
static constexpr uint32 PATH_ESCORT_GRYPHON
void AddSC_boss_black_knight()
void AttackStart(Unit *victim) override
== Triggered Actions Requested ==================
void SetCanMelee(bool canMelee, bool fleeFromMelee=false)
void SetDisplayId(uint32 displayId, bool setNative=false) override
virtual bool SetBossState(uint32 id, EncounterState state)
int32 CalcValue(WorldObject const *caster=nullptr, int32 const *basePoints=nullptr, Unit const *target=nullptr, float *variance=nullptr, uint32 castItemId=0, int32 itemLevel=-1) const
SpellEffectInfo const & GetEffect(SpellEffIndex index) const
static bool ValidateSpellInfo(std::initializer_list< uint32 > spellIds)
HookList< EffectHandler > OnEffectHit
Unit * GetHitUnit() const
int32 GetEffectValue() const
SpellEffectInfo const & GetEffectInfo() const
HookList< EffectHandler > OnEffectHitTarget
void Despawn(Creature const *summon)
void Summon(Creature const *summon)
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 DoCastAOE(uint32 spellId, CastSpellExtraArgs const &args={})
SpellCastResult DoCast(uint32 spellId)
void ClearUnitState(uint32 f)
void SetHealth(uint64 val)
void AddUnitState(uint32 f)
uint32 GetNativeDisplayId() const
InstanceScript * GetInstanceScript() const
SpellCastResult CastSpell(CastSpellTargetArg const &targets, uint32 spellId, CastSpellExtraArgs const &args={ })
CreatureAI * GetAI(Creature *creature) const override
CreatureAI * GetAI(Creature *creature) const override
npc_black_knight_skeletal_gryphon()
CreatureAI * GetAI(Creature *creature) const override
void HandleScript(SpellEffIndex)
bool Validate(SpellInfo const *spellInfo) override
bool Validate(SpellInfo const *spellInfo) override
void HandleScript(SpellEffIndex)
void Start(bool isActiveAttacker=true, ObjectGuid playerGUID=ObjectGuid::Empty, Quest const *quest=nullptr, bool instantRespawn=false, bool canLoopPath=false)
void LoadPath(uint32 pathId)
void UpdateAI(uint32 diff) override
uint32 uiPlagueStrikeTimer
uint32 uiGhoulExplodeTimer
boss_black_knightAI(Creature *creature)
void JustDied(Unit *) override
void JustSummoned(Creature *summon) override
uint32 uiDeathRespiteTimer
void SummonedCreatureDespawn(Creature *summon) override
void DamageTaken(Unit *, uint32 &uiDamage, DamageEffectType, SpellInfo const *) override
InstanceScript * instance
uint32 uiMarkedDeathTimer
void UpdateAI(uint32 uiDiff) override
uint32 uiDeathArmyCheckTimer
void UpdateAI(uint32 uiDiff) override
npc_black_knight_skeletal_gryphonAI(Creature *creature)
void UpdateAI(uint32 uiDiff) override
npc_risen_ghoulAI(Creature *creature)