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

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock