From fc6ca98f8bb4fd0e9399220a1614bb6847259283 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 04:56:06 +0100 Subject: fix affinity handling Signed-off-by: Olivier Gayot --- actions.c | 5 ++--- 1 file 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(); } -- cgit v1.2.3