mirror of
https://github.com/zenorogue/hyperrogue.git
synced 2025-01-14 11:15:48 +00:00
bulls are now enraged by crossbow shots
This commit is contained in:
parent
2a892012b2
commit
9ca0993d6f
@ -360,11 +360,20 @@ 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)) {
|
||||||
|
if(among(m, moSleepBull, moHerdBull)) {
|
||||||
|
addMessage(XLAT("%The1 is enraged!", m));
|
||||||
|
c->monst = moRagingBull;
|
||||||
|
hit_anything = true;
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
else {
|
||||||
pcmove pcm; pcm.mi = movei(mov.prev).rev();
|
pcmove pcm; pcm.mi = movei(mov.prev).rev();
|
||||||
pcm.tell_why_cannot_attack();
|
pcm.tell_why_cannot_attack();
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
changes.ccell(c);
|
changes.ccell(c);
|
||||||
|
|
||||||
bool push = (items[itCurseWeakness] || (isStunnable(c->monst) && c->hitpoints > 1));
|
bool push = (items[itCurseWeakness] || (isStunnable(c->monst) && c->hitpoints > 1));
|
||||||
|
Loading…
Reference in New Issue
Block a user