mind flayer vs ghost (trunk only)
There's newsgroup discussion about a mind flayer sucking the brains of a ghost, plus speculation that the fix for C343-121 has already taken care of it. I agree with them that ghost's brains are too insubstantial to be hit by brainsuck damage from mind flayers' tentacles. C343-121 is vague enough to cover this; the corresponding fixes entry was more specific and is augmented here.
This commit is contained in:
@@ -468,7 +468,12 @@ int *dmg_p; /* for dishing out extra damage in lieu of Int loss */
|
||||
boolean give_nutrit = FALSE;
|
||||
int result = MM_HIT, xtra_dmg = rnd(10);
|
||||
|
||||
if (magr == &youmonst) {
|
||||
if (noncorporeal(pd)) {
|
||||
if (visflag)
|
||||
pline("%s brain is unharmed.",
|
||||
(mdef == &youmonst) ? "Your" : s_suffix(mon_nam(mdef)));
|
||||
return MM_MISS; /* side-effects can't occur */
|
||||
} else if (magr == &youmonst) {
|
||||
You("eat %s brain!", s_suffix(mon_nam(mdef)));
|
||||
} else if (mdef == &youmonst) {
|
||||
Your("brain is eaten!");
|
||||
|
||||
Reference in New Issue
Block a user