From 1e09930bdbd3d3c804d6bc0edce4eb31073dc915 Mon Sep 17 00:00:00 2001 From: MagicBot Date: Sat, 7 Sep 2024 12:13:01 -0400 Subject: [PATCH] Poweraction refactor work --- .../powers/poweractions/SetItemFlagPowerAction.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/engine/powers/poweractions/SetItemFlagPowerAction.java b/src/engine/powers/poweractions/SetItemFlagPowerAction.java index 471988f0..003c75a8 100644 --- a/src/engine/powers/poweractions/SetItemFlagPowerAction.java +++ b/src/engine/powers/poweractions/SetItemFlagPowerAction.java @@ -18,15 +18,15 @@ import engine.objects.CharacterItemManager; import engine.objects.Item; import engine.powers.ActionsBase; import engine.powers.PowersBase; +import engine.wpak.data.PowerAction; -import java.sql.ResultSet; import java.sql.SQLException; public class SetItemFlagPowerAction extends AbstractPowerAction { - public SetItemFlagPowerAction(ResultSet rs) throws SQLException { - super(rs); + public SetItemFlagPowerAction(PowerAction powerAction) throws SQLException { + super(powerAction); } @Override @@ -43,11 +43,11 @@ public class SetItemFlagPowerAction extends AbstractPowerAction { //until this is shown to do something else, just use it as item identify spell. item.flags.add(mbEnums.ItemFlags.Identified); - ; + + //update failed, reset if (!DbManager.ItemQueries.UPDATE_FLAGS(item)) item.flags.remove(mbEnums.ItemFlags.Identified); - ; //update failed, reset //update inventory CharacterItemManager cim = source.charItemManager;