1
0
Fork 0
mirror of https://codeberg.org/noisytoot/notnotdnethack.git synced 2025-08-05 12:15:26 +01:00

Handle quivering blobs' passive

This commit is contained in:
NeroOneTrueKing 2021-08-18 12:40:42 -05:00
parent fc93e30cd7
commit 8e4df1f145

View file

@ -15871,6 +15871,22 @@ boolean endofchain; /* if the passive is occuring at the end of aggressor's at
if (newres&MM_DEF_LSVD)
result |= MM_AGR_STOP; /* attacker lifesaved */
break;
case AD_PHYS:
/* no message, just damage, not reduced by DR */
if (Half_phys(magr))
dmg = (dmg + 1) / 2;
if (youagr && u.uvaul_duration)
dmg = (dmg + 1) / 2;
if (dmg < 1)
dmg = 1;
newres = xdamagey(mdef, magr, &noattack, dmg);
if (newres&MM_DEF_DIED)
result |= MM_AGR_DIED; /* attacker died */
if (newres&MM_DEF_LSVD)
result |= MM_AGR_STOP; /* attacker lifesaved */
break;
case AD_EACD:
case AD_ACID: