bool resist, saving_throw;
if (TARGET_TYPE == MONSTER_TO_PLAYER) {
- resist = (bool)target_ptr->resist_fear;
+ resist = (target_ptr->resist_fear != 0);
saving_throw = (randint0(100 + rlev / 2) < target_ptr->skill_sav);
spell_badstatus_message(target_ptr, m_idx, t_idx, _("%^sが何かをつぶやくと、恐ろしげな音が聞こえた。", "%^s mumbles, and you hear scary noises."),
_("%^sが恐ろしげな幻覚を作り出した。", "%^s casts a fearful illusion."), _("しかし恐怖に侵されなかった。", "You refuse to be frightened."),
return result;
}
+BIT_FLAGS has_magic_mastery(player_type *creature_ptr)
+{
+ BIT_FLAGS result = 0L;
+
+ result |= check_equipment_flags(creature_ptr, TR_MAGIC_MASTERY);
+ return result;
+}
+
BIT_FLAGS has_free_act(player_type *creature_ptr)
{
BIT_FLAGS result = 0L;
BIT_FLAGS has_heavy_spell(player_type *creature_ptr);
BIT_FLAGS has_hold_exp(player_type *creature_ptr);
BIT_FLAGS has_see_inv(player_type *creature_ptr);
+BIT_FLAGS has_magic_mastery(player_type *creature_ptr);
BIT_FLAGS has_free_act(player_type *creature_ptr);
BIT_FLAGS is_sustain_str(player_type *creature_ptr);
BIT_FLAGS is_sustain_int(player_type *creature_ptr);