From 0ab19849bf999338d0e47f9c79688396b9039085 Mon Sep 17 00:00:00 2001 From: Joaquin <67109235+Taiga74164@users.noreply.github.com> Date: Sun, 19 Jun 2022 02:21:15 -0600 Subject: [PATCH] Clean up --- cheat-library/src/user/cheat/player/GodMode.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/cheat-library/src/user/cheat/player/GodMode.cpp b/cheat-library/src/user/cheat/player/GodMode.cpp index 0e4e3d4..484d3db 100644 --- a/cheat-library/src/user/cheat/player/GodMode.cpp +++ b/cheat-library/src/user/cheat/player/GodMode.cpp @@ -88,9 +88,8 @@ namespace cheat::feature { auto& gm = GodMode::GetInstance(); auto& manager = game::EntityManager::instance(); - if (gm.f_AltGodMode) - if (manager.avatar()->runtimeID() == attackeeRuntimeID) - return; + if (gm.f_AltGodMode && manager.avatar()->runtimeID() == attackeeRuntimeID) + return; CALL_ORIGIN(LCBaseCombat_FireBeingHitEvent_Hook, __this, attackeeRuntimeID, attackResult, method); }