Corrected item requires for Repair (fixes #1076)

* No longer requires Magic Gear Fuel.
* Repair Kit will now be properly checked.
This commit is contained in:
aleos89 2016-03-22 12:35:25 -04:00
parent 5429ba824a
commit 242b3c1ab4
2 changed files with 3 additions and 4 deletions

View File

@ -698,7 +698,7 @@
2272,0,0,60:70:80,0,0,0,99,0,0,mado,0,0,2805,0,6146,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //NC_MAGNETICFIELD
2273,0,0,80:90:100,0,0,0,99,0,0,mado,0,0,2806,0,6146,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //NC_NEUTRALBARRIER
2274,0,0,80:100:120,0,0,0,99,0,0,mado,0,0,2808,0,6146,2,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //NC_STEALTHFIELD
2275,0,0,25:30:35:40:45,0,0,0,99,0,0,mado,0,0,12392,1,12392,1,12393,1,12393,1,12394,1,2807,0,0,0,0,0,0,0,6146,1,0 //NC_REPAIR
2275,0,0,25:30:35:40:45,0,0,0,99,0,0,mado,0,0,12392,1,12392,1,12393,1,12393,1,12394,1,0,0,0,0,0,0,0,0,2807,0,0 //NC_REPAIR
2278,0,0,20:22:24:26:28,0,0,0,6:7,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //NC_AXEBOOMERANG
2279,0,0,20:22:24:26:28,0,0,0,99,0,0,none,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0 //NC_POWERSWING

View File

@ -15940,9 +15940,8 @@ struct skill_condition skill_get_requirement(struct map_session_data* sd, uint16
switch( skill_id ) {
/* Skill level-dependent checks */
case NC_SHAPESHIFT:
case NC_REPAIR:
//NOTE: Please make sure Magic_Gear_Fuel in the last position in skill_require_db.txt
case NC_SHAPESHIFT: // NOTE: Please make sure Magic_Gear_Fuel in the last position in skill_require_db.txt
case NC_REPAIR: // NOTE: Please make sure Repair_Kit in the last position in skill_require_db.txt
req.itemid[1] = skill_db[idx]->require.itemid[MAX_SKILL_ITEM_REQUIRE-1];
req.amount[1] = skill_db[idx]->require.amount[MAX_SKILL_ITEM_REQUIRE-1];
case GN_FIRE_EXPANSION: