elunna / NerfHack

The official rewrite of Hack'EM rebased on NetHack 3.7
3 stars 0 forks source link

gaze attack 12? #9

Closed elunna closed 10 months ago

elunna commented 10 months ago

The bloodshot eye seems to not have handling for when the player is polyd into one and uses the #monster ability.

Suddenly, the dungeon collapses.
gaze attack 12?
  Generating more information you may report:

Program received signal SIGABRT, Aborted.
__pthread_kill_implementation (no_tid=0, signo=6, threadid=140737339570112) at ./nptl/pthread_kill.c:44
44  ./nptl/pthread_kill.c: No such file or directory.
(gdb) bt
#0  __pthread_kill_implementation (no_tid=0, signo=6, threadid=140737339570112)
    at ./nptl/pthread_kill.c:44
#1  __pthread_kill_internal (signo=6, threadid=140737339570112)
    at ./nptl/pthread_kill.c:78
#2  __GI___pthread_kill (threadid=140737339570112, signo=signo@entry=6)
    at ./nptl/pthread_kill.c:89
#3  0x00007ffff7282476 in __GI_raise (sig=sig@entry=6)
    at ../sysdeps/posix/raise.c:26
#4  0x00007ffff72687f3 in __GI_abort () at ./stdlib/abort.c:79
#5  0x00005555559411a6 in NH_abort (why=0x7fffffffd3e0 "gaze attack 12?")
    at end.c:212
#6  0x0000555555943f55 in panic (str=0x55555602c040 "%s") at end.c:946
#7  0x0000555555be8424 in impossible (s=0x55555602ee00 "gaze attack %d?")
    at pline.c:532
#8  0x0000555555bf7d7a in dogaze () at polyself.c:1620
#9  0x00005555557ea14a in domonability () at cmd.c:924
#10 0x00005555558049d7 in rhack (
    cmd=0x5555562f561c <gc+2332> <incomplete sequence \355>) at cmd.c:5007
#11 0x000055555576aeb9 in moveloop_core () at allmain.c:521
#12 0x000055555576b478 in moveloop (resuming=0 '\000') at allmain.c:574
#13 0x0000555555e6c727 in main (argc=4, argv=0x7fffffffe4a8)
    at ../sys/unix/unixmain.c:310

(gdb) p u.umonster
$1 = 366
(gdb) p u.umonnum
$2 = 35 (bloodshot eye)