diff options
author | shennetsind <ind@henn.et> | 2013-12-18 14:26:54 -0200 |
---|---|---|
committer | shennetsind <ind@henn.et> | 2013-12-18 14:26:54 -0200 |
commit | 8f252ba269b5ad0eaca56a27914bee818b5fc427 (patch) | |
tree | ba8e741c6f6137b93cf53e063c9ab065945fe46d /src | |
parent | 36d0c789633da074f7e1a6add901278af513ad4b (diff) | |
parent | 6ada85ed6173977cf6418336ce8566b2e718ae3f (diff) | |
download | hercules-8f252ba269b5ad0eaca56a27914bee818b5fc427.tar.gz hercules-8f252ba269b5ad0eaca56a27914bee818b5fc427.tar.bz2 hercules-8f252ba269b5ad0eaca56a27914bee818b5fc427.tar.xz hercules-8f252ba269b5ad0eaca56a27914bee818b5fc427.zip |
Merge branch 'master' of https://github.com/HerculesWS/Hercules
Diffstat (limited to 'src')
-rw-r--r-- | src/map/pc.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/map/pc.c b/src/map/pc.c index 9a0760d61..fc1d56b6d 100644 --- a/src/map/pc.c +++ b/src/map/pc.c @@ -4183,6 +4183,11 @@ int pc_isUseitem(struct map_session_data *sd,int n) return 0; // You cannot use this item while sitting. } + if (sd->state.storage_flag && item->type != IT_CASH) { + clif->colormes(sd->fd, COLOR_RED, msg_txt(1475)); + return 0; // You cannot use this item while storage is open. + } + switch( nameid ) { // TODO: Is there no better way to handle this, other than hardcoding item IDs? case ITEMID_ANODYNE: if( map_flag_gvg2(sd->bl.m) ) |