refactor(Scripts/OHF): Clean up script files (#17724)

This commit is contained in:
Andrew
2023-11-15 20:44:39 -03:00
committed by GitHub
parent db851b483e
commit d325332090
2 changed files with 2 additions and 36 deletions

View File

@@ -37,18 +37,7 @@ enum Spells
struct boss_epoch_hunter : public BossAI
{
boss_epoch_hunter(Creature* creature) : BossAI(creature, DATA_EPOCH_HUNTER)
{
scheduler.SetValidator([this]
{
return !me->HasUnitState(UNIT_STATE_CASTING);
});
}
void Reset() override
{
_Reset();
}
boss_epoch_hunter(Creature* creature) : BossAI(creature, DATA_EPOCH_HUNTER) { }
void JustEngagedWith(Unit* /*who*/) override
{
@@ -96,18 +85,6 @@ struct boss_epoch_hunter : public BossAI
taretha->AI()->DoAction(me->GetEntry());
}
}
void UpdateAI(uint32 diff) override
{
if (!UpdateVictim())
return;
scheduler.Update(diff);
if (me->HasUnitState(UNIT_STATE_CASTING))
return;
DoMeleeAttackIfReady();
}
};
void AddSC_boss_epoch_hunter()

View File

@@ -42,13 +42,7 @@ enum Spells
struct boss_lieutenant_drake : public BossAI
{
boss_lieutenant_drake(Creature* creature) : BossAI(creature, DATA_LIEUTENANT_DRAKE)
{
scheduler.SetValidator([this]
{
return !me->HasUnitState(UNIT_STATE_CASTING);
});
}
boss_lieutenant_drake(Creature* creature) : BossAI(creature, DATA_LIEUTENANT_DRAKE) { }
void InitializeAI() override
{
@@ -57,11 +51,6 @@ struct boss_lieutenant_drake : public BossAI
me->GetMotionMaster()->MovePath(pathId, false);
}
void Reset() override
{
_Reset();
}
void JustEngagedWith(Unit* /*who*/) override
{
_JustEngagedWith();