drain energy attack (trunk only)
During some recent newsgroup discussion, <Someone> posted an entry from his personal bug list: energy draining damage from ordinary attacks is implemented even though there are no monsters with that capability and it was not implemented for engulf attacks even though energy vortices have the capability. This implements energy drain engulf attacks against the hero and also both modes of energy drain attacks for monsters and poly'd hero against spellcasting monsters. Since monsters don't have energy, they lose access to their special abilities (their spells, that is) for a few turns, same as a post-3.4.3 change done for anti-magic traps.
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
/* SCCS Id: @(#)mhitu.c 3.5 2007/06/02 */
|
||||
/* SCCS Id: @(#)mhitu.c 3.5 2007/12/19 */
|
||||
/* Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1985. */
|
||||
/* NetHack may be freely redistributed. See license for details. */
|
||||
|
||||
@@ -1802,6 +1802,12 @@ gulpmu(mtmp, mattk) /* monster swallows you, or damage if u.uswallow */
|
||||
case AD_DISE:
|
||||
if (!diseasemu(mtmp->data)) tmp = 0;
|
||||
break;
|
||||
case AD_DREN:
|
||||
/* AC magic cancellation doesn't help when engulfed */
|
||||
if (!mtmp->mcan && rn2(4))
|
||||
drain_en(tmp);
|
||||
tmp = 0;
|
||||
break;
|
||||
default:
|
||||
physical_damage = TRUE;
|
||||
tmp = 0;
|
||||
|
||||
Reference in New Issue
Block a user