Sunsword #invoke, directed at self

Give a resistance animation if you #invoke Sunsword while it's
wielded and direct its blinding ray at yourself.  Flashing a camera
at a monster who is wielding it will also produce the animation.
This commit is contained in:
PatR
2024-04-19 10:50:46 -07:00
parent aaea81c6ac
commit 9d71c8e1f4
6 changed files with 60 additions and 33 deletions

View File

@@ -1942,7 +1942,8 @@ arti_invoke(struct obj *obj)
if (vulnerable) /* could be fatal if Unchanging */
(void) lightdamage(obj, TRUE, 2 * damg);
if (!flashburn((long) (damg + rnd(damg))) && !vulnerable)
if (!flashburn((long) (damg + rnd(damg)), FALSE)
&& !vulnerable)
pline("%s", nothing_seems_to_happen);
}
} else {