fix(Core/SAI): allow scripts to target the summoner of a TempSummon (#10819)

Fixes #10760
Fixes #10123
This commit is contained in:
SilentCLD
2022-03-15 07:44:09 +00:00
committed by GitHub
parent 33635cbb3c
commit 624d41763a

View File

@@ -3844,6 +3844,10 @@ ObjectList* SmartScript::GetTargets(SmartScriptHolder const& e, Unit* invoker /*
{
l->push_back(owner);
}
else if (me->IsSummon() && me->ToTempSummon()->GetSummonerUnit())
{
l->push_back(me->ToTempSummon()->GetSummonerUnit());
}
}
else if (go)
{