mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-28 11:30:39 +00:00
update alliance()
This commit is contained in:
@@ -152,6 +152,9 @@ export class PlayerImpl implements MutablePlayer {
|
||||
}
|
||||
|
||||
allianceWith(other: Player): MutableAlliance | null {
|
||||
if (other == this) {
|
||||
return null
|
||||
}
|
||||
return this.alliances().find(a => a.recipient() == other || a.requestor() == other)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user