* @details
* This function is rather dangerous
*/
-static void do_cmd_wiz_named(MONRACE_IDX r_idx)
+static void do_cmd_wiz_named(player_type *summoner_ptr, MONRACE_IDX r_idx)
{
- (void)summon_named_creature(0, p_ptr->y, p_ptr->x, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
+ (void)summon_named_creature(0, summoner_ptr->y, summoner_ptr->x, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP));
}
* @details
* This function is rather dangerous
*/
-static void do_cmd_wiz_named_friendly(MONRACE_IDX r_idx)
+static void do_cmd_wiz_named_friendly(player_type *summoner_ptr, MONRACE_IDX r_idx)
{
- (void)summon_named_creature(0, p_ptr->y, p_ptr->x, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP | PM_FORCE_PET));
+ (void)summon_named_creature(0, summoner_ptr->y, summoner_ptr->x, r_idx, (PM_ALLOW_SLEEP | PM_ALLOW_GROUP | PM_FORCE_PET));
}
-
/*!
* @brief プレイヤー近辺の全モンスターを消去する /
* Hack -- Delete all nearby monsters
/* Summon _friendly_ named monster */
case 'N':
- do_cmd_wiz_named_friendly(command_arg);
+ do_cmd_wiz_named_friendly(creature_ptr, command_arg);
break;
/* Summon Named Monster */
case 'n':
- do_cmd_wiz_named(command_arg);
+ do_cmd_wiz_named(creature_ptr, command_arg);
break;
/* Dump option bits usage */