mirror of
https://github.com/EQEmu/Server.git
synced 2026-11-23 04:37:16 +00:00
Fix rogue merchant usage under sneak.
This commit is contained in:
1 parent
013f7cfd21
commit
7b5ea9e99c
2 files changed
+16
-1
No files matched your search
+11
-1
@@ -857,7 +857,17 @@ void Client::BulkSendMerchantInventory(int merchant_id, int npcid) {
|
||||
continue;
|
||||
|
||||
int32 fac = merch ? merch->GetPrimaryFaction() : 0;
|
||||
if (fac != 0 && GetModCharacterFactionLevel(fac) < ml.faction_required)
|
||||
int32 cur_fac_level;
|
||||
if (fac == 0 || sneaking)
|
||||
{
|
||||
cur_fac_level = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
cur_fac_level = GetModCharacterFactionLevel(fac);
|
||||
}
|
||||
|
||||
if (cur_fac_level < ml.faction_required)
|
||||
continue;
|
||||
|
||||
handychance = zone->random.Int(0, merlist.size() + tmp_merlist.size() - 1);
|
||||
|
||||
Reference in new issue
Block a user