MCPcopy Create free account
hub / github.com/diasurgical/DevilutionX / isPossibleToHit

Method isPossibleToHit

Source/monster.cpp:4695–4702  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

4693}
4694
4695bool Monster::isPossibleToHit() const
4696{
4697 return !(hitPoints >> 6 <= 0
4698 || talkMsg != TEXT_NONE
4699 || (type().type == MT_ILLWEAV && goal == MonsterGoal::Retreat)
4700 || (IsAnyOf(mode, MonsterMode::Charge, MonsterMode::Death))
4701 || (IsAnyOf(type().type, MT_COUNSLR, MT_MAGISTR, MT_CABALIST, MT_ADVOCATE) && goal != MonsterGoal::Normal));
4702}
4703
4704void Monster::tag(const Player &tagger)
4705{

Callers 4

MonsterAttackMonsterFunction · 0.80
MonsterMHitFunction · 0.80
MonsterTrapHitFunction · 0.80
PlrHitMonstFunction · 0.80

Calls 1

IsAnyOfFunction · 0.85

Tested by

no test coverage detected