Core/Units: removed a unneeded player type check
This commit is contained in:
1 parent
7448afc043
commit
10a7b29b4d
1 file changed
+1
-1
@@ -14504,7 +14504,7 @@ void Unit::BuildValuesUpdate(uint8 updateType, ByteBuffer* data, Player* target)
|
||||
if (!target->CanSeeSpellClickOn(creature))
|
||||
appendValue &= ~UNIT_NPC_FLAG_SPELLCLICK;
|
||||
|
||||
if (target->IsPlayer() && !creature->IsClassTrainerOf(target->ToPlayer()))
|
||||
if (!creature->IsClassTrainerOf(target->ToPlayer()))
|
||||
appendValue &= ~UNIT_NPC_FLAG_TRAINER_CLASS;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user