Unsummon previous existing pet, return null if template does not exist.
This commit is contained in:
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -180,9 +180,10 @@ public class PetInstance extends Summon
|
|||||||
*/
|
*/
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
|
@@ -181,9 +181,10 @@ public class PetInstance extends Summon
|
|||||||
*/
|
*/
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
|
@@ -231,10 +231,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -231,10 +231,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -217,10 +217,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -216,10 +216,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
final PetData data = PetDataTable.getInstance().getPetData(template.getId());
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
|
@@ -327,10 +327,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
if (pet != null)
|
if (pet != null)
|
||||||
|
@@ -327,10 +327,12 @@ public class PetInstance extends Summon
|
|||||||
|
|
||||||
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
public static synchronized PetInstance spawnPet(NpcTemplate template, PlayerInstance owner, ItemInstance control)
|
||||||
{
|
{
|
||||||
if (World.getInstance().getPet(owner.getObjectId()) != null)
|
final PetInstance existingPet = World.getInstance().getPet(owner.getObjectId());
|
||||||
|
if (existingPet != null) // owner has a pet listed in world
|
||||||
{
|
{
|
||||||
return null; // owner has a pet listed in world
|
existingPet.unSummon(owner);
|
||||||
}
|
}
|
||||||
|
|
||||||
final PetInstance pet = restore(control, template, owner);
|
final PetInstance pet = restore(control, template, owner);
|
||||||
// add the pet instance to world
|
// add the pet instance to world
|
||||||
if (pet != null)
|
if (pet != null)
|
||||||
|
Reference in New Issue
Block a user