OSDN Git Service

[Fix] #1545 モンスターが直接攻撃をしない事象を修正した / Resolved the issue that monster doesn't attack...
authorHourier <66951241+Hourier@users.noreply.github.com>
Fri, 17 Sep 2021 15:37:08 +0000 (00:37 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Fri, 17 Sep 2021 15:37:08 +0000 (00:37 +0900)
src/monster-attack/monster-attack-player.cpp

index f66e1cc..09c9d4d 100644 (file)
@@ -86,7 +86,7 @@ static bool check_monster_continuous_attack(player_type *player_ptr, monap_type
     }
 
     auto is_neighbor = distance(player_ptr->y, player_ptr->x, monap_ptr->m_ptr->fy, monap_ptr->m_ptr->fx) <= 1;
-    return player_ptr->playing && !player_ptr->is_dead && is_neighbor && player_ptr->leaving;
+    return player_ptr->playing && !player_ptr->is_dead && is_neighbor && !player_ptr->leaving;
 }
 
 /*!