mirror of
https://github.com/liyunfan1223/azerothcore-wotlk.git
synced 2026-08-08 15:58:04 +00:00
Revert "fix(Scripts/Temple of AhnQiraj): Cthun's Eye should always focus on b…" (#13938)
Revert "fix(Scripts/Temple of AhnQiraj): Cthun's Eye should always focus on b… (#13796)"
This reverts commit 888f9bb0bb.
This commit is contained in:
@@ -199,15 +199,11 @@ struct boss_eye_of_cthun : public BossAI
|
|||||||
// Z checks are necessary here because AQ maps do funky stuff.
|
// Z checks are necessary here because AQ maps do funky stuff.
|
||||||
if (me->IsWithinLOSInMap(who) && me->IsWithinDist2d(who, 90.0f) && who->GetPositionZ() > 100.0f)
|
if (me->IsWithinLOSInMap(who) && me->IsWithinDist2d(who, 90.0f) && who->GetPositionZ() > 100.0f)
|
||||||
{
|
{
|
||||||
me->Attack(who, false);
|
AttackStart(who);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
void AttackStart(Unit* /*victim*/) override
|
|
||||||
{
|
|
||||||
}
|
|
||||||
|
|
||||||
void DoAction(int32 action) override
|
void DoAction(int32 action) override
|
||||||
{
|
{
|
||||||
if (action == ACTION_SPAWN_EYE_TENTACLES)
|
if (action == ACTION_SPAWN_EYE_TENTACLES)
|
||||||
@@ -242,7 +238,6 @@ struct boss_eye_of_cthun : public BossAI
|
|||||||
if (Unit* target = ObjectAccessor::GetUnit(*me, _beamTarget))
|
if (Unit* target = ObjectAccessor::GetUnit(*me, _beamTarget))
|
||||||
{
|
{
|
||||||
DoCast(target, SPELL_GREEN_BEAM);
|
DoCast(target, SPELL_GREEN_BEAM);
|
||||||
me->Attack(target, false);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
task.Repeat();
|
task.Repeat();
|
||||||
@@ -251,11 +246,7 @@ struct boss_eye_of_cthun : public BossAI
|
|||||||
{
|
{
|
||||||
_scheduler.Schedule(5s, [this](TaskContext task)
|
_scheduler.Schedule(5s, [this](TaskContext task)
|
||||||
{
|
{
|
||||||
if (Unit* target = SelectTarget(SelectTargetMethod::Random, 0, 0.f, 0))
|
DoCastRandomTarget(SPELL_GREEN_BEAM);
|
||||||
{
|
|
||||||
DoCast(target, SPELL_GREEN_BEAM);
|
|
||||||
me->Attack(target, false);
|
|
||||||
}
|
|
||||||
|
|
||||||
task.SetGroup(GROUP_BEAM_PHASE);
|
task.SetGroup(GROUP_BEAM_PHASE);
|
||||||
task.Repeat(3s);
|
task.Repeat(3s);
|
||||||
|
|||||||
Reference in New Issue
Block a user