Skip to content
Snippets Groups Projects
Commit 8c606d0e authored by St3eT's avatar St3eT
Browse files

BETA: Fixed despawning hungry pets.

* Reported by: Pandragon
* Reviewed by: Zoey76
parent 91e14490
No related branches found
No related tags found
No related merge requests found
......@@ -114,23 +114,11 @@ public final class SummonPet extends AbstractEffect
pet.storeMe();
}
item.setEnchantLevel(pet.getLevel());
player.setPet(pet);
pet.spawnMe(player.getX() + 50, player.getY() + 100, player.getZ());
pet.startFeed();
item.setEnchantLevel(pet.getLevel());
if (pet.getCurrentFed() <= 0)
{
pet.unSummon(player);
}
else
{
pet.startFeed();
}
pet.setFollowStatus(true);
pet.getOwner().sendPacket(new PetItemList(pet.getInventory().getItems()));
pet.broadcastStatusUpdate();
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment