summaryrefslogtreecommitdiff
path: root/src/map/pc.c
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2014-05-31 03:00:34 +0200
committerHaru <haru@dotalux.com>2014-05-31 03:00:34 +0200
commit5f0677d6557689e1d6dc9ab5da65a9e407e31b97 (patch)
treeecf4aa29ddc4115a063dea202b66c52c91d91892 /src/map/pc.c
parent3dccf7e300f9868a98075e1863c88c38d3211f33 (diff)
downloadhercules-5f0677d6557689e1d6dc9ab5da65a9e407e31b97.tar.gz
hercules-5f0677d6557689e1d6dc9ab5da65a9e407e31b97.tar.bz2
hercules-5f0677d6557689e1d6dc9ab5da65a9e407e31b97.tar.xz
hercules-5f0677d6557689e1d6dc9ab5da65a9e407e31b97.zip
Added ItemNouseRestriction enum
- To be used in a follow-up item_db.conf edit. Signed-off-by: Haru <haru@dotalux.com>
Diffstat (limited to 'src/map/pc.c')
-rw-r--r--src/map/pc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/map/pc.c b/src/map/pc.c
index ce2b8040e..3afb6c556 100644
--- a/src/map/pc.c
+++ b/src/map/pc.c
@@ -4191,7 +4191,7 @@ int pc_isUseitem(struct map_session_data *sd,int n)
if( !item->script ) //if it has no script, you can't really consume it!
return 0;
- if( (item->item_usage.flag&NOUSE_SITTING) && (pc_issit(sd) == 1) && (pc_get_group_level(sd) < item->item_usage.override) ) {
+ if( (item->item_usage.flag&INR_SITTING) && (pc_issit(sd) == 1) && (pc_get_group_level(sd) < item->item_usage.override) ) {
clif->msgtable(sd->fd,0x297);
//clif->colormes(sd->fd,COLOR_WHITE,msg_txt(1474));
return 0; // You cannot use this item while sitting.