refactor(Core/Movement): Fix Build (#23739)
This commit is contained in:
parent
2a926f15f7
commit
f9924074ac
2 changed files with 0 additions and 11 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue