l2j_mobius/trunk/java/com/l2jserver/gameserver/model/PcCondOverride.java
MobiusDev d722c7a961 -Added two new effects (BlockTarget & Duel).
-Added <target hp="n%" /> condition (example - Last Attack skill).
-Updated DamOverTime effect - add increase charges count over time.
-Updated EnergyAttack effect to new charges system.
-Updated FatalBlow effect (able to increase skill power damage if target has affected by selected abnormal type).
-Added parameter ignorePhysDefPercent for skills that ignores some % of enemy pDef.
-Added function isInvulnerableFor(player) and updated PcCondOverride for this function.
-NPC and NPC buffers data updated for Othell Ground skill Poison Zone.
-Updated PhysicalAttack effect for skills, that decreases power when using some weapon types, and increases power when using some weapon types. also added isLastAttack parameter (for skill Last Attack atm).
-Added stat momentumSkillPower (for Tyrr' passive). Increases power when player have more charges (max 3).
-Updated some effect for working with maxSkillDamage parameter.
-Updated some old and new skills to 10531.

Contributed by NviX.
2015-07-14 20:03:39 +00:00

85 lines
2.4 KiB
Java

/*
* Copyright (C) 2004-2015 L2J Server
*
* This file is part of L2J Server.
*
* L2J Server 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.
*
* L2J Server 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 com.l2jserver.gameserver.model;
/**
* @author UnAfraid
*/
public enum PcCondOverride
{
MAX_STATS_VALUE(0, "Overrides maximum states conditions"),
ITEM_CONDITIONS(1, "Overrides item usage conditions"),
SKILL_CONDITIONS(2, "Overrides skill usage conditions"),
ZONE_CONDITIONS(3, "Overrides zone conditions"),
CASTLE_CONDITIONS(4, "Overrides castle conditions"),
FORTRESS_CONDITIONS(5, "Overrides fortress conditions"),
CLANHALL_CONDITIONS(6, "Overrides clan hall conditions"),
FLOOD_CONDITIONS(7, "Overrides floods conditions"),
CHAT_CONDITIONS(8, "Overrides chat conditions"),
INSTANCE_CONDITIONS(9, "Overrides instance conditions"),
QUEST_CONDITIONS(10, "Overrides quest conditions"),
DEATH_PENALTY(11, "Overrides death penalty conditions"),
DESTROY_ALL_ITEMS(12, "Overrides item destroy conditions"),
SEE_ALL_PLAYERS(13, "Overrides the conditions to see hidden players"),
TARGET_ALL(14, "Overrides target conditions"),
DROP_ALL_ITEMS(15, "Overrides item drop conditions"),
VULNERABLE_ALL_PLAYERS(16, "Overrides the conditions to invulnerable players");
private final int _mask;
private final String _descr;
private PcCondOverride(int id, String descr)
{
_mask = 1 << id;
_descr = descr;
}
public int getMask()
{
return _mask;
}
public String getDescription()
{
return _descr;
}
public static PcCondOverride getCondOverride(int ordinal)
{
try
{
return values()[ordinal];
}
catch (Exception e)
{
return null;
}
}
public static long getAllExceptionsMask()
{
long result = 0L;
for (PcCondOverride ex : values())
{
result |= ex.getMask();
}
return result;
}
}