mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-17 00:29:56 +00:00
refactored alliance
This commit is contained in:
@@ -208,7 +208,7 @@ export class ClientGame {
|
||||
if (tile.owner() == this.myPlayer) {
|
||||
return
|
||||
}
|
||||
if (tile.owner().isPlayer() && this.myPlayer.alliedWith(tile.owner() as Player)) {
|
||||
if (tile.owner().isPlayer() && this.myPlayer.isAlliedWith(tile.owner() as Player)) {
|
||||
this.eventBus.emit(new DisplayMessageEvent("Cannot attack ally", MessageType.WARN))
|
||||
return
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user