Adjustments for previous commit.
This commit is contained in:
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -37,7 +38,7 @@ public final class AbnormalShield extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setAbnormalShieldBlocks(_times);
|
||||
}
|
||||
|
@@ -26,6 +26,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageReceived;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.FunctionEventListener;
|
||||
import com.l2jmobius.gameserver.model.events.returns.DamageReturn;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -68,7 +69,7 @@ public class AbsorbDamage extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
_damageHolder.put(effected.getObjectId(), _damage);
|
||||
effected.addListener(new FunctionEventListener(effected, EventType.ON_CREATURE_DAMAGE_RECEIVED, (OnCreatureDamageReceived event) -> onDamageReceivedEvent(event), this));
|
||||
|
@@ -26,6 +26,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.ListenersContainer;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureHpChange;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
@@ -44,7 +45,7 @@ abstract class AbstractConditionalHpEffect extends AbstractStatEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
// Augmentation option
|
||||
if (skill == null)
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.stat.CharStat;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.TraitType;
|
||||
|
||||
@@ -69,7 +70,7 @@ public final class AttackTrait extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final CharStat charStat = effected.getStat();
|
||||
synchronized (charStat.getAttackTraits())
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -46,7 +47,7 @@ public final class Betray extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getAI().setIntention(CtrlIntention.AI_INTENTION_ATTACK, effected.getActingPlayer());
|
||||
}
|
||||
|
@@ -23,6 +23,7 @@ import java.util.stream.Collectors;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.AbnormalType;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
@@ -40,7 +41,7 @@ public final class BlockAbnormalSlot extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getEffectList().addBlockedAbnormalTypes(_blockAbnormalSlots);
|
||||
}
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
@@ -59,7 +60,7 @@ public final class BlockAction extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (_blockedActions.contains(BotReportTable.PARTY_ACTION_BLOCK_ID))
|
||||
{
|
||||
|
@@ -28,6 +28,7 @@ import com.l2jmobius.gameserver.model.actor.L2Summon;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -57,7 +58,7 @@ public final class BlockActions extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
_allowedSkills.stream().forEach(effected::addBlockActionsAllowedSkill);
|
||||
effected.startParalyze();
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
@@ -49,7 +50,7 @@ public final class BlockChat extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
PunishmentManager.getInstance().startPunishment(new PunishmentTask(0, effected.getObjectId(), PunishmentAffect.CHARACTER, PunishmentType.CHAT_BAN, 0, "Chat banned bot report", "system", true));
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -32,7 +33,7 @@ public final class BlockMove extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setIsImmobilized(true);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.instancemanager.PunishmentManager;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentAffect;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentTask;
|
||||
import com.l2jmobius.gameserver.model.punishment.PunishmentType;
|
||||
@@ -42,7 +43,7 @@ public final class BlockParty extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
PunishmentManager.getInstance().startPunishment(new PunishmentTask(0, effected.getObjectId(), PunishmentAffect.CHARACTER, PunishmentType.PARTY_BAN, 0, "Party banned by bot report", "system", true));
|
||||
}
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureSkillUse;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.FunctionEventListener;
|
||||
import com.l2jmobius.gameserver.model.events.returns.TerminateReturn;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -50,7 +51,7 @@ public final class BlockSkill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if ((_magicTypes == null) || (_magicTypes.length == 0))
|
||||
{
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.L2World;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -32,7 +33,7 @@ public class BlockTarget extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setTargetable(false);
|
||||
L2World.getInstance().forEachVisibleObject(effected, L2Character.class, target ->
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
|
||||
@@ -41,7 +42,7 @@ public final class CallSkillOnActionTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getEffectList().stopEffects(Collections.singleton(_skill.getSkill().getAbnormalType()));
|
||||
effected.getEffectList().addBlockedAbnormalTypes(Collections.singleton(_skill.getSkill().getAbnormalType()));
|
||||
@@ -54,7 +55,7 @@ public final class CallSkillOnActionTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effector.isDead())
|
||||
{
|
||||
|
@@ -22,6 +22,7 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
@@ -51,7 +52,7 @@ public final class ChameleonRest extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
@@ -78,7 +79,7 @@ public final class ChameleonRest extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.holders.TemplateChanceHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -49,7 +50,7 @@ public final class ChangeBody extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final int chance = Rnd.get(100);
|
||||
//@formatter:off
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -42,7 +43,7 @@ public final class CreateCommonItem extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final L2PcInstance player = effected.getActingPlayer();
|
||||
if (player != null)
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -42,7 +43,7 @@ public final class CreateItem extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final L2PcInstance player = effected.getActingPlayer();
|
||||
if (player != null)
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.enums.Position;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
import com.l2jmobius.gameserver.util.MathUtil;
|
||||
@@ -39,7 +40,7 @@ public class CriticalDamagePosition extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().mergePositionTypeValue(Stats.CRITICAL_DAMAGE, _position, (_amount / 100) + 1, MathUtil::mul);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.enums.Position;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
import com.l2jmobius.gameserver.util.MathUtil;
|
||||
@@ -39,7 +40,7 @@ public class CriticalRatePositionBonus extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().mergePositionTypeValue(Stats.CRITICAL_RATE, _position, (_amount / 100) + 1, MathUtil::mul);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -42,7 +43,7 @@ public final class CrystalGradeModify extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getActingPlayer().setExpertisePenaltyBonus(_amount);
|
||||
}
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -43,7 +44,7 @@ public final class Crystallize extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final L2PcInstance player = effected.getActingPlayer();
|
||||
if (player != null)
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@@ -40,7 +41,7 @@ public final class DamOverTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!skill.isToggle() && skill.isMagic())
|
||||
{
|
||||
@@ -67,7 +68,7 @@ public final class DamOverTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
@@ -46,7 +47,7 @@ public final class DamOverTimePercent extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.stat.CharStat;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.TraitType;
|
||||
|
||||
@@ -98,7 +99,7 @@ public final class DefenceTrait extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final CharStat charStat = effected.getStat();
|
||||
synchronized (charStat.getDefenceTraits())
|
||||
|
@@ -23,6 +23,7 @@ import java.util.Set;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -51,7 +52,7 @@ public class DisableSkill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
for (int disableSkillId : disableSkills)
|
||||
{
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -34,7 +35,7 @@ public final class DisableTargeting extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.setTarget(null);
|
||||
effected.abortAttack();
|
||||
|
@@ -26,6 +26,7 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -56,7 +57,7 @@ public final class DoubleCast extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
@@ -70,7 +71,7 @@ public final class DoubleCast extends AbstractEffect
|
||||
}
|
||||
}
|
||||
}
|
||||
super.onStart(effector, effected, skill);
|
||||
super.onStart(effector, effected, skill, item);
|
||||
}
|
||||
|
||||
@Override
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -38,7 +39,7 @@ public final class EnableCloak extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getActingPlayer().getStat().setCloakSlotStatus(true);
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -41,7 +42,7 @@ public final class EnlargeAbnormalSlot extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().setMaxBuffCount(effected.getStat().getMaxBuffCount() + _slots);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
import com.l2jmobius.gameserver.network.serverpackets.ChangeWaitType;
|
||||
@@ -46,7 +47,7 @@ public final class FakeDeath extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
@@ -81,7 +82,7 @@ public final class FakeDeath extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.startFakeDeath();
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.enums.StatModifierType;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
@@ -38,7 +39,7 @@ public class FatalBlowRate extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
switch (_mode)
|
||||
{
|
||||
|
@@ -28,6 +28,7 @@ import com.l2jmobius.gameserver.model.actor.instance.L2FortCommanderInstance;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2SiegeFlagInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.util.Util;
|
||||
|
||||
@@ -66,14 +67,14 @@ public final class Fear extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
fearAction(null, effected);
|
||||
return false;
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getAI().notifyEvent(CtrlEvent.EVT_AFRAID);
|
||||
fearAction(effector, effected);
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -38,7 +39,7 @@ public final class Flag extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.updatePvPFlag(1);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@@ -45,7 +46,7 @@ public class GetMomentum extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Npc;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -32,7 +33,7 @@ public final class Grow extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isNpc())
|
||||
{
|
||||
|
@@ -22,6 +22,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -35,7 +36,7 @@ public final class Hide extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.GameTimeController;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
@@ -33,7 +34,7 @@ public class HitAtNight extends AbstractStatEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
GameTimeController.getInstance().addShadowSenseCharacter(effected);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Formulas;
|
||||
|
||||
@@ -40,7 +41,7 @@ public final class HpToOwner extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!skill.isToggle() && skill.isMagic())
|
||||
{
|
||||
@@ -61,7 +62,7 @@ public final class HpToOwner extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Summon;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -39,7 +40,7 @@ public final class ImmobilePetBuff extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isSummon() && effector.isPlayer() && (((L2Summon) effected).getOwner() == effector))
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
@@ -42,7 +43,7 @@ public class LimitSkill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
switch (skill.getId())
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.util.MathUtil;
|
||||
|
||||
@@ -37,7 +38,7 @@ public class MagicMpCost extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().mergeMpConsumeTypeValue(_magicType, (_amount / 100) + 1, MathUtil::mul);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Formulas;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@@ -47,7 +48,7 @@ public final class MagicalDamOverTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final L2Character activeChar = effector;
|
||||
final L2Character target = effected;
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
@@ -36,7 +37,7 @@ public final class ManaDamOverTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
@@ -36,7 +37,7 @@ public final class MpConsumePerLevel extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
|
@@ -22,6 +22,7 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -46,7 +47,7 @@ public final class Mute extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.abortCast();
|
||||
effected.getAI().notifyEvent(CtrlEvent.EVT_MUTED);
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -39,7 +40,7 @@ public final class PhysicalAttackMute extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.startPhysicalAttackMuted();
|
||||
}
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -40,7 +41,7 @@ public final class PhysicalMute extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getAI().notifyEvent(CtrlEvent.EVT_MUTED);
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
@@ -32,7 +33,7 @@ public class PolearmSingleTarget extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.stat.PcStat;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.zone.ZoneId;
|
||||
@@ -46,7 +47,7 @@ public final class RecoverVitalityInPeaceZone extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if ((effected == null) //
|
||||
|| effected.isDead() //
|
||||
|
@@ -23,6 +23,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageReceived;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.FunctionEventListener;
|
||||
import com.l2jmobius.gameserver.model.events.returns.DamageReturn;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -57,7 +58,7 @@ public class ReduceDamage extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new FunctionEventListener(effected, EventType.ON_CREATURE_DAMAGE_RECEIVED, (OnCreatureDamageReceived event) -> onDamageReceivedEvent(event), this));
|
||||
}
|
||||
|
@@ -22,6 +22,7 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
|
||||
@@ -51,7 +52,7 @@ public final class Relax extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
@@ -64,7 +65,7 @@ public final class Relax extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isDead())
|
||||
{
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.instance.L2PcInstance;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.items.type.CrystalType;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
@@ -43,7 +44,7 @@ public final class RemoveEquipPenalty extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
final L2PcInstance player = effected.getActingPlayer();
|
||||
if (player != null)
|
||||
|
@@ -23,6 +23,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -53,7 +54,7 @@ public final class ResistSkill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
for (SkillHolder holder : _skills)
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.util.MathUtil;
|
||||
|
||||
@@ -37,7 +38,7 @@ public class Reuse extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().mergeReuseTypeValue(_magicType, (_amount / 100) + 1, MathUtil::mul);
|
||||
}
|
||||
|
@@ -22,6 +22,7 @@ import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.effects.L2EffectType;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -56,7 +57,7 @@ public final class Root extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.stopMove(null);
|
||||
effected.getAI().notifyEvent(CtrlEvent.EVT_ROOTED);
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -37,7 +38,7 @@ public class SkillEvasion extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().addSkillEvasionTypeValue(_magicType, _amount);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.commons.util.Rnd;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Formulas;
|
||||
|
||||
@@ -39,7 +40,7 @@ public final class SkillTurningOverTime extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if ((effected == null) || (effected == effector) || effected.isRaid())
|
||||
{
|
||||
@@ -52,6 +53,6 @@ public final class SkillTurningOverTime extends AbstractEffect
|
||||
effected.breakCast();
|
||||
}
|
||||
|
||||
return super.onActionTime(effector, effected, skill);
|
||||
return super.onActionTime(effector, effected, skill, item);
|
||||
}
|
||||
}
|
@@ -25,6 +25,7 @@ import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.player.OnPlayableExpChanged;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
import com.l2jmobius.gameserver.network.SystemMessageId;
|
||||
@@ -46,7 +47,7 @@ public final class SoulEating extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayer())
|
||||
{
|
||||
|
@@ -22,6 +22,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageReceived;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.FunctionEventListener;
|
||||
import com.l2jmobius.gameserver.model.events.returns.DamageReturn;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
@@ -36,7 +37,7 @@ public class SphericBarrier extends AbstractStatAddEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new FunctionEventListener(effected, EventType.ON_CREATURE_DAMAGE_RECEIVED, (OnCreatureDamageReceived event) -> onDamageReceivedEvent(event), this));
|
||||
}
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.MoveType;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
@@ -41,7 +42,7 @@ public class StatByMoveType extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getStat().mergeMoveTypeValue(_stat, _type, _value);
|
||||
}
|
||||
@@ -53,7 +54,7 @@ public class StatByMoveType extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
return skill.isPassive() || skill.isToggle();
|
||||
}
|
||||
|
@@ -25,6 +25,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.AbnormalType;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
@@ -77,7 +78,7 @@ public final class Synergy extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effector.isDead())
|
||||
{
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -41,7 +42,7 @@ public final class TalismanSlot extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.getActingPlayer().getStat().addTalismanSlots(_slots);
|
||||
}
|
||||
|
@@ -20,6 +20,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Playable;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -42,7 +43,7 @@ public final class TargetMe extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayable())
|
||||
{
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
@@ -47,7 +48,7 @@ public class TrackLimitedSkill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
trackAeoreLimit(effector, effected, skill, LIMIT_OF_AEORE); // Tracking Aeore Limit Debuff
|
||||
trackSigelLimit(effector, effected, skill, LIMIT_OF_SIGEL); // Tracking Sigel Limit Debuff
|
||||
|
@@ -19,6 +19,7 @@ package handlers.effecthandlers;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Playable;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.stats.Stats;
|
||||
|
||||
@@ -43,7 +44,7 @@ public final class TransferDamageToPlayer extends AbstractStatAddEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (effected.isPlayable() && effector.isPlayer())
|
||||
{
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.commons.util.Rnd;
|
||||
import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -58,7 +59,7 @@ public final class Transformation extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if (!_id.isEmpty())
|
||||
{
|
||||
|
@@ -29,6 +29,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageDealt;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.items.type.WeaponType;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
@@ -166,7 +167,7 @@ public final class TriggerSkillByAttack extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_DAMAGE_DEALT, (OnCreatureDamageDealt event) -> onAttackEvent(event), this));
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureAttackAvoid;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
import com.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||
@@ -96,7 +97,7 @@ public final class TriggerSkillByAvoid extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_ATTACK_AVOID, (OnCreatureAttackAvoid event) -> onAvoidEvent(event), this));
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageReceived;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
import com.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||
@@ -104,7 +105,7 @@ public final class TriggerSkillByDamage extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_DAMAGE_RECEIVED, (OnCreatureDamageReceived event) -> onDamageReceivedEvent(event), this));
|
||||
}
|
||||
|
@@ -29,6 +29,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageReceived;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
import com.l2jmobius.gameserver.model.skills.targets.TargetType;
|
||||
@@ -107,7 +108,7 @@ public final class TriggerSkillByDeathBlow extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_DAMAGE_RECEIVED, (OnCreatureDamageReceived event) -> onDamageReceivedEvent(event), this));
|
||||
}
|
||||
|
@@ -24,6 +24,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureKilled;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
|
||||
@@ -69,7 +70,7 @@ public final class TriggerSkillByKill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_KILLED, (OnCreatureKilled event) -> onCreatureKilled(event, effected), this));
|
||||
}
|
||||
|
@@ -30,6 +30,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureSkillFinishCast;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
@@ -112,7 +113,7 @@ public final class TriggerSkillByMagicType extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
if ((_chance == 0) || (_skill.getSkillId() == 0) || (_skill.getSkillLevel() == 0) || (_magicTypes.length == 0))
|
||||
{
|
||||
|
@@ -29,6 +29,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureSkillFinishCast;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
@@ -56,7 +57,7 @@ public final class TriggerSkillBySkill extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_SKILL_FINISH_CAST, (OnCreatureSkillFinishCast event) -> onSkillUseEvent(event), this));
|
||||
}
|
||||
|
@@ -31,6 +31,7 @@ import com.l2jmobius.gameserver.model.events.EventType;
|
||||
import com.l2jmobius.gameserver.model.events.impl.character.OnCreatureDamageDealt;
|
||||
import com.l2jmobius.gameserver.model.events.listeners.ConsumerEventListener;
|
||||
import com.l2jmobius.gameserver.model.holders.SkillHolder;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.BuffInfo;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
import com.l2jmobius.gameserver.model.skills.SkillCaster;
|
||||
@@ -66,7 +67,7 @@ public final class TriggerSkillBySkillAttack extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
effected.addListener(new ConsumerEventListener(effected, EventType.ON_CREATURE_DAMAGE_DEALT, (OnCreatureDamageDealt event) -> onAttackEvent(event), this));
|
||||
}
|
||||
|
@@ -21,6 +21,7 @@ import com.l2jmobius.gameserver.model.StatsSet;
|
||||
import com.l2jmobius.gameserver.model.actor.L2Character;
|
||||
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import com.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import com.l2jmobius.gameserver.model.items.instance.L2ItemInstance;
|
||||
import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
|
||||
/**
|
||||
@@ -40,7 +41,7 @@ public final class Untargetable extends AbstractEffect
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill, L2ItemInstance item)
|
||||
{
|
||||
// Remove target from those that have the untargetable creature on target.
|
||||
L2World.getInstance().forEachVisibleObject(effected, L2Character.class, c ->
|
||||
|
@@ -26,8 +26,8 @@ import com.l2jmobius.gameserver.model.skills.Skill;
|
||||
/**
|
||||
* Abstract effect implementation.<br>
|
||||
* Instant effects should not override {@link #onExit(L2Character, L2Character, Skill)}.<br>
|
||||
* Instant effects should not override {@link #canStart(L2Character, L2Character, Skill)}, all checks should be done {@link #onStart(L2Character, L2Character, Skill)}.<br>
|
||||
* Do not call super class methods {@link #onStart(L2Character, L2Character, Skill)} nor {@link #onExit(L2Character, L2Character, Skill)}.
|
||||
* Instant effects should not override {@link #canStart(L2Character, L2Character, Skill)}, all checks should be done {@link #onStart(L2Character, L2Character, Skill, L2ItemInstance)}.<br>
|
||||
* Do not call super class methods {@link #onStart(L2Character, L2Character, Skill, L2ItemInstance)} nor {@link #onExit(L2Character, L2Character, Skill)}.
|
||||
* @author Zoey76
|
||||
*/
|
||||
public abstract class AbstractEffect
|
||||
@@ -102,11 +102,6 @@ public abstract class AbstractEffect
|
||||
|
||||
}
|
||||
|
||||
public void onStart(L2Character effector, L2Character effected, Skill skill)
|
||||
{
|
||||
onStart(effector, effected, skill, null);
|
||||
}
|
||||
|
||||
public void onExit(L2Character effector, L2Character effected, Skill skill)
|
||||
{
|
||||
|
||||
@@ -126,19 +121,6 @@ public abstract class AbstractEffect
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Called on each tick.<br>
|
||||
* If the abnormal time is lesser than zero it will last forever.
|
||||
* @param effector
|
||||
* @param effected
|
||||
* @param skill
|
||||
* @return if {@code true} this effect will continue forever, if {@code false} it will stop after abnormal time has passed
|
||||
*/
|
||||
public boolean onActionTime(L2Character effector, L2Character effected, Skill skill)
|
||||
{
|
||||
return onActionTime(effector, effected, skill, null);
|
||||
}
|
||||
|
||||
/**
|
||||
* Get the effect flags.
|
||||
* @return bit flag for current effect
|
||||
|
Reference in New Issue
Block a user