#include "system/object-type-definition.h"
#include "system/player-type-definition.h"
#include "timed-effect/player-cut.h"
+#include "timed-effect/player-hallucination.h"
#include "timed-effect/player-stun.h"
+#include "timed-effect/timed-effects.h"
#include "util/bit-flags-calculator.h"
#include "view/display-messages.h"
, m_ptr(&player_ptr->current_floor_ptr->m_list[m_idx])
, method(RaceBlowMethodType::NONE)
, effect(RaceBlowEffectType::NONE)
- , do_silly_attack(one_in_(2) && player_ptr->hallucinated)
+ , do_silly_attack(one_in_(2) && player_ptr->effects()->hallucination()->is_hallucinated())
, player_ptr(player_ptr)
{
}
return false;
}
- return is_hostile(this->m_ptr);
+ return this->m_ptr->is_hostile();
}
/*!
}
auto *r_ptr = &r_info[this->m_ptr->r_idx];
- if (is_pet(this->m_ptr) && r_ptr->kind_flags.has(MonsterKindType::UNIQUE) && (this->method == RaceBlowMethodType::EXPLODE)) {
+ if (this->m_ptr->is_pet() && r_ptr->kind_flags.has(MonsterKindType::UNIQUE) && (this->method == RaceBlowMethodType::EXPLODE)) {
this->method = RaceBlowMethodType::HIT;
this->d_dice /= 10;
}