mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-01-13 09:17:18 +00:00
fix(Core/Battlefield): Wintergrasp out of bounds error when setting neutral faction of stalker (#21340)
This commit is contained in:
@@ -806,7 +806,10 @@ Creature* Battlefield::SpawnCreature(uint32 entry, float x, float y, float z, fl
|
||||
return nullptr;
|
||||
}
|
||||
|
||||
creature->SetFaction(BattlefieldFactions[teamId]);
|
||||
// no need to set faction for neutral team
|
||||
if (teamId == TEAM_ALLIANCE || teamId == TEAM_HORDE)
|
||||
creature->SetFaction(BattlefieldFactions[teamId]);
|
||||
|
||||
creature->SetHomePosition(x, y, z, o);
|
||||
|
||||
// force using DB speeds -- do we really need this?
|
||||
|
||||
Reference in New Issue
Block a user