From d99c4460c8b6f396bca0dfa6a266bdab2942181d Mon Sep 17 00:00:00 2001 From: FynnTW Date: Fri, 6 Dec 2024 14:16:22 +0200 Subject: [PATCH] Fix multi perimeter attacks --- M2TWEOP Code/M2TWEOP library/patchesForGame.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/M2TWEOP Code/M2TWEOP library/patchesForGame.cpp b/M2TWEOP Code/M2TWEOP library/patchesForGame.cpp index 7b32b776..8dfc0a2f 100644 --- a/M2TWEOP Code/M2TWEOP library/patchesForGame.cpp +++ b/M2TWEOP Code/M2TWEOP library/patchesForGame.cpp @@ -1373,6 +1373,8 @@ int GATES_IGNORED = 0; bool __fastcall patchesForGame::onDecideRamAttacks(buildingBattle* gate, aiDetachment* detachment, int numRamsLeft) { + if (gate->perimeter > 0 && battleHelpers::getBattleData()->battleState >= 5) + return true; if (detachment != LAST_DETACHMENT) { GATES_IGNORED = 0;