From: Habu Date: Sat, 22 Jul 2017 21:18:47 +0000 (+0900) Subject: (2.2.0.44) if文のブレースつけ忘れ修正 X-Git-Tag: v2.2.1~60 X-Git-Url: http://git.osdn.net/view?p=hengband%2Fhengband.git;a=commitdiff_plain;h=beb36860b9e6a8bfdc84799d5718f801b111e44d (2.2.0.44) if文のブレースつけ忘れ修正 本来種族が幽霊ではない時に限り地獄耐性によるダメージ軽減を行う (幽霊は地獄属性でHPが回復するためダメージ軽減が必要ないため) のを意図したコードだと思われるが、ブレースのつけ忘れにより 6/(1d4+7) の分母の部分だけ幽霊にも適用されてしまっていたのを修正 --- diff --git a/src/defines.h b/src/defines.h index 0c195561a..d8e4518c6 100644 --- a/src/defines.h +++ b/src/defines.h @@ -53,7 +53,7 @@ #define FAKE_VER_MAJOR 12 /*!< ゲームのバージョン番号定義(メジャー番号 + 10) */ #define FAKE_VER_MINOR 2 /*!< ゲームのバージョン番号定義(マイナー番号) */ #define FAKE_VER_PATCH 0 /*!< ゲームのバージョン番号定義(パッチ番号) */ -#define FAKE_VER_EXTRA 43 /*!< ゲームのバージョン番号定義(エクストラ番号) */ +#define FAKE_VER_EXTRA 44 /*!< ゲームのバージョン番号定義(エクストラ番号) */ /*! diff --git a/src/spells1.c b/src/spells1.c index a7884840c..be3274fa6 100644 --- a/src/spells1.c +++ b/src/spells1.c @@ -5465,7 +5465,9 @@ static bool project_p(int who, cptr who_name, int r, int y, int x, int dam, int if (p_ptr->resist_neth) { if (!prace_is_(RACE_SPECTRE)) + { dam *= 6; dam /= (randint1(4) + 7); + } } else if (!CHECK_MULTISHADOW()) drain_exp(200 + (p_ptr->exp / 100), 200 + (p_ptr->exp / 1000), 75);