Core: Remove some no longer needed gossip code.
This commit is contained in:
1 parent
148b8e3129
commit
c238cae7d0
5 files changed
+4
-121
No files matched your search
@@ -579,12 +579,6 @@ void Object::_BuildValuesUpdate(uint8 updateType, ByteBuffer* data, UpdateMask*
|
||||
{
|
||||
if (!target->canSeeSpellClickOn(this->ToCreature()))
|
||||
appendValue &= ~UNIT_NPC_FLAG_SPELLCLICK;
|
||||
|
||||
if (appendValue & UNIT_NPC_FLAG_TRAINER)
|
||||
{
|
||||
if (!creature->isCanTrainingOf(target, false))
|
||||
appendValue &= ~(UNIT_NPC_FLAG_TRAINER | UNIT_NPC_FLAG_TRAINER_CLASS | UNIT_NPC_FLAG_TRAINER_PROFESSION);
|
||||
}
|
||||
}
|
||||
|
||||
*data << uint32(appendValue);
|
||||
|
||||
Reference in new issue
Block a user