summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 04:56:06 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 05:30:38 +0100
commitfc6ca98f8bb4fd0e9399220a1614bb6847259283 (patch)
tree05723f325affb5f2d2e5034ea07efa81f4262859
parent0cc5b8230f7e74db0cb644cfc62bce56e0cd256c (diff)
fix affinity handling
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
-rw-r--r--actions.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/actions.c b/actions.c
index 9f22dc8..d1ebab1 100644
--- a/actions.c
+++ b/actions.c
@@ -101,12 +101,11 @@ int compute_damages(const struct character_t *src, const struct character_t *des
case AFFINITY_RESISTANCE:
avg /= 2;
break;
- case AFFINITY_INVULNERABILITY:
- avg = 0;
- break;
case AFFINITY_ABSORPTION:
avg = -avg;
break;
+ case AFFINITY_NONE:
+ break;
default:
abort();
}