fix(Scripts/SSC): Script Hydross OOC event (#17804)
* fix(Scripts/SSC): Script Hydross OOC event * Update rev_1700448248255858600.sql * Update boss_hydross_the_unstable.cpp * Update rev_1700448248255858600.sql
This commit is contained in:
parent
1670ce469a
commit
7795dc4379
3 changed files with 92 additions and 11 deletions
|
|
@ -263,6 +263,19 @@ void WaypointMovementGenerator<Creature>::MovementInform(Creature* creature)
|
|||
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