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;