diff options
author | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 04:56:06 +0100 |
---|---|---|
committer | Olivier Gayot <duskcoder@gmail.com> | 2015-01-08 05:30:38 +0100 |
commit | fc6ca98f8bb4fd0e9399220a1614bb6847259283 (patch) | |
tree | 05723f325affb5f2d2e5034ea07efa81f4262859 /actions.c | |
parent | 0cc5b8230f7e74db0cb644cfc62bce56e0cd256c (diff) |
fix affinity handling
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'actions.c')
-rw-r--r-- | actions.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -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(); } |