Armor Breaker and Power Bluff skills.
Contributed by hitnar.
This commit is contained in:
@ -6607,6 +6607,47 @@ public final class L2PcInstance extends L2Playable
|
||||
return true;
|
||||
}
|
||||
|
||||
/**
|
||||
* Disarm the player's Armor.
|
||||
* @return {@code true}.
|
||||
*/
|
||||
public boolean disarmArmor()
|
||||
{
|
||||
final L2ItemInstance chest = getInventory().getPaperdollItem(Inventory.PAPERDOLL_CHEST);
|
||||
if (chest != null)
|
||||
{
|
||||
final L2ItemInstance[] unequiped = getInventory().unEquipItemInBodySlotAndRecord(chest.getItem().getBodyPart());
|
||||
final InventoryUpdate iu = new InventoryUpdate();
|
||||
for (L2ItemInstance itm : unequiped)
|
||||
{
|
||||
iu.addModifiedItem(itm);
|
||||
}
|
||||
sendPacket(iu);
|
||||
|
||||
abortAttack();
|
||||
broadcastUserInfo();
|
||||
|
||||
// this can be 0 if the user pressed the right mousebutton twice very fast
|
||||
if (unequiped.length > 0)
|
||||
{
|
||||
SystemMessage sm = null;
|
||||
if (unequiped[0].getEnchantLevel() > 0)
|
||||
{
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.THE_EQUIPMENT_S1_S2_HAS_BEEN_REMOVED);
|
||||
sm.addInt(unequiped[0].getEnchantLevel());
|
||||
sm.addItemName(unequiped[0]);
|
||||
}
|
||||
else
|
||||
{
|
||||
sm = SystemMessage.getSystemMessage(SystemMessageId.S1_HAS_BEEN_UNEQUIPPED);
|
||||
sm.addItemName(unequiped[0]);
|
||||
}
|
||||
sendPacket(sm);
|
||||
}
|
||||
}
|
||||
return true;
|
||||
}
|
||||
|
||||
public boolean mount(L2Summon pet)
|
||||
{
|
||||
if (!Config.ALLOW_MOUNTS_DURING_SIEGE && isInsideZone(ZoneId.SIEGE))
|
||||
|
@ -117,6 +117,7 @@ public enum AbnormalType
|
||||
DERANGEMENT,
|
||||
DETECT_WEAKNESS,
|
||||
DISARM,
|
||||
DISBODY,
|
||||
DITTY_BUFF,
|
||||
DMG_SHIELD,
|
||||
DOT_ATTR,
|
||||
|
Reference in New Issue
Block a user