--- deliantra/server/ext/dmcommands.ext 2008/12/20 02:32:31 1.24 +++ deliantra/server/ext/dmcommands.ext 2008/12/23 06:58:23 1.25 @@ -95,9 +95,17 @@ return unless $ob->may ("command_wizlook"); - $ob->contr->clear_los (0); + my $new_val = length $arg ? $arg * 1 : !$ob->flag (cf::FLAG_WIZLOOK); - $ob->reply (undef, "You can temporarily see through walls."); + $ob->flag (cf::FLAG_WIZLOOK, $new_val); + + $ob->contr->do_los (1); + + $ob->reply (undef, + $new_val + ? "You can now look through walls." + : "You will now see the same thing as you would normally.", + ); 1 };