Possible unit control fix
This commit is contained in:
@@ -107,7 +107,7 @@ public class Team implements Comparable<Team>{
|
|||||||
|
|
||||||
/** @return whether this team is supposed to be AI-controlled. */
|
/** @return whether this team is supposed to be AI-controlled. */
|
||||||
public boolean isAI(){
|
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). */
|
/** @return whether this team is solely comprised of AI (with no players possible). */
|
||||||
|
|||||||
Reference in New Issue
Block a user