Fix for applying accessory appearance stones.
This commit is contained in:
@@ -121,6 +121,8 @@ public class RequestExTryToPutShapeShiftingTargetItem implements IClientIncoming
|
|||||||
// return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!appearanceStone.getTargetTypes().contains(AppearanceTargetType.ACCESSORY)) // accessory tempfix
|
||||||
|
{
|
||||||
if (!appearanceStone.getCrystalTypes().isEmpty() && !appearanceStone.getCrystalTypes().contains(targetItem.getItem().getCrystalType()))
|
if (!appearanceStone.getCrystalTypes().isEmpty() && !appearanceStone.getCrystalTypes().contains(targetItem.getItem().getCrystalType()))
|
||||||
{
|
{
|
||||||
client.sendPacket(SystemMessageId.ITEM_GRADES_DO_NOT_MATCH);
|
client.sendPacket(SystemMessageId.ITEM_GRADES_DO_NOT_MATCH);
|
||||||
@@ -128,6 +130,7 @@ public class RequestExTryToPutShapeShiftingTargetItem implements IClientIncoming
|
|||||||
player.removeRequest(ShapeShiftingItemRequest.class);
|
player.removeRequest(ShapeShiftingItemRequest.class);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (appearanceStone.getTargetTypes().isEmpty())
|
if (appearanceStone.getTargetTypes().isEmpty())
|
||||||
{
|
{
|
||||||
|
@@ -136,12 +136,15 @@ public class RequestShapeShiftingItem implements IClientIncomingPacket
|
|||||||
// return;
|
// return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!appearanceStone.getTargetTypes().contains(AppearanceTargetType.ACCESSORY)) // accessory tempfix
|
||||||
|
{
|
||||||
if (!appearanceStone.getCrystalTypes().isEmpty() && !appearanceStone.getCrystalTypes().contains(targetItem.getItem().getCrystalType()))
|
if (!appearanceStone.getCrystalTypes().isEmpty() && !appearanceStone.getCrystalTypes().contains(targetItem.getItem().getCrystalType()))
|
||||||
{
|
{
|
||||||
client.sendPacket(ExShapeShiftingResult.FAILED);
|
client.sendPacket(ExShapeShiftingResult.FAILED);
|
||||||
player.removeRequest(ShapeShiftingItemRequest.class);
|
player.removeRequest(ShapeShiftingItemRequest.class);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (appearanceStone.getTargetTypes().isEmpty())
|
if (appearanceStone.getTargetTypes().isEmpty())
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user