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:
10
complex.cpp
10
complex.cpp
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user