fix(Core/Creature): implement SUMMON_PROP_FLAG_USE_SUMMONER_FACTION (#24674)

This commit is contained in:
sogladev
2026-02-10 13:42:43 +01:00
committed by GitHub
parent c73cf6b019
commit a890f55b55
2 changed files with 6 additions and 1 deletions

View File

@@ -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());
}