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:
parent
fc93e30cd7
commit
8e4df1f145
1 changed files with 16 additions and 0 deletions
16
src/xhity.c
16
src/xhity.c
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue