crossbow:: checkmate rule

This commit is contained in:
Zeno Rogue committed 2023-10-28 09:51:27 +02:00
1 parent 4f82c3eb8e
commit b0d117e646
3 files changed
+27 -1

No files matched your search

+1 -1
View File
@@ -332,7 +332,7 @@ bool pcmove::movepcto() {
changes.rollback();
if(!checkonly) flipplayer = false;
if(!b && items[itCrossbow] == 0 && bow::crossbow_mode() && !bow::fire_mode && d >= 0) {
if(!b && items[itCrossbow] == 0 && bow::crossbow_mode() && !bow::fire_mode && d >= 0 && !checkonly) {
changes.init(checkonly);
changes.value_keep(bow::bowpath_map);
b = try_shooting(true);