… | |
… | |
417 | } |
417 | } |
418 | |
418 | |
419 | if (QUERY_FLAG (op, FLAG_MONSTER)) |
419 | if (QUERY_FLAG (op, FLAG_MONSTER)) |
420 | { |
420 | { |
421 | if (op->stats.hp > op->stats.maxhp) |
421 | if (op->stats.hp > op->stats.maxhp) |
|
|
422 | { |
422 | LOG (llevDebug, "Monster %s has hp set higher than maxhp (%d>%d)\n", op->debug_desc (), op->stats.hp, op->stats.maxhp); |
423 | LOG (llevDebug, "Monster %s has hp set higher than maxhp (%d>%d)\n", op->debug_desc (), op->stats.hp, op->stats.maxhp); |
|
|
424 | op->stats.maxhp = op->stats.hp; |
|
|
425 | } |
423 | |
426 | |
424 | /* The archs just need to be updated for this */ |
427 | /* The archs just need to be updated for this */ |
425 | if (op->move_type == 0) |
428 | if (op->move_type == 0) |
426 | op->move_type = MOVE_WALK; |
429 | op->move_type = MOVE_WALK; |
427 | } |
430 | } |