Core/Creatures: Modify creature_template_model structure to accept unmodified sniffed data

Port From (https://github.com/TrinityCore/TrinityCore/commit/eef87a9cc06bea80b9867491e126c6500dc608a9)
This commit is contained in:
hondacrx
2019-08-15 12:08:41 -04:00
parent c2dc1c337f
commit 95af45c884
-2
View File
@@ -2612,8 +2612,6 @@ namespace Game
if (cInfo.Models.Empty())
Log.outError(LogFilter.Sql, $"Creature (Entry: {cInfo.Entry}) does not have any existing display id in creature_template_model.");
else if (cInfo.Models.Sum(p => p.Probability) <= 0.0f)
Log.outError(LogFilter.Sql, $"Creature (Entry: {cInfo.Entry}) has zero total chance for all models in creature_template_model.");
if (cInfo.UnitClass == 0 || ((1 << ((int)cInfo.UnitClass - 1)) & (int)Class.ClassMaskAllCreatures) == 0)
{