Sunsword vs shades, take II (trunk only)
From the newsgroup: Sunsword is ineffective against shades. It gets a special bonus of double damage vs undead, but since it's not made of silver it was only doing 1 point of damage against shades. Make the bonus-vs-undead attribute override the silver-required criterion. (No comparable handling for flimsy weapons against thick-skinned critters this time.)
This commit is contained in:
@@ -611,7 +611,7 @@ int thrown; /* HMON_xxx (0 => hand-to-hand, other => ranged) */
|
||||
(is_ammo(obj) && (thrown != HMON_THROWN ||
|
||||
!ammo_and_launcher(obj, uwep)))) {
|
||||
/* then do only 1-2 points of damage */
|
||||
if (mdat == &mons[PM_SHADE] && obj->otyp != SILVER_ARROW)
|
||||
if (mdat == &mons[PM_SHADE] && !shade_glare(obj))
|
||||
tmp = 0;
|
||||
else
|
||||
tmp = rnd(2);
|
||||
|
||||
Reference in New Issue
Block a user