Give Artifact: Clear random props first before adding all picked props

This commit is contained in:
muhammadeko 2022-04-30 06:49:49 +07:00 committed by Melledy
parent 516d1f2ebf
commit d37a326e9a

View File

@ -79,6 +79,7 @@ public final class GiveArtifactCommand implements CommandHandler {
GameItem item = new GameItem(itemData);
item.setLevel(level);
item.setMainPropId(mainPropId);
item.getAppendPropIdList().clear();//Clear default random props first
item.getAppendPropIdList().addAll(appendPropIdList);
targetPlayer.getInventory().addItem(item, ActionReason.SubfieldDrop);