summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index 7683166b6..d1b4e752f 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -849,6 +849,10 @@ int pc_isequip(struct map_session_data *sd,int n)
return 0;
if(item->elv && sd->status.base_level < (unsigned int)item->elv)
return 0;
+#ifdef RENEWAL
+ if(item->elvmax && sd->status.base_level > (unsigned int)item->elvmax)
+ return 0;
+#endif
if(item->sex != 2 && sd->status.sex != item->sex)
return 0;
if(!map_flag_vs(sd->bl.m) && ((item->flag.no_equip&1) || !pc_isAllowedCardOn(sd,item->slot,n,1)))
@@ -4067,6 +4071,11 @@ int pc_isUseitem(struct map_session_data *sd,int n)
//Required level check
if(item->elv && sd->status.base_level < (unsigned int)item->elv)
return 0;
+
+#ifdef RENEWAL
+ if(item->elvmax && sd->status.base_level > (unsigned int)item->elvmax)
+ return 0;
+#endif
//Not equipable by class. [Skotlex]
if (!(