mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-24 13:34:38 +00:00
fixed broken retreat
This commit is contained in:
@@ -208,7 +208,11 @@ export class AttackExecution implements Execution {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.attack.retreating() || !this.attack.isActive()) {
|
||||
if (this.attack.retreating()) {
|
||||
return; // Keep waiting for retreat flag to become "retreated"
|
||||
}
|
||||
|
||||
if (!this.attack.isActive()) {
|
||||
this.active = false;
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user