Armor Breaker and Power Bluff skills.

Contributed by hitnar.
This commit is contained in:
MobiusDev
2016-02-18 09:39:31 +00:00
parent b0f569aa61
commit e5420a9aa2
7 changed files with 134 additions and 8 deletions

View File

@@ -156,6 +156,7 @@ final class EffectMasterHandler
RefuelAirship.class,
Relax.class,
RemoteControl.class,
RemoveArmor.class,
RemoveTarget.class,
ResistSkill.class,
Restoration.class,

View File

@@ -0,0 +1,53 @@
/*
* 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 com.l2jmobius.gameserver.model.StatsSet;
import com.l2jmobius.gameserver.model.conditions.Condition;
import com.l2jmobius.gameserver.model.effects.AbstractEffect;
import com.l2jmobius.gameserver.model.effects.EffectFlag;
import com.l2jmobius.gameserver.model.skills.BuffInfo;
/**
* Disarm effect implementation.
* @author hitnar
*/
public final class RemoveArmor extends AbstractEffect
{
public RemoveArmor(Condition attachCond, Condition applyCond, StatsSet set, StatsSet params)
{
super(attachCond, applyCond, set, params);
}
@Override
public boolean canStart(BuffInfo info)
{
return info.getEffected().isPlayer();
}
@Override
public int getEffectFlags()
{
return EffectFlag.DISARMED.getMask();
}
@Override
public void onStart(BuffInfo info)
{
info.getEffected().getActingPlayer().disarmArmor();
}
}