Core/Units: removed a unneeded player type check

This commit is contained in:
Ovahlord committed 2019-12-13 23:35:40 +01:00
1 parent 7448afc043
commit 10a7b29b4d
1 file changed
+1 -1
+1 -1
View File
@@ -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;
}