Removed hardcoded aloevera restriction

Additional changed some hardcoded ids to constants.
This commit is contained in:
Lemongrass3110
2016-07-01 00:33:43 +02:00
parent 28d76e77df
commit b1b43bb0df
2 changed files with 2 additions and 5 deletions

View File

@@ -4706,10 +4706,6 @@ bool pc_isUseitem(struct map_session_data *sd,int n)
case ITEMID_ANODYNE:
if( map_flag_gvg(sd->bl.m) )
return false;
case ITEMID_ALOEBERA:
if( pc_issit(sd) )
return false;
break;
case ITEMID_WING_OF_FLY:
case ITEMID_GIANT_FLY_WING:
if( map[sd->bl.m].flag.noteleport || map_flag_gvg(sd->bl.m) ) {
@@ -4729,7 +4725,7 @@ bool pc_isUseitem(struct map_session_data *sd,int n)
clif_displaymessage(sd->fd, msg_txt(sd,663));
return false;
}
if( nameid != 601 && nameid != 12212 && map[sd->bl.m].flag.noreturn )
if( nameid != ITEMID_WING_OF_FLY && nameid != ITEMID_GIANT_FLY_WING && map[sd->bl.m].flag.noreturn )
return false;
break;
case ITEMID_BUBBLE_GUM: