From ace6e099794231bc5c5f3a70a7a2614d3a139f35 Mon Sep 17 00:00:00 2001 From: Anuken Date: Sun, 8 May 2022 12:09:06 -0400 Subject: [PATCH] Possible unit control fix --- core/src/mindustry/game/Team.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/src/mindustry/game/Team.java b/core/src/mindustry/game/Team.java index af2bfcedf6..7d0cf5b5d8 100644 --- a/core/src/mindustry/game/Team.java +++ b/core/src/mindustry/game/Team.java @@ -107,7 +107,7 @@ public class Team implements Comparable{ /** @return whether this team is supposed to be AI-controlled. */ public boolean isAI(){ - return (state.rules.waves || state.rules.attackMode) && this == state.rules.waveTeam; + return (state.rules.waves || state.rules.attackMode) && this == state.rules.waveTeam && !state.rules.pvp; } /** @return whether this team is solely comprised of AI (with no players possible). */