OSDN Git Service

ケット・シー及びイェンダーの魔法使い(YENDER_WIZARD_2)を地上で倒すと(なし)をドロップしてしまうバグを修正
authorSlimebreath6078 <slimebreath6078@yahoo.co.jp>
Wed, 16 Aug 2023 13:55:15 +0000 (22:55 +0900)
committerDeskull <61610939+sikabane-works@users.noreply.github.com>
Sun, 15 Oct 2023 09:07:50 +0000 (18:07 +0900)
src/monster-floor/special-death-switcher.cpp

index 6ebb0be..0d1ca44 100644 (file)
@@ -546,12 +546,18 @@ void switch_special_death(PlayerType *player_ptr, monster_death_type *md_ptr, At
         on_dead_dragon_centipede(player_ptr, md_ptr);
         return;
     case MonsterRaceId::CAIT_SITH:
+        if (player_ptr->current_floor_ptr->dun_level <= 0) {
+            return;
+        }
         drop_specific_item_on_dead(player_ptr, md_ptr, kind_is_boots);
         return;
     case MonsterRaceId::YENDOR_WIZARD_1:
         on_dead_random_artifact(player_ptr, md_ptr, kind_is_amulet);
         return;
     case MonsterRaceId::YENDOR_WIZARD_2:
+        if (player_ptr->current_floor_ptr->dun_level <= 0) {
+            return;
+        }
         drop_specific_item_on_dead(player_ptr, md_ptr, kind_is_amulet);
         return;
     case MonsterRaceId::MANIMANI: