fix(Scripts/TheEye): Fix Capernian not casting if at max range (#18402)

This commit is contained in:
Andrew
2024-02-25 17:46:06 -03:00
committed by GitHub
parent 34598bfccf
commit 42cde6286f
@@ -871,7 +871,7 @@ struct npc_capernian : public ScriptedAI
{ {
if (me->Attack(who, false)) if (me->Attack(who, false))
{ {
me->GetMotionMaster()->MoveChase(who, 45.0f, 0); me->GetMotionMaster()->MoveChase(who, 30.0f, 0);
me->AddThreat(who, 0.0f); me->AddThreat(who, 0.0f);
} }
} }
@@ -891,7 +891,7 @@ struct npc_capernian : public ScriptedAI
} }
else else
{ {
me->GetMotionMaster()->MoveChase(me->GetVictim(), 45.0f); me->GetMotionMaster()->MoveChase(me->GetVictim(), 30.0f);
DoCastVictim(SPELL_CAPERNIAN_FIREBALL); DoCastVictim(SPELL_CAPERNIAN_FIREBALL);
} }