mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-21 09:30:45 +00:00
feat: retreat stops attack + show when ennemy retreats (#209)
This commit is contained in:
@@ -419,6 +419,7 @@ export class EventsDisplay extends LitElement implements Layer {
|
||||
) as PlayerView
|
||||
)?.name()}
|
||||
</button>
|
||||
${attack.retreating ? "(retreating...)" : ""}
|
||||
`,
|
||||
)}
|
||||
</td>
|
||||
|
||||
@@ -185,6 +185,10 @@ export class AttackExecution implements Execution {
|
||||
return;
|
||||
}
|
||||
|
||||
if (this.attack.retreating()) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!this.attack.isActive()) {
|
||||
this.active = false;
|
||||
return;
|
||||
|
||||
Reference in New Issue
Block a user