diff options
-rw-r--r-- | src/Sequence/Contact/Types.hs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/Sequence/Contact/Types.hs b/src/Sequence/Contact/Types.hs index 1d057fd..ca7da1f 100644 --- a/src/Sequence/Contact/Types.hs +++ b/src/Sequence/Contact/Types.hs | |||
@@ -204,7 +204,7 @@ absorb armor dType (Finite -> dmg) = fmap ensureFinite <$> absorb' Map.empty dTy | |||
204 | wArmor :: DamageType -> FormulaM Stats Int' | 204 | wArmor :: DamageType -> FormulaM Stats Int' |
205 | wArmor Passthrough = 0 | 205 | wArmor Passthrough = 0 |
206 | wArmor Fatigue = 0 | 206 | wArmor Fatigue = 0 |
207 | wArmor Electric = (2 *) . maximum <$> mapM wArmor ([minBound..maxBound] \\ [Electric] :: [DamageType]) | 207 | wArmor Electric = (2 *) . maximum . filter isFinite <$> mapM wArmor ([minBound..maxBound] \\ [Electric] :: [DamageType]) |
208 | wArmor x = armor x | 208 | wArmor x = armor x |
209 | 209 | ||
210 | clamp n | 210 | clamp n |