From 9cb329f1c622fb12bd8d1cadd37282451ea9f92c Mon Sep 17 00:00:00 2001 From: Weezley <119649497+theblazingrush@users.noreply.github.com> Date: Thu, 15 Feb 2024 22:13:34 -0500 Subject: [PATCH] Update Enhanced Homing Attack Rebound.hmm --- .../Physics/Enhanced Homing Attack Rebound.hmm | 18 +++++++++--------- 1 file changed, 9 insertions(+), 9 deletions(-) diff --git a/Source/Sonic Frontiers/Physics/Enhanced Homing Attack Rebound.hmm b/Source/Sonic Frontiers/Physics/Enhanced Homing Attack Rebound.hmm index 127fdf8a..a71050c5 100644 --- a/Source/Sonic Frontiers/Physics/Enhanced Homing Attack Rebound.hmm +++ b/Source/Sonic Frontiers/Physics/Enhanced Homing Attack Rebound.hmm @@ -61,16 +61,16 @@ Notes; var lockonTarget = Player.Status.GetLockOnTarget(); - if (lockonTarget == null) - return; - - if (GameObject.GetGOC(lockonTarget, "GOCHealth") != null) - { - isEnemy = true; - } - else + if (lockonTarget != null) { - isEnemy = false; + if (GameObject.GetGOC(lockonTarget, "GOCHealth") != null) + { + isEnemy = true; + } + else + { + isEnemy = false; + } } if (Player.State.GetCurrentStateID() == Sonic.StateID.StateHomingFinished && Player.State.GetPreviousStateID() != Sonic.StateID.StateHomingAttackInStorm && !isDive)