Skip to content

Commit

Permalink
fix(Core/SAI): allow scripts to target the summoner of a TempSummon (#…
Browse files Browse the repository at this point in the history
…10819)

Fixes #10760
Fixes #10123
  • Loading branch information
SilentCLD committed Mar 15, 2022
1 parent 33635cb commit 624d417
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/server/game/AI/SmartScripts/SmartScript.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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)
{
Expand Down

0 comments on commit 624d417

Please sign in to comment.