Advertisement
Guest User

Untitled

a guest
Jul 10th, 2014
100
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.81 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,17 @@
  8.             return false;
  9.         }
  10.        
  11. +       if (!skill.isDebuff() && (target instanceof L2Playable))
  12. +       {
  13. +          
  14. +           L2PcInstance cha = target.getActingPlayer();
  15. +           if (isAutoAttackable(cha))
  16. +           {
  17. +               sendMessage("Cannot use buffs on not friendly target.");
  18. +               sendPacket(ActionFailed.STATIC_PACKET);
  19. +               return false;
  20. +           }
  21. +       }
  22.         // skills can be used on Walls and Doors only during siege
  23.         if (target.isDoor())
  24.         {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement