mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2026-02-28 22:45:55 +00:00
fix(Core/Creature): implement SUMMON_PROP_FLAG_USE_SUMMONER_FACTION (#24674)
This commit is contained in:
@@ -245,6 +245,11 @@ void TempSummon::InitStats(uint32 duration)
|
||||
|
||||
if (m_Properties->Faction)
|
||||
SetFaction(m_Properties->Faction);
|
||||
else if (m_Properties->Flags & SUMMON_PROP_FLAG_USE_SUMMONER_FACTION)
|
||||
{
|
||||
if (owner)
|
||||
SetFaction(owner->GetFaction());
|
||||
}
|
||||
else if (IsVehicle() && owner) // properties should be vehicle
|
||||
SetFaction(owner->GetFaction());
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user