summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorBardur Arantsson <bardur@scientician.net>2010-01-09 09:52:57 +0100
committerBardur Arantsson <bardur@scientician.net>2010-01-09 09:52:57 +0100
commitf0e2857d68a36f3db08912de918905e2c53225f3 (patch)
tree55d91e9bd2252d8f5e9284a31fbcc14573813048 /src
parentc86e6321a7a31791cd57ae59110cfd7af50974b8 (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')
-rw-r--r--src/xtra1.c2
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))
{