Advertisement
Nik

Untitled

Nik
Apr 16th, 2011
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.00 KB | None | 0 0
  1. Index: java/com/l2jserver/gameserver/network/clientpackets/RequestAcquireSkill.java
  2. ===================================================================
  3. --- java/com/l2jserver/gameserver/network/clientpackets/RequestAcquireSkill.java    (revision 417)
  4. +++ java/com/l2jserver/gameserver/network/clientpackets/RequestAcquireSkill.java    (working copy)
  5. @@ -94,7 +94,10 @@
  6.         if (!Config.ALT_GAME_SKILL_LEARN)
  7.             player.setSkillLearningClassId(player.getClassId());
  8.        
  9. -       if (player.getSkillLevel(_id) >= _level && _skillType != 3)
  10. +       // If current skill lvl + 1 is not equal to the skill lvl you wanna learn (eg: You have Aggression lvl 3 and the packet sends info that
  11. +       // you want to learn Aggression lvl 5, thus skipping lvl 4.) or the packet sends the same level or lower (eg: Aggression lvl 3 and the
  12. +       // packet sends info that you want to learn Aggression level 3).
  13. +       if (Math.max(player.getSkillLevel(_id), 0) + 1 != _level && _skillType != 3)
  14.         {
  15.             // already knows the skill with this level
  16.             return;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement