Addition of OpNotInPeaceZone skill condition.
Contributed by Liamxroy.
This commit is contained in:
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -2829,6 +2829,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -2918,6 +2918,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -2899,6 +2899,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -2923,6 +2923,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -923,6 +923,7 @@
|
|||||||
<effectPoint>687</effectPoint>
|
<effectPoint>687</effectPoint>
|
||||||
<toggleGroupId>2</toggleGroupId>
|
<toggleGroupId>2</toggleGroupId>
|
||||||
<reuseDelay>30000</reuseDelay>
|
<reuseDelay>30000</reuseDelay>
|
||||||
|
<staticReuse>true</staticReuse>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
<amount>
|
<amount>
|
||||||
@@ -2571,7 +2572,6 @@
|
|||||||
<effectPoint>2</effectPoint>
|
<effectPoint>2</effectPoint>
|
||||||
<reuseDelay>600000</reuseDelay>
|
<reuseDelay>600000</reuseDelay>
|
||||||
<basicProperty>NONE</basicProperty>
|
<basicProperty>NONE</basicProperty>
|
||||||
<isMagic>4</isMagic>
|
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
<effects>
|
<effects>
|
||||||
@@ -2969,6 +2969,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -918,6 +918,7 @@
|
|||||||
<effectPoint>687</effectPoint>
|
<effectPoint>687</effectPoint>
|
||||||
<toggleGroupId>2</toggleGroupId>
|
<toggleGroupId>2</toggleGroupId>
|
||||||
<reuseDelay>30000</reuseDelay>
|
<reuseDelay>30000</reuseDelay>
|
||||||
|
<staticReuse>true</staticReuse>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
<amount>
|
<amount>
|
||||||
@@ -2549,7 +2550,6 @@
|
|||||||
<effectPoint>2</effectPoint>
|
<effectPoint>2</effectPoint>
|
||||||
<reuseDelay>600000</reuseDelay>
|
<reuseDelay>600000</reuseDelay>
|
||||||
<basicProperty>NONE</basicProperty>
|
<basicProperty>NONE</basicProperty>
|
||||||
<isMagic>4</isMagic>
|
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
<effects>
|
<effects>
|
||||||
@@ -2945,6 +2945,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -936,6 +936,7 @@
|
|||||||
<effectPoint>687</effectPoint>
|
<effectPoint>687</effectPoint>
|
||||||
<toggleGroupId>2</toggleGroupId>
|
<toggleGroupId>2</toggleGroupId>
|
||||||
<reuseDelay>30000</reuseDelay>
|
<reuseDelay>30000</reuseDelay>
|
||||||
|
<staticReuse>true</staticReuse>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="PAtk">
|
<effect name="PAtk">
|
||||||
<amount>
|
<amount>
|
||||||
@@ -2663,7 +2664,6 @@
|
|||||||
<effectPoint>2</effectPoint>
|
<effectPoint>2</effectPoint>
|
||||||
<reuseDelay>600000</reuseDelay>
|
<reuseDelay>600000</reuseDelay>
|
||||||
<basicProperty>NONE</basicProperty>
|
<basicProperty>NONE</basicProperty>
|
||||||
<isMagic>4</isMagic>
|
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
<effects>
|
<effects>
|
||||||
@@ -3084,6 +3084,9 @@
|
|||||||
<abnormalTime>5</abnormalTime>
|
<abnormalTime>5</abnormalTime>
|
||||||
<targetType>SELF</targetType>
|
<targetType>SELF</targetType>
|
||||||
<affectScope>SINGLE</affectScope>
|
<affectScope>SINGLE</affectScope>
|
||||||
|
<conditions>
|
||||||
|
<condition name="OpNotInPeacezone"/>
|
||||||
|
</conditions>
|
||||||
<effects>
|
<effects>
|
||||||
<effect name="DeleteHate" />
|
<effect name="DeleteHate" />
|
||||||
<effect name="Speed">
|
<effect name="Speed">
|
||||||
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
@@ -102,6 +102,7 @@ public class SkillConditionMasterHandler
|
|||||||
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpHaveSummonedNpc", OpHaveSummonedNpcSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyMentee", TargetMyMenteeSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPeacezone", OpPeacezoneSkillCondition::new);
|
||||||
|
SkillConditionHandler.getInstance().registerHandler("OpNotInPeacezone", OpNotInPeacezoneSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpPkcount", OpPkcountSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("OpNotCursed", OpNotCursedSkillCondition::new);
|
||||||
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
SkillConditionHandler.getInstance().registerHandler("TargetMyPledge", TargetMyPledgeSkillCondition::new);
|
||||||
|
@@ -0,0 +1,40 @@
|
|||||||
|
/*
|
||||||
|
* This file is part of the L2J Mobius project.
|
||||||
|
*
|
||||||
|
* This program is free software: you can redistribute it and/or modify
|
||||||
|
* it under the terms of the GNU General Public License as published by
|
||||||
|
* the Free Software Foundation, either version 3 of the License, or
|
||||||
|
* (at your option) any later version.
|
||||||
|
*
|
||||||
|
* This program is distributed in the hope that it will be useful,
|
||||||
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
|
||||||
|
* General Public License for more details.
|
||||||
|
*
|
||||||
|
* You should have received a copy of the GNU General Public License
|
||||||
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
||||||
|
*/
|
||||||
|
package handlers.skillconditionhandlers;
|
||||||
|
|
||||||
|
import org.l2jmobius.gameserver.model.StatsSet;
|
||||||
|
import org.l2jmobius.gameserver.model.WorldObject;
|
||||||
|
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.ISkillCondition;
|
||||||
|
import org.l2jmobius.gameserver.model.skills.Skill;
|
||||||
|
import org.l2jmobius.gameserver.model.zone.ZoneId;
|
||||||
|
|
||||||
|
/**
|
||||||
|
* @author Liamxroy
|
||||||
|
*/
|
||||||
|
public class OpNotInPeacezoneSkillCondition implements ISkillCondition
|
||||||
|
{
|
||||||
|
public OpNotInPeacezoneSkillCondition(StatsSet params)
|
||||||
|
{
|
||||||
|
}
|
||||||
|
|
||||||
|
@Override
|
||||||
|
public boolean canUse(Creature caster, Skill skill, WorldObject target)
|
||||||
|
{
|
||||||
|
return !caster.isInsideZone(ZoneId.PEACE);
|
||||||
|
}
|
||||||
|
}
|
Reference in New Issue
Block a user