OSDN Git Service

[Refactor] #40514 has_good_luck()を修正. / Fix has_good_luck().
authordeskull <deskull@users.sourceforge.jp>
Sun, 6 Sep 2020 00:31:12 +0000 (09:31 +0900)
committerdeskull <deskull@users.sourceforge.jp>
Sun, 6 Sep 2020 00:31:12 +0000 (09:31 +0900)
src/player/player-status-flags.c

index cde7412..1d3fb8b 100644 (file)
@@ -1526,4 +1526,4 @@ bool is_not_monk_weapon(player_type *creature_ptr, int i)
     return (creature_ptr->pclass == CLASS_MONK) || (creature_ptr->pclass == CLASS_FORCETRAINER) && (!s_info[creature_ptr->pclass].w_max[tval][sval]);
 }
 
-bool has_good_luck(player_type *creature_ptr) { return (creature_ptr->pseikaku == PERSONALITY_LUCKY) || (creature_ptr->muta3 |= MUT3_GOOD_LUCK); };
+bool has_good_luck(player_type *creature_ptr) { return (creature_ptr->pseikaku == PERSONALITY_LUCKY) || (creature_ptr->muta3 & MUT3_GOOD_LUCK); }