mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-08-05 06:56:53 +00:00
fixed bug: cannot request alliance multiple times or if already allied
This commit is contained in:
@@ -253,6 +253,9 @@ export class UILayer implements Layer {
|
||||
console.warn('my player not found')
|
||||
return
|
||||
}
|
||||
if (myPlayer.alliedWith(owner) || myPlayer.pendingAllianceRequestWith(owner)) {
|
||||
return
|
||||
}
|
||||
|
||||
this.customMenu!.style.display = 'block';
|
||||
this.customMenu!.style.left = `${e.x}px`;
|
||||
|
||||
Reference in New Issue
Block a user