@Override public boolean execute(MOB mob, List<String> commands, int metaFlags) throws java.io.IOException { final String str = L("Prop_WizInvis"); final Ability A = mob.fetchEffect(str); boolean didSomething = false; if (A != null) { final Command C = CMClass.getCommand("WizInv"); if ((C != null) && (C.securityCheck(mob))) { didSomething = true; C.execute(mob, new XVector<String>("WIZINV", "OFF"), metaFlags); } } final java.util.List<Ability> V = returnOffensiveAffects(mob); if (V.size() == 0) { if (!didSomething) mob.tell(L("You are not invisible or hidden!")); } else for (int v = 0; v < V.size(); v++) V.get(v).unInvoke(); mob.location().recoverRoomStats(); mob.location().recoverRoomStats(); return false; }