Opened 6 years ago

Closed 6 years ago

#1754 closed bug (fixed (in master))

Wrong message displayed when damaging a "mimicked" object

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

Description

Using a wand of cold balls on a potion will give the following message: "The potion shatters! The potion mimic freezes and shatters!"

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

	/* Artifacts, and other objects, get to resist */
	if (is_art || ignore)
	{
		/* Observe the resist */
		if (o_ptr->marked && !squelch_item_ok(o_ptr))
		{
			msg("The %s %s unaffected!",
				o_name, (plural ? "are" : "is"));
		}
	}

	/* Reveal mimics */
	else if (o_ptr->mimicking_m_idx)
                become_aware(cave_monster(cave, o_ptr->mimicking_m_idx));
	

	/* Kill it */
	else
	{
		/* Describe if needed */
		if (o_ptr->marked && note_kill && !squelch_item_ok(o_ptr))
		{
			msgt(MSG_DESTROY, "The %s%s", o_name, note_kill);
		}

		/* Delete the object */
		delete_object_idx(this_o_idx);

		/* Redraw */
		cave_light_spot(cave, y, x);
	}

Change History (2)

comment:1 Changed 6 years ago by takkaria

  • Milestone changed from Triage to 3.5.0

comment:2 Changed 6 years ago by takkaria

  • Resolution set to fixed (in master)
  • Status changed from new to closed

Fixed in b020e2c, pull request https://github.com/angband/angband/pull/276

Note: See TracTickets for help on using tickets.