Skip to content

Commit

Permalink
Move the new MoM predicate.
Browse files Browse the repository at this point in the history
  • Loading branch information
prharvey committed Jan 5, 2024
1 parent 6cbd243 commit c262eeb
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/creature.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,12 +377,6 @@ bool Creature::sees( const Creature &critter ) const
return false;
}

// Used with the Mind over Matter power Obscurity, to telepathically erase yourself from a target's perceptions
if( has_effect( effect_telepathic_ignorance ) &&
critter.has_effect( effect_telepathic_ignorance_self ) ) {
return false;
}

// Creature has stumbled into an invisible player and is now aware of them
if( has_effect( effect_stumbled_into_invisible ) &&
here.has_field_at( critter.pos(), field_fd_last_known ) && critter.is_avatar() ) {
Expand All @@ -407,6 +401,12 @@ bool Creature::sees( const Creature &critter ) const
return false;
}

// Used with the Mind over Matter power Obscurity, to telepathically erase yourself from a target's perceptions
if( has_effect( effect_telepathic_ignorance ) &&
critter.has_effect( effect_telepathic_ignorance_self ) ) {
return false;
}

if( ( target_range > 2 && critter.digging() &&
here.has_flag( ter_furn_flag::TFLAG_DIGGABLE, critter.pos() ) ) ||
( critter.has_flag( mon_flag_CAMOUFLAGE ) && target_range > this->get_eff_per() ) ||
Expand Down

0 comments on commit c262eeb

Please sign in to comment.