… | |
… | |
1666 | maxdam = maxdam / 2; |
1666 | maxdam = maxdam / 2; |
1667 | |
1667 | |
1668 | attack_message (maxdam, maxattacktype, op, hitter); |
1668 | attack_message (maxdam, maxattacktype, op, hitter); |
1669 | |
1669 | |
1670 | op->stats.hp -= maxdam; |
1670 | op->stats.hp -= maxdam; |
1671 | max_it (op->stats.hp, 0);//D |
|
|
1672 | |
1671 | |
1673 | /* Eneq(@csd.uu.se): Check to see if monster runs away. */ |
1672 | /* Eneq(@csd.uu.se): Check to see if monster runs away. */ |
1674 | if (op->stats.hp >= 0 |
1673 | if (op->stats.hp >= 0 |
1675 | && (QUERY_FLAG (op, FLAG_MONSTER) || op->type == PLAYER) |
1674 | && (QUERY_FLAG (op, FLAG_MONSTER) || op->type == PLAYER) |
1676 | && op->stats.hp * 100 < op->stats.maxhp * op->run_away) |
1675 | && op->stats.hp * 100 < op->stats.maxhp * op->run_away) |