Proper Agathion slot mask.

This commit is contained in:
MobiusDev
2018-10-11 18:34:58 +00:00
parent 866bbde935
commit c0a6ffbb64
40 changed files with 906 additions and 1084 deletions

View File

@@ -38,14 +38,14 @@ import com.l2jmobius.gameserver.network.serverpackets.SystemMessage;
public final class Disarmor extends AbstractEffect
{
private final Map<Integer, Integer> _unequippedItems; // PlayerObjId, ItemObjId
private final int _slot;
private final long _slot;
public Disarmor(StatsSet params)
{
_unequippedItems = new ConcurrentHashMap<>();
final String slot = params.getString("slot", "chest");
_slot = ItemTable.SLOTS.getOrDefault(slot, L2Item.SLOT_NONE);
_slot = ItemTable.SLOTS.getOrDefault(slot, (long) L2Item.SLOT_NONE);
if (_slot == L2Item.SLOT_NONE)
{
LOGGER.severe("Unknown bodypart slot for effect: " + slot);

View File

@@ -73,7 +73,7 @@ public class EquipArmorSkillCondition implements ISkillCondition
// So from here, chest armor matches conditions
final int chestBodyPart = chest.getItem().getBodyPart();
final long chestBodyPart = chest.getItem().getBodyPart();
// return True if chest armor is a Full Armor
if (chestBodyPart == L2Item.SLOT_FULL_ARMOR)
{