extern bool comvert_mp_to_hp(player_type *creature_ptr);
extern bool demonic_breath(player_type *creature_ptr);
extern bool mirror_concentration(player_type *creature_ptr);
+extern bool sword_dancing(player_type *creature_ptr);
/* spells3.c */
extern bool teleport_away(MONSTER_IDX m_idx, POSITION dis, BIT_FLAGS mode);
{
case CLASS_WARRIOR:
{
- POSITION y = 0, x = 0;
- int i;
- cave_type *c_ptr;
-
- for (i = 0; i < A_MAX; i++)
- {
- dir = randint0(8);
- y = p_ptr->y + ddy_ddd[dir];
- x = p_ptr->x + ddx_ddd[dir];
- c_ptr = &cave[y][x];
-
- /* Hack -- attack monsters */
- if (c_ptr->m_idx)
- py_attack(y, x, 0);
- else
- {
- msg_print(_("攻撃が空をきった。", "You attack the empty air."));
- }
- }
+ return sword_dancing(p_ptr);
break;
}
case CLASS_HIGH_MAGE:
msg_print(_("鏡の上でないと集中できない!", "Here are not any mirrors!"));
}
return TRUE;
-}
\ No newline at end of file
+}
+
+bool sword_dancing(player_type *creature_ptr)
+{
+ DIRECTION dir;
+ POSITION y = 0, x = 0;
+ int i;
+ cave_type *c_ptr;
+
+ for (i = 0; i < 6; i++)
+ {
+ dir = randint0(8);
+ y = creature_ptr->y + ddy_ddd[dir];
+ x = creature_ptr->x + ddx_ddd[dir];
+ c_ptr = &cave[y][x];
+
+ /* Hack -- attack monsters */
+ if (c_ptr->m_idx)
+ py_attack(y, x, 0);
+ else
+ {
+ msg_print(_("攻撃が空をきった。", "You attack the empty air."));
+ }
+ }
+ return TRUE;
+}