fix(Core/Movement): Fix SummonMovementInform for summons (#23725)

This commit is contained in:
天鹭
2025-11-17 11:55:49 +08:00
committed by GitHub
parent 8207a05ee2
commit 2a926f15f7

View File

@@ -214,6 +214,14 @@ template <> void PointMovementGenerator<Creature>::MovementInform(Creature* unit
AI->SummonMovementInform(unit, POINT_MOTION_TYPE, id);
}
}
else
{
if (TempSummon* tempSummon = unit->ToTempSummon())
if (Unit* summoner = tempSummon->GetSummonerUnit())
if (UnitAI* AI = summoner->GetAI())
AI->SummonMovementInform(unit, POINT_MOTION_TYPE, id);
}
}
}
template void PointMovementGenerator<Player>::DoInitialize(Player*);