BUG: TAR_OBJ_EQUIP (fwd)

From: jc (jc@dragonlance.cei.net)
Date: 07/10/96


Where exactly is this code at, can't seem to find it.

In the function:	ACMD(do_cast)

Change:
    if (!target && IS_SET(SINFO.targets, TAR_OBJ_EQUIP)) {
      for (i = 0; !target && i < NUM_WEARS; i++)
	if (GET_EQ(ch, i) && !str_cmp(t, GET_EQ(ch, i)->name)) {
To:
    if (!target && IS_SET(SINFO.targets, TAR_OBJ_EQUIP)) {
      for (i = 0; !target && i < NUM_WEARS; i++)
	if (GET_EQ(ch, i) && isname(t, GET_EQ(ch, i)->name)) {
			     ^^^^^^^
While changing remove_curse to allow equipped objects (due to the
fact you can no longer remove them) I noticed that you couldn't
find the target on Black Rook Armour.  After looking through the
code I noticed that you have to pass the entire 'name' field of
the armor to the spell, in correct order.  Since no mortal should
be able to do that, you might want to make it isname ;)

-George Greer



This archive was generated by hypermail 2b30 : 12/07/00 PST