mirror of
https://github.com/mod-playerbots/azerothcore-wotlk.git
synced 2025-11-29 17:38:24 +08:00
fix(Core/Movement): Fix SummonMovementInform for summons (#23725)
This commit is contained in:
@@ -214,6 +214,14 @@ template <> void PointMovementGenerator<Creature>::MovementInform(Creature* unit
|
|||||||
AI->SummonMovementInform(unit, POINT_MOTION_TYPE, id);
|
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*);
|
template void PointMovementGenerator<Player>::DoInitialize(Player*);
|
||||||
|
|||||||
Reference in New Issue
Block a user