version 1.96 | | version 1.97 |
---|
| | |
/* | | /* |
* static char *rcsid_monster_c = | | * static char *rcsid_monster_c = |
* "$Id: monster.c,v 1.96 2006/01/07 18:30:05 akirschbaum Exp $"; | | * "$Id: monster.c,v 1.97 2006/03/14 15:33:28 ryo_saeba Exp $"; |
*/ | | */ |
| | |
/* | | /* |
| | |
/* Eating food gets hp back */ | | /* Eating food gets hp back */ |
else if (item->type == FOOD && mon->will_apply & WILL_APPLY_FOOD) flag=1; | | else if (item->type == FOOD && mon->will_apply & WILL_APPLY_FOOD) flag=1; |
else if (item->type == SCROLL && QUERY_FLAG(mon, FLAG_USE_SCROLL)) { | | else if (item->type == SCROLL && QUERY_FLAG(mon, FLAG_USE_SCROLL)) { |
if (monster_should_cast_spell(mon, item->inv)) | | if (!item->inv) |
| | LOG(llevDebug,"Monster %d having scroll %d with empty inventory!", mon->count, item->count); |
| | else if (monster_should_cast_spell(mon, item->inv)) |
SET_FLAG(mon, FLAG_READY_SCROLL); | | SET_FLAG(mon, FLAG_READY_SCROLL); |
/* Don't use it right now */ | | /* Don't use it right now */ |
return; | | return; |