New augmentation system adjustments.
Contributed by Liamxroy.
This commit is contained in:
@@ -128,10 +128,11 @@ public abstract class AbstractRefinePacket implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (item.isAugmented())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// Remove the augmentation if any (286).
|
||||
// if (item.isAugmented())
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
if (item.isHeroItem())
|
||||
{
|
||||
return false;
|
||||
|
@@ -135,6 +135,12 @@ public class RequestRefine extends AbstractRefinePacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the augmentation if any (286).
|
||||
if (targetItem.isAugmented())
|
||||
{
|
||||
targetItem.removeAugmentation();
|
||||
}
|
||||
|
||||
targetItem.setAugmentation(augment, true);
|
||||
player.sendPacket(new ExVariationResult(augment.getOption1Id(), augment.getOption2Id(), true));
|
||||
iu.addModifiedItem(targetItem);
|
||||
|
@@ -128,10 +128,11 @@ public abstract class AbstractRefinePacket implements IClientIncomingPacket
|
||||
{
|
||||
return false;
|
||||
}
|
||||
if (item.isAugmented())
|
||||
{
|
||||
return false;
|
||||
}
|
||||
// Remove the augmentation if any (286).
|
||||
// if (item.isAugmented())
|
||||
// {
|
||||
// return false;
|
||||
// }
|
||||
if (item.isHeroItem())
|
||||
{
|
||||
return false;
|
||||
|
@@ -135,6 +135,12 @@ public class RequestRefine extends AbstractRefinePacket
|
||||
return;
|
||||
}
|
||||
|
||||
// Remove the augmentation if any (286).
|
||||
if (targetItem.isAugmented())
|
||||
{
|
||||
targetItem.removeAugmentation();
|
||||
}
|
||||
|
||||
targetItem.setAugmentation(augment, true);
|
||||
player.sendPacket(new ExVariationResult(augment.getOption1Id(), augment.getOption2Id(), true));
|
||||
iu.addModifiedItem(targetItem);
|
||||
|
Reference in New Issue
Block a user