Addition of Ignition effect.
This commit is contained in:
@@ -193,6 +193,7 @@ public class EffectMasterHandler
|
||||
EffectHandler.getInstance().registerHandler("HpDrain", HpDrain::new);
|
||||
EffectHandler.getInstance().registerHandler("HpRegen", HpRegen::new);
|
||||
EffectHandler.getInstance().registerHandler("HpToOwner", HpToOwner::new);
|
||||
EffectHandler.getInstance().registerHandler("Ignition", Ignition::new);
|
||||
EffectHandler.getInstance().registerHandler("IgnoreDeath", IgnoreDeath::new);
|
||||
EffectHandler.getInstance().registerHandler("ImmobileDamageBonus", ImmobileDamageBonus::new);
|
||||
EffectHandler.getInstance().registerHandler("ImmobileDamageResist", ImmobileDamageResist::new);
|
||||
|
62
L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/Ignition.java
vendored
Normal file
62
L2J_Mobius_10.0_MasterClass/dist/game/data/scripts/handlers/effecthandlers/Ignition.java
vendored
Normal file
@@ -0,0 +1,62 @@
|
||||
/*
|
||||
* 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.effecthandlers;
|
||||
|
||||
import org.l2jmobius.commons.threads.ThreadPool;
|
||||
import org.l2jmobius.gameserver.model.StatSet;
|
||||
import org.l2jmobius.gameserver.model.actor.Creature;
|
||||
import org.l2jmobius.gameserver.model.effects.AbstractEffect;
|
||||
import org.l2jmobius.gameserver.model.effects.EffectFlag;
|
||||
import org.l2jmobius.gameserver.model.item.instance.Item;
|
||||
import org.l2jmobius.gameserver.model.skill.Skill;
|
||||
import org.l2jmobius.gameserver.network.serverpackets.ExUserInfoEquipSlot;
|
||||
|
||||
/**
|
||||
* @author Mobius
|
||||
*/
|
||||
public class Ignition extends AbstractEffect
|
||||
{
|
||||
public Ignition(StatSet params)
|
||||
{
|
||||
}
|
||||
|
||||
@Override
|
||||
public long getEffectFlags()
|
||||
{
|
||||
return EffectFlag.IGNITION.getMask();
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onStart(Creature effector, Creature effected, Skill skill, Item item)
|
||||
{
|
||||
ThreadPool.schedule(() ->
|
||||
{
|
||||
effector.sendPacket(new ExUserInfoEquipSlot(effector.getActingPlayer()));
|
||||
effector.broadcastInfo();
|
||||
}, 100);
|
||||
}
|
||||
|
||||
@Override
|
||||
public void onExit(Creature effector, Creature effected, Skill skill)
|
||||
{
|
||||
ThreadPool.schedule(() ->
|
||||
{
|
||||
effector.sendPacket(new ExUserInfoEquipSlot(effector.getActingPlayer()));
|
||||
effector.broadcastInfo();
|
||||
}, 100);
|
||||
}
|
||||
}
|
Reference in New Issue
Block a user