Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ### Eclipse Workspace Patch 1.0
- #P L2J_Server_BETA
- Index: java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java
- ===================================================================
- --- java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (revision 6587)
- +++ java/com/l2jserver/gameserver/model/actor/instance/L2PcInstance.java (working copy)
- @@ -8709,6 +8709,26 @@
- return false;
- }
- + if (!skill.isDebuff() && !skill.isDance() && (target instanceof L2Playable) && (this != target))
- + {
- +
- + L2PcInstance cha = target.getActingPlayer();
- + if (this != cha)
- + {
- + Skill targetSkill = cha.getSkills().get(skill.getId());
- +
- + if (targetSkill != null)
- + {
- + if (skill.getLevel() < targetSkill.getLevel())
- + {
- + sendMessage("Debuff with lower level buffs is DISABLED");
- + sendPacket(ActionFailed.STATIC_PACKET);
- + return false;
- + }
- + }
- + }
- + }
- +
- // skills can be used on Walls and Doors only during siege
- if (target.isDoor())
- {
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement