refactor(Scripts/OHF): Clean up script files (#17724)
This commit is contained in:
+1
-24
@@ -37,18 +37,7 @@ enum Spells
|
|||||||
|
|
||||||
struct boss_epoch_hunter : public BossAI
|
struct boss_epoch_hunter : public BossAI
|
||||||
{
|
{
|
||||||
boss_epoch_hunter(Creature* creature) : BossAI(creature, DATA_EPOCH_HUNTER)
|
boss_epoch_hunter(Creature* creature) : BossAI(creature, DATA_EPOCH_HUNTER) { }
|
||||||
{
|
|
||||||
scheduler.SetValidator([this]
|
|
||||||
{
|
|
||||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
void Reset() override
|
|
||||||
{
|
|
||||||
_Reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
void JustEngagedWith(Unit* /*who*/) override
|
void JustEngagedWith(Unit* /*who*/) override
|
||||||
{
|
{
|
||||||
@@ -96,18 +85,6 @@ struct boss_epoch_hunter : public BossAI
|
|||||||
taretha->AI()->DoAction(me->GetEntry());
|
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()
|
void AddSC_boss_epoch_hunter()
|
||||||
|
|||||||
+1
-12
@@ -42,13 +42,7 @@ enum Spells
|
|||||||
|
|
||||||
struct boss_lieutenant_drake : public BossAI
|
struct boss_lieutenant_drake : public BossAI
|
||||||
{
|
{
|
||||||
boss_lieutenant_drake(Creature* creature) : BossAI(creature, DATA_LIEUTENANT_DRAKE)
|
boss_lieutenant_drake(Creature* creature) : BossAI(creature, DATA_LIEUTENANT_DRAKE) { }
|
||||||
{
|
|
||||||
scheduler.SetValidator([this]
|
|
||||||
{
|
|
||||||
return !me->HasUnitState(UNIT_STATE_CASTING);
|
|
||||||
});
|
|
||||||
}
|
|
||||||
|
|
||||||
void InitializeAI() override
|
void InitializeAI() override
|
||||||
{
|
{
|
||||||
@@ -57,11 +51,6 @@ struct boss_lieutenant_drake : public BossAI
|
|||||||
me->GetMotionMaster()->MovePath(pathId, false);
|
me->GetMotionMaster()->MovePath(pathId, false);
|
||||||
}
|
}
|
||||||
|
|
||||||
void Reset() override
|
|
||||||
{
|
|
||||||
_Reset();
|
|
||||||
}
|
|
||||||
|
|
||||||
void JustEngagedWith(Unit* /*who*/) override
|
void JustEngagedWith(Unit* /*who*/) override
|
||||||
{
|
{
|
||||||
_JustEngagedWith();
|
_JustEngagedWith();
|
||||||
|
|||||||
Reference in New Issue
Block a user