forked from MagicBane/Server
Item flags refactored
This commit is contained in:
@@ -41,10 +41,13 @@ public class SetItemFlagPowerAction extends AbstractPowerAction {
|
||||
return; //Send an error here?
|
||||
|
||||
//until this is shown to do something else, just use it as item identify spell.
|
||||
item.setIsID(true);
|
||||
|
||||
item.flags.add(Enum.ItemFlags.Identified);
|
||||
;
|
||||
|
||||
if (!DbManager.ItemQueries.UPDATE_FLAGS(item))
|
||||
item.setIsID(false); //update failed, reset
|
||||
item.flags.remove(Enum.ItemFlags.Identified);
|
||||
; //update failed, reset
|
||||
|
||||
//update inventory
|
||||
CharacterItemManager cim = source.charItemManager;
|
||||
|
||||
Reference in New Issue
Block a user