Sunwell: Fix save issue in KalecgosAI. Thanks to Amit86 and ogeraisi.
--HG-- branch : trunk
This commit is contained in:
@@ -364,7 +364,20 @@ struct TRINITY_DLL_DECL boss_kalecgosAI : public ScriptedAI
|
|||||||
return;
|
return;
|
||||||
me->SetVisibility(VISIBILITY_OFF);
|
me->SetVisibility(VISIBILITY_OFF);
|
||||||
if (isFriendly)
|
if (isFriendly)
|
||||||
|
{
|
||||||
me->setDeathState(JUST_DIED);
|
me->setDeathState(JUST_DIED);
|
||||||
|
|
||||||
|
Map::PlayerList const& players = me->GetMap()->GetPlayers();
|
||||||
|
if (!players.isEmpty())
|
||||||
|
{
|
||||||
|
for (Map::PlayerList::const_iterator itr = players.begin(); itr != players.end(); ++itr)
|
||||||
|
{
|
||||||
|
Player* pPlayer = itr->getSource();
|
||||||
|
if (pPlayer)
|
||||||
|
((InstanceMap*)me->GetMap())->PermBindAllPlayers(pPlayer);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
me->GetMotionMaster()->MoveTargetedHome();
|
me->GetMotionMaster()->MoveTargetedHome();
|
||||||
|
|||||||
Reference in New Issue
Block a user