… | |
… | |
1921 | if (magic && did_make_save (op, op->level, 0)) |
1921 | if (magic && did_make_save (op, op->level, 0)) |
1922 | maxdam = maxdam / 2; |
1922 | maxdam = maxdam / 2; |
1923 | |
1923 | |
1924 | attack_message (maxdam, maxattacktype, op, hitter); |
1924 | attack_message (maxdam, maxattacktype, op, hitter); |
1925 | |
1925 | |
1926 | if (op->type == DOOR && maxdam > 0) { LOG (llevDebug, "DOOR WAS HIT: %d BY %s\n", maxdam, hitter->debug_desc ()); } |
|
|
1927 | op->stats.hp -= maxdam; |
1926 | op->stats.hp -= maxdam; |
1928 | |
1927 | |
1929 | /* Eneq(@csd.uu.se): Check to see if monster runs away. */ |
1928 | /* Eneq(@csd.uu.se): Check to see if monster runs away. */ |
1930 | if ((op->stats.hp >= 0) && |
1929 | if ((op->stats.hp >= 0) && |
1931 | (QUERY_FLAG (op, FLAG_MONSTER) || op->type == PLAYER) && |
1930 | (QUERY_FLAG (op, FLAG_MONSTER) || op->type == PLAYER) && |