1
0
mirror of https://github.com/zenorogue/hyperrogue.git synced 2025-01-13 10:50:35 +00:00

bulls are now enraged by crossbow shots

This commit is contained in:
Zeno Rogue 2023-12-02 09:32:50 +01:00
parent 2a892012b2
commit 9ca0993d6f

View File

@ -360,10 +360,19 @@ EX void shoot() {
mirror::breakMirror(mov.next, -1); mirror::breakMirror(mov.next, -1);
eMonster m = c->monst; eMonster m = c->monst;
if(!m || isMimic(m)) continue; if(!m || isMimic(m)) continue;
if(!canAttack(cf, who, c, m, attackflags)) { if(!canAttack(cf, who, c, m, attackflags)) {
pcmove pcm; pcm.mi = movei(mov.prev).rev(); if(among(m, moSleepBull, moHerdBull)) {
pcm.tell_why_cannot_attack(); addMessage(XLAT("%The1 is enraged!", m));
continue; c->monst = moRagingBull;
hit_anything = true;
continue;
}
else {
pcmove pcm; pcm.mi = movei(mov.prev).rev();
pcm.tell_why_cannot_attack();
continue;
}
} }
changes.ccell(c); changes.ccell(c);