|
@@ -78,14 +78,16 @@ public class PetStat extends SummonStat
|
|
|
// Sync up exp with current level
|
|
|
if (getExp() > getExpForLevel(getLevel() + 1) || getExp() < getExpForLevel(getLevel())) setExp(Experience.LEVEL[getLevel()]);
|
|
|
|
|
|
- if (levelIncreased) getActiveChar().getOwner().sendMessage("Your pet has increased it's level.");
|
|
|
+ //TODO : proper system msg if is any
|
|
|
+ //if (levelIncreased) getActiveChar().getOwner().sendMessage("Your pet has increased it's level.");
|
|
|
|
|
|
StatusUpdate su = new StatusUpdate(getActiveChar().getObjectId());
|
|
|
su.addAttribute(StatusUpdate.LEVEL, getLevel());
|
|
|
su.addAttribute(StatusUpdate.MAX_HP, getMaxHp());
|
|
|
su.addAttribute(StatusUpdate.MAX_MP, getMaxMp());
|
|
|
getActiveChar().broadcastPacket(su);
|
|
|
- getActiveChar().broadcastPacket(new SocialAction(getActiveChar().getObjectId(), SocialAction.LEVEL_UP));
|
|
|
+ if (levelIncreased)
|
|
|
+ getActiveChar().broadcastPacket(new SocialAction(getActiveChar().getObjectId(), SocialAction.LEVEL_UP));
|
|
|
// Send a Server->Client packet PetInfo to the L2PcInstance
|
|
|
getActiveChar().updateAndBroadcastStatus(1);
|
|
|
|