striking ID followup part 2

- test WoStriking after activating statue, not before
This commit is contained in:
cohrs
2002-04-01 16:51:10 +00:00
parent e5111e7587
commit a74ae204cf

View File

@@ -1684,8 +1684,8 @@ 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 && obj->otyp == WAN_STRIKING &&
activate_statue_trap(t, tx, ty, TRUE))
if (t && t->ttyp == STATUE_TRAP &&
activate_statue_trap(t, tx, ty, TRUE) && obj->otyp == WAN_STRIKING)
makeknown(obj->otyp);
}