diff options
Diffstat (limited to 'crawl-ref/source/directn.cc')
-rw-r--r-- | crawl-ref/source/directn.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/crawl-ref/source/directn.cc b/crawl-ref/source/directn.cc index 30cad152a3..1cb11e4303 100644 --- a/crawl-ref/source/directn.cc +++ b/crawl-ref/source/directn.cc @@ -900,6 +900,16 @@ void direction(dist& moves, targeting_type restricts, wizard_give_monster_item(&menv[mid]); break; + + case CMD_TARGET_WIZARD_MOVE: + if (!you.wizard || !in_bounds(moves.tx, moves.ty)) + break; + wizard_move_player_or_monster(moves.tx, moves.ty); + + loop_done = true; + skip_iter = true; + + break; #endif case CMD_TARGET_DESCRIBE: @@ -2464,6 +2474,7 @@ command_type targeting_behaviour::get_command(int key) case 'P': return CMD_TARGET_WIZARD_BLESS_MONSTER; case 's': return CMD_TARGET_WIZARD_MAKE_SHOUT; case 'g': return CMD_TARGET_WIZARD_GIVE_ITEM; + case 'm': return CMD_TARGET_WIZARD_MOVE; #endif case 'v': return CMD_TARGET_DESCRIBE; case '?': return CMD_TARGET_HELP; |