mirror of
https://github.com/arthur-pbty/xiao.git
synced 2026-06-23 18:05:01 +02:00
Fix
This commit is contained in:
@@ -16,8 +16,8 @@ module.exports = class Battle {
|
|||||||
}
|
}
|
||||||
|
|
||||||
reset(changeGuard = true) {
|
reset(changeGuard = true) {
|
||||||
if (changeGuard && this.user.guarding) this.user.changeGuard();
|
if (changeGuard && this.user.guard) this.user.changeGuard();
|
||||||
if (changeGuard && this.opponent.guarding) this.opponent.changeGuard();
|
if (changeGuard && this.opponent.guard) this.opponent.changeGuard();
|
||||||
this.userTurn = !this.userTurn;
|
this.userTurn = !this.userTurn;
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user