Advertisement
Guest User

Untitled

a guest
Jul 11th, 2014
106
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.04 KB | None | 0 0
  1. ### Eclipse Workspace Patch 1.0
  2. #P L2J_Server_BETA
  3. Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
  4. ===================================================================
  5. --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (revision 6587)
  6. +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java    (working copy)
  7. @@ -8709,6 +8709,26 @@
  8.             return false;
  9.         }
  10.        
  11. +       if (!skill.isDebuff() && !skill.isDance() && (target instanceof L2Playable) && (this != target))
  12. +       {
  13. +          
  14. +           L2PcInstance cha = target.getActingPlayer();
  15. +           if (this != cha)
  16. +           {
  17. +               Skill targetSkill = cha.getSkills().get(skill.getId());
  18. +              
  19. +               if (targetSkill != null)
  20. +               {
  21. +                   if (skill.getLevel() < targetSkill.getLevel())
  22. +                   {
  23. +                       sendMessage("Debuff with lower level buffs is DISABLED");
  24. +                       sendPacket(ActionFailed.STATIC_PACKET);
  25. +                       return false;
  26. +                   }
  27. +               }
  28. +           }
  29. +       }
  30. +      
  31.         // skills can be used on Walls and Doors only during siege
  32.         if (target.isDoor())
  33.         {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement