mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-07-09 18:05:47 +00:00
fix center button attack
This commit is contained in:
@@ -357,7 +357,7 @@ export class RadialMenu implements Layer {
|
||||
if (this.g.inSpawnPhase()) {
|
||||
this.eventBus.emit(new SendSpawnIntentEvent(this.clickedCell))
|
||||
} else {
|
||||
const myPlayer = this.g.players().find(p => p.clientID() == this.clientID)
|
||||
const myPlayer = this.g.myPlayer()
|
||||
if (myPlayer != null && this.g.owner(clicked) != myPlayer) {
|
||||
this.eventBus.emit(new SendAttackIntentEvent(this.g.owner(clicked).id(), this.uiState.attackRatio * myPlayer.troops()))
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user