From: deskull Date: Thu, 21 Nov 2019 11:55:03 +0000 (+0900) Subject: [Fix] #38997 do_cmd_cast() 内変数参照修正. / Fix variable references in do_cmd_cast(). X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=be1f0925bcacad7de20fa65e0fd76cb93752ecdc;p=hengband%2Fhengband.git [Fix] #38997 do_cmd_cast() 内変数参照修正. / Fix variable references in do_cmd_cast(). --- 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;