fix(Core/GridNotifiers): fix tempsummons not finding nearby creatures (#9749)

* fix(Core/GridNotifiers): fix tempsummons not finding nearby creatures

* fix lord valathak being summoned along mor
This commit is contained in:
Skjalf
2021-12-19 07:53:53 -03:00
committed by GitHub
parent 643944d9d9
commit 9265d346be
2 changed files with 12 additions and 1 deletions

View File

@@ -1213,7 +1213,7 @@ namespace Acore
bool operator()(Creature* u)
{
if (u->GetEntry() == i_entry && u->IsAlive() == i_alive && i_obj.IsWithinDistInMap(u, i_range))
if (u->GetEntry() == i_entry && u->IsAlive() == i_alive && i_obj.IsWithinDist(u, i_range) && i_obj.InSamePhase(u))
{
i_range = i_obj.GetDistance(u); // use found unit range as new range limit for next check
return true;