fix(Core/Player): remove vendor icon if there is no gossip vendor option (#23026)

This commit is contained in:
sogladev
2025-10-12 17:12:54 +02:00
committed by GitHub
parent 717379628b
commit fc39bf6753
4 changed files with 79 additions and 3 deletions

View File

@@ -20791,7 +20791,10 @@ void Unit::PatchValuesUpdate(ByteBuffer& valuesUpdateBuf, BuildValuesCachePosPoi
appendValue &= ~UNIT_NPC_FLAG_SPELLCLICK;
if (!target->CanSeeVendor(creature))
{
appendValue &= ~UNIT_NPC_FLAG_REPAIR;
appendValue &= ~UNIT_NPC_FLAG_VENDOR_MASK;
}
if (!creature->IsValidTrainerForPlayer(target, &appendValue))
appendValue &= ~UNIT_NPC_FLAG_TRAINER;