Olympiad(soulshot)
Posted: Sat Jul 03, 2010 2:50 pm
Hi how to fix this problem when you teleport to olympiad , automaticly makes activate soulshot ?
Code: Select all
Index: java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java===================================================================--- java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java (revision 4322)+++ java/com/l2jserver/gameserver/model/olympiad/OlympiadGame.java (working copy)@@ -270,7 +270,7 @@ player.checkItemRestriction(); // Remove shot automation- player.disableAutoShotsAll();+ //player.disableAutoShotsAll(); // Discharge any active shots if (player.getActiveWeaponInstance() != null)
Code: Select all
player.checkItemRestriction(); // Remove shot automation Map<Integer, Integer> activeSoulShots = player.getAutoSoulShot(); for (int itemId : activeSoulShots.values()) { player.removeAutoSoulShot(itemId); ExAutoSoulShot atk = new ExAutoSoulShot(itemId, 0); player.sendPacket(atk); } // Discharge any active shots if (player.getActiveWeaponInstance() != null) { player.getActiveWeaponInstance().setChargedSoulshot(L2ItemInstance.CHARGED_NONE); player.getActiveWeaponInstance().setChargedSpiritsho