@ -18,15 +18,15 @@ import engine.objects.CharacterItemManager;
@@ -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 {
@@ -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 ;