Core: Droped faction_H field -- only one faction table is necessary
This commit is contained in:
1 parent
a1e8cad703
commit
c536305e3a
14 files changed
+139
-156
No files matched your search
@@ -15954,7 +15954,7 @@ void Unit::RestoreFaction()
|
||||
if (CreatureTemplate const* cinfo = ToCreature()->GetCreatureTemplate()) // normal creature
|
||||
{
|
||||
FactionTemplateEntry const* faction = GetFactionTemplateEntry();
|
||||
setFaction((faction && faction->friendlyMask & 0x004) ? cinfo->faction_H : cinfo->faction_A);
|
||||
setFaction((faction && faction->friendlyMask & 0x004) ? cinfo->faction : cinfo->faction);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user