Prevent blinding ray at yourself

The code doesn't handle zapping blinding ray at yourself;
maybe it should be changed to handle it, but for now just
prevent Sunsword blinding the hero.
This commit is contained in:
Pasi Kallinen
2024-03-31 20:23:57 +03:00
parent c71e8ec8d4
commit 44575ab347

View File

@@ -1917,7 +1917,7 @@ arti_invoke(struct obj *obj)
break;
}
case BLINDING_RAY:
if (getdir((char *) 0))
if (getdir((char *) 0) && (u.dx || u.dy))
do_blinding_ray(obj);
break;
}