From 7a7a982b3393cc1f0f2af9b146cc829cff02fcf1 Mon Sep 17 00:00:00 2001 From: Zeno Rogue Date: Fri, 17 Jun 2022 10:27:02 +0200 Subject: [PATCH] sword attacks reflect in mirrors --- complex.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/complex.cpp b/complex.cpp index 2e1b66a8..2bf761c5 100644 --- a/complex.cpp +++ b/complex.cpp @@ -2834,7 +2834,9 @@ EX namespace sword { if(s<0) s += sword_angles * 2; s *= t; s /= (sword_angles * 2); - return c->move(s); + auto c1 = c->move(s); + if(inmirror(c1)) c1 = mirror::reflect(c1).at; + return c1; } EX cell *pos(cell *c, const sworddir& sd, bool rev) {