public void onTeleported()
{
if(!isTeleporting())
return;
final ObjectPosition pos = getPosition();
if(pos!=null)
spawnMe(getPosition().getX(), getPosition().getY(), getPosition().getZ());
setIsTeleporting(false);
if(_isPendingRevive)
{
doRevive();
}
final L2Summon pet = getPet();
// Modify the position of the pet if necessary
if(pet != null && pos!=null)
{
pet.setFollowStatus(false);
pet.teleToLocation(pos.getX() + Rnd.get(-100, 100), pos.getY() + Rnd.get(-100, 100), pos.getZ(), false);
pet.setFollowStatus(true);
}
}