From 71088e9a1c8c9a94f78ecc9308de8961d90b39a1 Mon Sep 17 00:00:00 2001 From: Jesse Ruderman Date: Fri, 9 Jul 2021 23:10:44 -0700 Subject: [PATCH] Add missing 'cannot attack' messages --- pcmove.cpp | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pcmove.cpp b/pcmove.cpp index e15a1d42..fb2c8f17 100644 --- a/pcmove.cpp +++ b/pcmove.cpp @@ -785,6 +785,12 @@ void pcmove::tell_why_cannot_attack() { addMessage(XLAT("You can only push this die if the highest number would be on the top!")); else if(c2->monst == moAngryDie) addMessage(XLAT("This die is really angry at you!")); + else if((attackflags & AF_WEAK) && isIvy(c2)) + addMessage(XLAT("You are too weakened to attack %the1!", c2->monst)); + else if(isWorm(cwt.at->monst) && isWorm(c2->monst) && wormhead(cwt.at) == wormhead(c2) && cwt.at->monst != moTentacleGhost && c2->monst != moTentacleGhost) + addMessage(XLAT("You cannot attack your own mount!")); + else if(checkOrb(c2->monst, itOrbShield)) + addMessage(XLAT("A magical shield protects %the1!", c2->monst)); else addMessage(XLAT("For some reason... cannot attack!")); }