Fixed pc_checkskill in pre-renewal (#6438)
Fixes #6433 Thanks to @Shaktohh and @aleos89
This commit is contained in:
parent
ec7879c99a
commit
9a27cb6a51
@ -6579,7 +6579,16 @@ uint8 pc_checkskill(struct map_session_data *sd, uint16 skill_id)
|
|||||||
uint16 idx = 0;
|
uint16 idx = 0;
|
||||||
if (sd == NULL)
|
if (sd == NULL)
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
|
#ifdef RENEWAL
|
||||||
if ((idx = skill_get_index(skill_id)) == 0) {
|
if ((idx = skill_get_index(skill_id)) == 0) {
|
||||||
|
#else
|
||||||
|
if( ( idx = skill_get_index_( skill_id, skill_id >= RK_ENCHANTBLADE, __FUNCTION__, __FILE__, __LINE__ ) ) == 0 ){
|
||||||
|
if( skill_id >= RK_ENCHANTBLADE ){
|
||||||
|
// Silently fail for now -> future update planned
|
||||||
|
return 0;
|
||||||
|
}
|
||||||
|
#endif
|
||||||
ShowError("pc_checkskill: Invalid skill id %d (char_id=%d).\n", skill_id, sd->status.char_id);
|
ShowError("pc_checkskill: Invalid skill id %d (char_id=%d).\n", skill_id, sd->status.char_id);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user