diff options
author | shennetsind <ind@henn.et> | 2013-05-02 17:15:10 -0300 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-05-02 17:15:10 -0300 |
commit | 4dbe6ac4e8ae91249848777b2127049318107c4c (patch) | |
tree | c8d0a098bd3073ee3caeec69c0c0be9386e9274d /src/map/pc.c | |
parent | a2c45a8db6d724b98ab41fe9e75e1f7ea7523d5d (diff) | |
parent | 58a035a53efcafea1623999832a764fabba1bf5f (diff) | |
download | hercules-4dbe6ac4e8ae91249848777b2127049318107c4c.tar.gz hercules-4dbe6ac4e8ae91249848777b2127049318107c4c.tar.bz2 hercules-4dbe6ac4e8ae91249848777b2127049318107c4c.tar.xz hercules-4dbe6ac4e8ae91249848777b2127049318107c4c.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src/map/pc.c')
-rw-r--r-- | src/map/pc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index afc92594b..892c27e87 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4086,6 +4086,10 @@ 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) ) { + return 0; // You cannot use this item while sitting. + } + switch( nameid ) //@TODO, lot oh harcoded nameid here { case 605: // Anodyne |