Fix missing pet egg checks (#5029)

Fixes #5024
This commit is contained in:
SeravySensei
2020-05-31 16:11:01 +02:00
committed by GitHub
parent 2c1477d4ce
commit cd0937c468
3 changed files with 7 additions and 1 deletions

View File

@@ -17500,6 +17500,9 @@ void skill_repairweapon(struct map_session_data *sd, int idx) {
if( !item->nameid || !item->attribute )
return; //Again invalid item....
if (itemdb_ishatched_egg(item))
return;
if (sd != target_sd && !battle_check_range(&sd->bl, &target_sd->bl, skill_get_range2(&sd->bl, sd->menuskill_id, sd->menuskill_val2, true))) {
clif_item_repaireffect(sd, idx, 1);
return;