Thread: Bugs in 4.2.0
View Single Post
Old December 18, 2019, 12:00   #127
PowerWyrm
Prophet
 
PowerWyrm's Avatar
 
Join Date: Apr 2008
Posts: 2,796
PowerWyrm is on a distinguished road
There's a wrong calculation in get_move_find_range() for breathers:

Code:
	if (mon->race->freq_spell > 24) {
		/* Breathers like point blank range */
		if (monster_breathes(mon) && (mon->hp > mon->maxhp / 2)) {
			mon->best_range = MAX(6, mon->best_range);
		} else {
			/* Other spell casters will sit back and cast */
			mon->best_range += 3;
		}
	}
Since breathing is an innate ability, this should be split in two and use the "freq_innate" parameter for breathers.
__________________
PWMAngband variant maintainer - check http://powerwyrm.monsite-orange.fr (or http://www.mangband.org/forum/viewforum.php?f=9) to learn more about this new variant!
PowerWyrm is offline   Reply With Quote