Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Index: TargetPartyClan.java
- ===================================================================
- --- TargetPartyClan.java (revision 1204)
- +++ TargetPartyClan.java (working copy)
- @@ -28,6 +28,8 @@
- import com.l2jserver.gameserver.model.skills.L2Skill;
- import com.l2jserver.gameserver.model.skills.targets.L2TargetType;
- +import cz.nxs.interf.NexusEvents;
- +
- /**
- * @author UnAfraid
- */
- @@ -92,6 +94,10 @@
- if (!player.checkPvpSkill(obj, skill))
- continue;
- + // Even ally members are considered as enemies in the events.
- + if(NexusEvents.isInEvent(player) && obj.isCharacter() && NexusEvents.canAttack(player, obj))
- + continue;
- +
- if (!TvTEvent.checkForTvTSkill(player, obj, skill))
- continue;
- Index: TargetAlly.java
- ===================================================================
- --- TargetAlly.java (revision 1204)
- +++ TargetAlly.java (working copy)
- @@ -29,6 +29,8 @@
- import com.l2jserver.gameserver.model.skills.L2Skill;
- import com.l2jserver.gameserver.model.skills.targets.L2TargetType;
- +import cz.nxs.interf.NexusEvents;
- +
- /**
- * @author UnAfraid
- */
- @@ -81,6 +83,10 @@
- if (!player.checkPvpSkill(obj, skill))
- continue;
- + // Even ally members are considered as enemies in the events.
- + if(NexusEvents.isInEvent(player) && obj.isCharacter() && NexusEvents.canAttack(player, obj))
- + continue;
- +
- if (!TvTEvent.checkForTvTSkill(player, obj, skill))
- continue;
- Index: TargetChainHeal.java
- ===================================================================
- --- TargetChainHeal.java (revision 1204)
- +++ TargetChainHeal.java (working copy)
- @@ -30,6 +30,8 @@
- import com.l2jserver.gameserver.model.skills.targets.L2TargetType;
- import com.l2jserver.gameserver.network.SystemMessageId;
- +import cz.nxs.interf.NexusEvents;
- +
- public class TargetChainHeal implements ITargetTypeHandler
- {
- @Override
- @@ -59,6 +61,10 @@
- {
- if (o == activeChar)
- continue;
- +
- + // Even ally members are considered as enemies in the events.
- + if(NexusEvents.isInEvent(activeChar) && NexusEvents.canAttack(activeChar.getActingPlayer(), o))
- + continue;
- if (!GeoData.getInstance().canSeeTarget(primarytarget, o))
- continue;
- Index: TargetClan.java
- ===================================================================
- --- TargetClan.java (revision 1204)
- +++ TargetClan.java (working copy)
- @@ -32,6 +32,8 @@
- import com.l2jserver.gameserver.model.skills.L2Skill;
- import com.l2jserver.gameserver.model.skills.targets.L2TargetType;
- +import cz.nxs.interf.NexusEvents;
- +
- /**
- * @author UnAfraid
- */
- @@ -84,6 +86,10 @@
- if (!player.checkPvpSkill(obj, skill))
- continue;
- + // Even ally members are considered as enemies in the events.
- + if(NexusEvents.isInEvent(player) && obj.isCharacter() && NexusEvents.canAttack(player, obj))
- + continue;
- +
- if (!TvTEvent.checkForTvTSkill(player, obj, skill))
- continue;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement