OSDN Git Service

[Fix] #1727 忍者の変わり身が意図せず発動する事象を修正した / Resolved the issue that the ninja's kawarimi...
authorHourier <66951241+Hourier@users.noreply.github.com>
Sun, 3 Oct 2021 10:22:29 +0000 (19:22 +0900)
committerHourier <66951241+Hourier@users.noreply.github.com>
Sun, 3 Oct 2021 10:22:29 +0000 (19:22 +0900)
src/effect/effect-player.cpp

index 20c786d..daf2be9 100644 (file)
@@ -125,12 +125,11 @@ static process_result check_continue_player_effect(player_type *player_ptr, effe
         return PROCESS_FALSE;
     }
 
-    auto is_kawarimi = kawarimi(player_ptr, true);
     auto is_effective = ep_ptr->dam > 0;
     is_effective &= randint0(55) < (player_ptr->lev * 3 / 5 + 20);
     is_effective &= ep_ptr->who > 0;
     is_effective &= ep_ptr->who != player_ptr->riding;
-    if (is_kawarimi && is_effective) {
+    if (is_effective && kawarimi(player_ptr, true)) {
         return PROCESS_FALSE;
     }