striking ID followup

- only ID wand of striking, not spellbook of force bolt, seeing the spell
cast does not make the book known
This commit is contained in:
cohrs
2002-04-01 15:32:51 +00:00
parent a0ba9d1421
commit e5111e7587

View File

@@ -1684,7 +1684,7 @@ bhitpile(obj,fhito,tx,ty)
because that last call might end up operating on our `next_obj'
(below), rather than on the current object, if it happens to
encounter a statue which mustn't become animated. */
if (t && t->ttyp == STATUE_TRAP &&
if (t && t->ttyp == STATUE_TRAP && obj->otyp == WAN_STRIKING &&
activate_statue_trap(t, tx, ty, TRUE))
makeknown(obj->otyp);
}