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

correct error message when trying to move from Rock III to a wall

This commit is contained in:
Zeno Rogue 2020-08-20 16:27:33 +02:00
parent 7f636a2a7c
commit 1680693ec9

View File

@ -870,7 +870,7 @@ void pcmove::tell_why_impassable() {
addMessage(XLAT("Wrong color!"));
else if(c2->wall == waRoundTable)
addMessage(XLAT("It would be impolite to land on the table!"));
else if(snakelevel(cwt.at) >= 3 && snakelevel(c2) == 0)
else if(snakelevel(cwt.at) >= 3 && snakelevel(c2) == 0 && !isWall(c2))
addMessage(XLAT("You would get hurt!", c2->wall));
else if(cellEdgeUnstable(cwt.at) && cellEdgeUnstable(c2)) {
addMessage(XLAT("Gravity does not allow this!"));