Revision: 9981
http://sourceforge.net/p/planeshift/code/9981
Author: ravna-ps
Date: 2016-12-21 12:15:22 +0000 (Wed, 21 Dec 2016)
Log Message:
-----------
Fixed: summon familiar (both mounts and pets) now always loads from the database, this avoids problems with morphed mounts/pets that have their morph spell on the (deleted) GemActor they had while ingame and the effect on the (cached) psCharacter, causing them to be stuck in the morph until removed from cache.
Modified Paths:
--------------
trunk/src/server/npcmanager.cpp
Modified: trunk/src/server/npcmanager.cpp
===================================================================
--- trunk/src/server/npcmanager.cpp 2016-12-20 22:15:43 UTC (rev 9980)
+++ trunk/src/server/npcmanager.cpp 2016-12-21 12:15:22 UTC (rev 9981)
@@ -2473,7 +2473,8 @@
session = OwnerPetList.Get(familiarID, NULL);
- psCharacter* petdata = psserver->CharacterLoader.LoadCharacterData(familiarID, false);
+ // we need to force a reload, if a familiar was morphed, the morph spell is on the GemActor, while the morph effect is on the cached psCharacter, reloading from the database avoids this.
+ psCharacter* petdata = psserver->CharacterLoader.LoadCharacterData(familiarID, true);
// Check for an existing session
if(!session)
{
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.