1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-07-31 01:42:24 +01:00

Make sure stunned doesn't overflow (should never trigger)

This commit is contained in:
ChrisANG 2021-05-04 17:29:50 -04:00
parent 4cf7989ed4
commit a7d5cbae6e

View file

@ -3742,7 +3742,7 @@ cthulhu_mind_blast()
if(Half_spell_damage) dmg = (dmg+1) / 2;
if(u.uvaul_duration) dmg = (dmg + 1) / 2;
losehp(dmg, "psychic blast", KILLED_BY_AN);
make_stunned(HStun + dmg*10, TRUE);
make_stunned(itimeout_incr(HStun, dmg*10), TRUE);
if (Sleep_resistance){
if(!on_level(&rlyeh_level,&u.uz)) fall_asleep(-1*dmg, TRUE);
if(!rn2(10)) change_usanity(-1, FALSE);