From 3158c542dea61d002168385935f0900e78139b44 Mon Sep 17 00:00:00 2001 From: Aleos Date: Tue, 23 Jun 2020 10:58:35 -0400 Subject: [PATCH] Fixes NC_REPAIR and NC_SHAPESHIFT requirements (#5129) * Fixes #5124. * Fixes the level independent item requirements for Repair and Shape Shift being offset by 1. Thanks to @ecdarreola! --- src/map/skill.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/map/skill.cpp b/src/map/skill.cpp index 90adfd983b..6c6405b73a 100755 --- a/src/map/skill.cpp +++ b/src/map/skill.cpp @@ -16913,8 +16913,8 @@ struct s_skill_condition skill_get_requirement(struct map_session_data* sd, uint /* Skill level-dependent checks */ case NC_SHAPESHIFT: // NOTE: Magic_Gear_Fuel must be last in the ItemCost list depending on the skill's max level case NC_REPAIR: // NOTE: Repair_Kit must be last in the ItemCost list depending on the skill's max level - req.itemid[1] = skill->require.itemid[skill->max - 1]; - req.amount[1] = skill->require.amount[skill->max - 1]; + req.itemid[1] = skill->require.itemid[skill->max]; + req.amount[1] = skill->require.amount[skill->max]; case KO_MAKIBISHI: case GN_FIRE_EXPANSION: case SO_SUMMON_AGNI: