From be1f0925bcacad7de20fa65e0fd76cb93752ecdc Mon Sep 17 00:00:00 2001 From: deskull Date: Thu, 21 Nov 2019 20:55:03 +0900 Subject: [PATCH] =?utf8?q?[Fix]=20#38997=20do=5Fcmd=5Fcast()=20=E5=86=85?= =?utf8?q?=E5=A4=89=E6=95=B0=E5=8F=82=E7=85=A7=E4=BF=AE=E6=AD=A3=EF=BC=8E?= =?utf8?q?=20/=20Fix=20variable=20references=20in=20do=5Fcmd=5Fcast().?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/cmd/cmd-spell.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/cmd/cmd-spell.c b/src/cmd/cmd-spell.c index 7fc9edcc5..69642a223 100644 --- a/src/cmd/cmd-spell.c +++ b/src/cmd/cmd-spell.c @@ -1377,17 +1377,17 @@ void do_cmd_cast(player_type *caster_ptr) exp_gain += 60; else if (cur_exp < SPELL_EXP_SKILLED) { - if ((p_ptr->current_floor_ptr->dun_level > 4) && ((p_ptr->current_floor_ptr->dun_level + 10) > caster_ptr->lev)) + if ((caster_ptr->current_floor_ptr->dun_level > 4) && ((caster_ptr->current_floor_ptr->dun_level + 10) > caster_ptr->lev)) exp_gain = 8; } else if (cur_exp < SPELL_EXP_EXPERT) { - if (((p_ptr->current_floor_ptr->dun_level + 5) > caster_ptr->lev) && ((p_ptr->current_floor_ptr->dun_level + 5) > s_ptr->slevel)) + if (((caster_ptr->current_floor_ptr->dun_level + 5) > caster_ptr->lev) && ((caster_ptr->current_floor_ptr->dun_level + 5) > s_ptr->slevel)) exp_gain = 2; } else if ((cur_exp < SPELL_EXP_MASTER) && !increment) { - if (((p_ptr->current_floor_ptr->dun_level + 5) > caster_ptr->lev) && (p_ptr->current_floor_ptr->dun_level > s_ptr->slevel)) + if (((caster_ptr->current_floor_ptr->dun_level + 5) > caster_ptr->lev) && (caster_ptr->current_floor_ptr->dun_level > s_ptr->slevel)) exp_gain = 1; } caster_ptr->spell_exp[(increment ? 32 : 0) + spell] += exp_gain; -- 2.11.0