diff options
author | Bardur Arantsson <bardur@scientician.net> | 2010-01-09 09:52:57 +0100 |
---|---|---|
committer | Bardur Arantsson <bardur@scientician.net> | 2010-01-09 09:52:57 +0100 |
commit | f0e2857d68a36f3db08912de918905e2c53225f3 (patch) | |
tree | 55d91e9bd2252d8f5e9284a31fbcc14573813048 /src/xtra1.c | |
parent | c86e6321a7a31791cd57ae59110cfd7af50974b8 (diff) |
Remove pval from antimagic field strength calculation.
It doesn't make sense that an invisible item modifier
(e.g. pval on a plain Dark Sword found lying in the dungeon)
affects the anti-magic field strength. Another example
is the unenchanted Boomerang of Unmagic from Theme -- it
also has an invisible non-zero PVAL.
Signed-off-by: Bardur Arantsson <bardur@scientician.net>
Diffstat (limited to 'src/xtra1.c')
-rw-r--r-- | src/xtra1.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/xtra1.c b/src/xtra1.c index a091f768..37fa8cfe 100644 --- a/src/xtra1.c +++ b/src/xtra1.c @@ -2620,7 +2620,7 @@ void apply_flags(u32b f1, u32b f2, u32b f3, u32b f4, u32b f5, u32b esp, s16b pva if (f4 & (TR4_PRECOGNITION)) p_ptr->precognition = TRUE; - antimagic_mod = to_h + to_d + pval + to_a; + antimagic_mod = to_h + to_d + to_a; if (f4 & (TR4_ANTIMAGIC_50)) { |