1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-12-31 17:39:03 +00:00

fixed the bug in the Prairie which caused the Bulls not to attack correctly

This commit is contained in:
Zeno Rogue
2019-11-15 11:48:51 +01:00
parent 610d6ee1b3
commit 8bc4cb5207
2 changed files with 8 additions and 12 deletions

View File

@@ -3144,13 +3144,9 @@ EX namespace prairie {
cell *cp = whirlline[q];
cell *cn = whirlline[q+1];
if(cp->monst == moHerdBull && !cp->stuntime) {
forCellEx(c2, cp) {
int flags = AF_GETPLAYER | AF_BULL;
if(c2 != cn) flags |= AF_ONLY_FBUG;
if(canAttack(c, moHerdBull, c2, c2->monst, flags))
attackMonster(c2, flags | AF_MSG, moHerdBull);
}
cp->mondir = neighborId(cp, cn);
beastAttack(cp, true, true);
if(!cn->monst && !isPlayerOn(cn) && passable_for(cp->monst, cn, cp, P_DEADLY))
moveMonster(cn, cp, NODIR);
else {