Fixes skill failure message that require items (#5225)
* Fixes #5222. * Fixes a skill failure message that requires an item in the players inventory or to be equipped. Thanks to @voyfmyuh!
This commit is contained in:
parent
7bdf67e3d3
commit
fd8770c6ff
@ -16377,7 +16377,7 @@ bool skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_i
|
||||
if (pc_search_inventory(sd, reqeqit) == -1) {
|
||||
count--;
|
||||
if (!count) {
|
||||
clif_skill_fail(sd, skill_id, USESKILL_FAIL_NEED_EQUIPMENT, require.eqItem[0]<<16);
|
||||
clif_skill_fail(sd, skill_id, USESKILL_FAIL_NEED_EQUIPMENT, 0, require.eqItem[0]);
|
||||
return false;
|
||||
} else
|
||||
continue;
|
||||
@ -16385,7 +16385,7 @@ bool skill_check_condition_castbegin(struct map_session_data* sd, uint16 skill_i
|
||||
break;
|
||||
default:
|
||||
if (!pc_checkequip2(sd,reqeqit,EQI_ACC_L,EQI_MAX)) {
|
||||
clif_skill_fail(sd,skill_id,USESKILL_FAIL_NEED_EQUIPMENT,reqeqit<<16);
|
||||
clif_skill_fail(sd, skill_id, USESKILL_FAIL_NEED_EQUIPMENT, 0, reqeqit);
|
||||
return false;
|
||||
}
|
||||
break;
|
||||
|
Loading…
x
Reference in New Issue
Block a user