summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHaru <haru@dotalux.com>2020-03-09 00:50:30 +0100
committerGitHub <noreply@github.com>2020-03-09 00:50:30 +0100
commitc7b75e18e8f0be66fead6e93ffd636f8c4e5a71f (patch)
tree12ef920f01e0f5872110da3fbc5e16b2beba68d7
parent7c7e33abf35f8e812dcbfad1af4c0fefbca6ee6a (diff)
parentf90a00bc8fdec4d2a0386dfcc1bea86210f9714e (diff)
downloadhercules-c7b75e18e8f0be66fead6e93ffd636f8c4e5a71f.tar.gz
hercules-c7b75e18e8f0be66fead6e93ffd636f8c4e5a71f.tar.bz2
hercules-c7b75e18e8f0be66fead6e93ffd636f8c4e5a71f.tar.xz
hercules-c7b75e18e8f0be66fead6e93ffd636f8c4e5a71f.zip
Merge pull request #2651 from Emistry/clif_selllist_favorite
Item with favorite flag can't sell to NPC.
-rw-r--r--src/map/clif.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/map/clif.c b/src/map/clif.c
index 9fc6fae9a..c9e018f73 100644
--- a/src/map/clif.c
+++ b/src/map/clif.c
@@ -2179,6 +2179,9 @@ static void clif_selllist(struct map_session_data *sd)
if( !itemdb_cansell(&sd->status.inventory[i], pc_get_group_level(sd)) )
continue;
+ if (sd->status.inventory[i].favorite != 0)
+ continue; // Cannot Sell Favorite item
+
if( sd->status.inventory[i].expire_time )
continue; // Cannot Sell Rental Items