|
@@ -724,6 +724,14 @@ public final class L2GameClient extends MMOClient<MMOConnection<L2GameClient>> i
|
|
|
|| (player.isInCraftMode() && Config.OFFLINE_CRAFT_ENABLE))
|
|
|
{
|
|
|
player.leaveParty();
|
|
|
+
|
|
|
+ player.getPet().setRestoreSummon(true);
|
|
|
+
|
|
|
+ player.getPet().unSummon(player);
|
|
|
+ // dead pet wasnt unsummoned, broadcast npcinfo changes (pet will be without owner name - means owner offline)
|
|
|
+ if (player.getPet() != null)
|
|
|
+ player.getPet().broadcastNpcInfo(0);
|
|
|
+
|
|
|
if (Config.OFFLINE_SET_NAME_COLOR)
|
|
|
{
|
|
|
player.getAppearance().setNameColor(Config.OFFLINE_NAME_COLOR);
|