Fixed homunculus reset points window.

Contributed by nasseka.
This commit is contained in:
MobiusDevelopment
2021-06-08 22:37:36 +00:00
parent f609f8e887
commit 338a41e78a
2 changed files with 6 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.gameserver.model.variables.PlayerVariables;
import org.l2jmobius.gameserver.network.GameClient; import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
import org.l2jmobius.gameserver.network.serverpackets.homunculus.ExHomunculusInitPointResult; import org.l2jmobius.gameserver.network.serverpackets.homunculus.ExHomunculusInitPointResult;
import org.l2jmobius.gameserver.network.serverpackets.homunculus.ExHomunculusPointInfo;
/** /**
* @author Mobius * @author Mobius
@@ -63,6 +64,7 @@ public class RequestExHomunculusInitPoint implements IClientIncomingPacket
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_KILL_CONVERT, 0); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_KILL_CONVERT, 0);
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_KILLS, usedResetKills + 1); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_KILLS, usedResetKills + 1);
player.sendPacket(new ExHomunculusInitPointResult(true, _type)); player.sendPacket(new ExHomunculusInitPointResult(true, _type));
player.sendPacket(new ExHomunculusPointInfo(player));
} }
} }
else else
@@ -80,6 +82,7 @@ public class RequestExHomunculusInitPoint implements IClientIncomingPacket
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_VP_CONVERT, 0); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_VP_CONVERT, 0);
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_VP, usedResetVp + 1); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_VP, usedResetVp + 1);
player.sendPacket(new ExHomunculusInitPointResult(true, _type)); player.sendPacket(new ExHomunculusInitPointResult(true, _type));
player.sendPacket(new ExHomunculusPointInfo(player));
} }
} }
} }

View File

@@ -22,6 +22,7 @@ import org.l2jmobius.gameserver.model.variables.PlayerVariables;
import org.l2jmobius.gameserver.network.GameClient; import org.l2jmobius.gameserver.network.GameClient;
import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket; import org.l2jmobius.gameserver.network.clientpackets.IClientIncomingPacket;
import org.l2jmobius.gameserver.network.serverpackets.homunculus.ExHomunculusInitPointResult; import org.l2jmobius.gameserver.network.serverpackets.homunculus.ExHomunculusInitPointResult;
import org.l2jmobius.gameserver.network.serverpackets.homunculus.ExHomunculusPointInfo;
/** /**
* @author Mobius * @author Mobius
@@ -63,6 +64,7 @@ public class RequestExHomunculusInitPoint implements IClientIncomingPacket
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_KILL_CONVERT, 0); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_KILL_CONVERT, 0);
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_KILLS, usedResetKills + 1); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_KILLS, usedResetKills + 1);
player.sendPacket(new ExHomunculusInitPointResult(true, _type)); player.sendPacket(new ExHomunculusInitPointResult(true, _type));
player.sendPacket(new ExHomunculusPointInfo(player));
} }
} }
else else
@@ -80,6 +82,7 @@ public class RequestExHomunculusInitPoint implements IClientIncomingPacket
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_VP_CONVERT, 0); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_VP_CONVERT, 0);
player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_VP, usedResetVp + 1); player.getVariables().set(PlayerVariables.HOMUNCULUS_USED_RESET_VP, usedResetVp + 1);
player.sendPacket(new ExHomunculusInitPointResult(true, _type)); player.sendPacket(new ExHomunculusInitPointResult(true, _type));
player.sendPacket(new ExHomunculusPointInfo(player));
} }
} }
} }