Healing bug

From: Johan Dustler (epkjodu@hmepks1.ericsson.se)
Date: 04/30/96


Hello,

I have found a bug in magic.c mag_points().
When you cast a healing spell on a mortally
wounded nonfighting character, he will still
be mortally wounded even though his hitpoints
are positive.


To fix this, in mag_points() after:

GET_HIT(victim) = MIN(GET_MAX_HIT(victim), GET_HIT(victim) + hit);
GET_MOVE(victim) = MIN(GET_MAX_MOVE(victim), GET_MOVE(victim) + move);

/* add */

update_pos(victim);




-Johan



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