Opened 7 years ago

Closed 6 years ago

#1755 closed bug (fixed (in master))

Pushing or trampling should reveal mimics

Reported by: PowerWyrm Owned by: fizzix
Milestone: 3.5.0 Keywords:


"You see a Potion of Speed. The Fire Elemental tramples over the Potion Mimic."

"You see a Potion of Speed. The 2-headed hydra pushes past the Potion Mimic. You see a Potion of Speed."

Easy fix: use become_aware() in process_monster().

if (kill_ok || move_ok) {
		/* Get the names of the monsters involved */
		char m1_name[80];
		char n_name[80];
		monster_desc(m1_name, sizeof(m1_name), m_ptr, MDESC_IND1);
		monster_desc(n_name, sizeof(n_name), n_ptr, MDESC_IND1);

		/* Allow movement */
		do_move = TRUE;

		/* Reveal mimics */
		if (is_mimicking(n_ptr))

		/* Monster ate another monster */
		if (kill_ok) {
			/* Note if visible */
			if (m_ptr->ml && (m_ptr->mflag & (MFLAG_VIEW)))
			msg("%s tramples over %s.", m1_name, n_name);

			delete_monster(ny, nx);
		} else {
			/* Note if visible */
			if (m_ptr->ml && (m_ptr->mflag & (MFLAG_VIEW)))
			msg("%s pushes past %s.", m1_name, n_name);

Change History (3)

comment:1 Changed 7 years ago by takkaria

  • Milestone changed from Triage to 3.5.0

comment:2 Changed 7 years ago by fizzix

  • Owner set to fizzix
  • Status changed from new to assigned

comment:3 Changed 6 years ago by takkaria

  • Resolution set to fixed (in master)
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.