1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2024-11-27 06:27:17 +00:00

Raging Bulls generated from Herd Bulls crashing into walls offscreen no longer permanently block the way when offscreen

This commit is contained in:
Zeno Rogue 2021-05-30 11:56:26 +02:00
parent c9a3dde67b
commit 1fb1f614de

View File

@ -3272,6 +3272,11 @@ EX namespace prairie {
if(!shmup::on) for(int q=qty-2; q>=0; q--) {
cell *cp = whirlline[q];
cell *cn = whirlline[q+1];
/* just pretend the roadblocks disappear */
if(cn->monst == moRagingBull && cn->cpdist == INFD && cn->stuntime) {
cn->stuntime--;
if(cn->stuntime == 0) cn->monst = moNone;
}
if(cp->monst == moHerdBull && !cp->stuntime) {
cp->mondir = neighborId(cp, cn);
beastAttack(cp, true, true);