From 9ca0993d6fb5f88205c9dc38c46c6232bd0b3cba Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Sat, 2 Dec 2023 09:32:50 +0100 Subject: [PATCH] bulls are now enraged by crossbow shots --- crossbow.cpp | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/crossbow.cpp b/crossbow.cpp index 879cdcc5..4d6381ce 100644 --- a/crossbow.cpp +++ b/crossbow.cpp @@ -360,10 +360,19 @@ EX void shoot() { mirror::breakMirror(mov.next, -1); eMonster m = c->monst; if(!m || isMimic(m)) continue; + if(!canAttack(cf, who, c, m, attackflags)) { - pcmove pcm; pcm.mi = movei(mov.prev).rev(); - pcm.tell_why_cannot_attack(); - continue; + 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(); + pcm.tell_why_cannot_attack(); + continue; + } } changes.ccell(c);