refactor(Core/Movement): Fix Build (#23739)

This commit is contained in:
天鹭
2025-11-17 12:19:10 +08:00
committed by GitHub
parent 2a926f15f7
commit f9924074ac
2 changed files with 0 additions and 11 deletions

View File

@@ -210,9 +210,7 @@ template <> void PointMovementGenerator<Creature>::MovementInform(Creature* unit
if (Unit* summoner = unit->GetCharmerOrOwner())
{
if (UnitAI* AI = summoner->GetAI())
{
AI->SummonMovementInform(unit, POINT_MOTION_TYPE, id);
}
}
else
{
@@ -220,7 +218,6 @@ template <> void PointMovementGenerator<Creature>::MovementInform(Creature* unit
if (Unit* summoner = tempSummon->GetSummonerUnit())
if (UnitAI* AI = summoner->GetAI())
AI->SummonMovementInform(unit, POINT_MOTION_TYPE, id);
}
}
}

View File

@@ -276,22 +276,14 @@ void WaypointMovementGenerator<Creature>::MovementInform(Creature* creature)
if (Unit* owner = creature->GetCharmerOrOwner())
{
if (UnitAI* AI = owner->GetAI())
{
AI->SummonMovementInform(creature, WAYPOINT_MOTION_TYPE, i_currentNode);
}
}
else
{
if (TempSummon* tempSummon = creature->ToTempSummon())
{
if (Unit* owner = tempSummon->GetSummonerUnit())
{
if (UnitAI* AI = owner->GetAI())
{
AI->SummonMovementInform(creature, WAYPOINT_MOTION_TYPE, i_currentNode);
}
}
}
}
}