sword attacks reflect in mirrors

This commit is contained in:
Zeno Rogue 2022-06-17 10:27:02 +02:00
parent 9ae7bb3d7b
commit 7a7a982b33
1 changed files with 3 additions and 1 deletions

View File

@ -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) {