OSDN Git Service

[Fix] #41297 破片耐性の傷無効が効かない
authorHabu <habu@users.osdn.me>
Thu, 21 Jan 2021 11:03:47 +0000 (20:03 +0900)
committerHabu <habu@users.osdn.me>
Thu, 21 Jan 2021 11:03:47 +0000 (20:03 +0900)
has_resist_shard() で種族による耐性の判定で半巨人であるべき所が半タイタンになってしまっている。
例によってキャラクタ情報表示用の add_race_flags() は正しいので実際に得ている耐性と齟齬が生じていた。
ただしく半巨人で破片耐性が得られるようにし、半タイタンでは破片耐性は得られないようにする。

src/player/player-status-flags.c

index 5010363..41c991e 100644 (file)
@@ -1352,7 +1352,7 @@ BIT_FLAGS has_resist_shard(player_type *creature_ptr)
 {
     BIT_FLAGS result = 0L;
 
-    if (!creature_ptr->mimic_form && (creature_ptr->prace == RACE_HALF_TITAN || creature_ptr->prace == RACE_SKELETON))
+    if (!creature_ptr->mimic_form && (creature_ptr->prace == RACE_HALF_GIANT || creature_ptr->prace == RACE_SKELETON))
         result |= 0x01 << FLAG_CAUSE_RACE;
 
     if (creature_ptr->special_defense & KATA_MUSOU) {
@@ -1729,4 +1729,3 @@ BIT_FLAGS player_aggravate_state(player_type *creature_ptr)
 }
 
 bool has_aggravate(player_type *creature_ptr) { return player_aggravate_state(creature_ptr) == AGGRAVATE_NORMAL; }
-