*/
#include "angband.h"
+#include "artifact.h"
#include "cmd-pet.h"
#include "player-damage.h"
#include "monsterrace-hook.h"
#include "melee.h"
#include "projection.h"
+#include "monster-status.h"
+#include "avatar.h"
+#include "player-status.h"
{
case CLASS_ROGUE:
case CLASS_NINJA:
- if (buki_motteruka(INVEN_RARM + hand) && !p_ptr->icky_wield[hand])
+ if (has_melee_weapon(INVEN_RARM + hand) && !p_ptr->icky_wield[hand])
{
int tmp = p_ptr->lev * 6 + (p_ptr->skill_stl + 10) * 4;
if (p_ptr->monlite && (mode != HISSATSU_NYUSIN)) tmp /= 3;
}
else k = 1;
}
- else if ((p_ptr->pclass == CLASS_NINJA) && buki_motteruka(INVEN_RARM + hand) && !p_ptr->icky_wield[hand] && ((p_ptr->cur_lite <= 0) || one_in_(7)))
+ else if ((p_ptr->pclass == CLASS_NINJA) && has_melee_weapon(INVEN_RARM + hand) && !p_ptr->icky_wield[hand] && ((p_ptr->cur_lite <= 0) || one_in_(7)))
{
int maxhp = maxroll(r_ptr->hdice, r_ptr->hside);
if (one_in_(backstab ? 13 : (stab_fleeing || fuiuchi) ? 15 : 27))