Jump to content
  • 0

Question

3 answers to this question

Recommended Posts

  • 0
Posted

Fix....

From e4de2df505500e3d76f7a13301bb84f04fe2b7a5 Mon Sep 17 00:00:00 2001
From: Nefer <xmagex@hotmail.it>
Date: Tue, 17 Jun 2014 11:42:44 +0200
Subject: [PATCH] - Fixed buff restored after restart.

---
 .../com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java   | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/game/src/main/java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java b/game/src/main/java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
index 01cc0e1..769c5cd 100644
--- a/game/src/main/java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
+++ b/game/src/main/java/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
@@ -12318,7 +12318,7 @@ public final class L2PcInstance extends L2PlayableInstance<L2PlayerAI, PcStat> {
         restoreSkills();
         regiveTemporarySkills();
         rewardSkills();
-        restoreEffects(GameServerConfig.ALT_RESTORE_EFFECTS_ON_SUBCLASS_CHANGE);
+        restoreEffects(GameServerConfig.STORE_SKILL_COOLTIME);
 
         // Reload skills from armors / jewels / weapons
         getInventory().reloadEquippedItems();
@@ -12513,8 +12513,6 @@ public final class L2PcInstance extends L2PlayableInstance<L2PlayerAI, PcStat> {
      * @param activateEffects
      */
     public void restoreEffects(boolean activateEffects) {
-
-
         try {
             CharacterManager.getInstance().getSavedSkills(getCharacter(), getClassIndex());
             for (CharacterSkillsSave skillsSave : getCharacter().getSkillsSave()) {
-- 
2.1.1

  • 0
Posted (edited)
### Eclipse Workspace Patch 1.0
#P SmallzFixL2jFrozen_GameServer
Index: head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java
===================================================================
--- head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java    (revision 1004)
+++ head-src/com/l2jfrozen/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
@@ -15349,7 +15349,7 @@
        restoreSkills();
        regiveTemporarySkills();
        rewardSkills();
-        restoreEffects(Config.ALT_RESTORE_EFFECTS_ON_SUBCLASS_CHANGE);
+        restoreEffects(Config.STORE_SKILL_COOLTIME);
        
        // Reload skills from armors / jewels / weapons
        getInventory().reloadEquippedItems();


 

Edited by Hashirama

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..