Skip to content

Commit

Permalink
Fix multi perimeter attacks
Browse files Browse the repository at this point in the history
  • Loading branch information
FynnTW committed Dec 6, 2024
1 parent 80f0fa2 commit d99c446
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions M2TWEOP Code/M2TWEOP library/patchesForGame.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit d99c446

Please sign in to comment.