mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
refactor(Core/Movement): Fix Build (#23739)
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user