diff options
author | Fate <fate-tmw@googlemail.com> | 2009-01-11 13:19:22 -0700 |
---|---|---|
committer | Fate <fate-tmw@googlemail.com> | 2009-01-11 13:19:22 -0700 |
commit | 82038bc12ebbf8f44fd0e3ae390e0d94b42be258 (patch) | |
tree | e68af66686ccf490ed22029e41d5d0c18b2e05d2 /src/map | |
parent | c6daaedc955ab781f117ccdb8c906b924ce9be59 (diff) | |
download | tmwa-82038bc12ebbf8f44fd0e3ae390e0d94b42be258.tar.gz tmwa-82038bc12ebbf8f44fd0e3ae390e0d94b42be258.tar.bz2 tmwa-82038bc12ebbf8f44fd0e3ae390e0d94b42be258.tar.xz tmwa-82038bc12ebbf8f44fd0e3ae390e0d94b42be258.zip |
Report misses if an injure operation has an effect of zero
Diffstat (limited to 'src/map')
-rw-r--r-- | src/map/magic-stmt.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/map/magic-stmt.c b/src/map/magic-stmt.c index 153d380..15e00e4 100644 --- a/src/map/magic-stmt.c +++ b/src/map/magic-stmt.c @@ -659,12 +659,10 @@ op_injure(env_t *env, int args_nr, val_t *args) if (damage_caused < 0) damage_caused = 0; - if (damage_caused || mp_damage) { - // display damage first, because dealing damage may deallocate the target. - clif_damage(caster, target, gettick(), - 0, 0, damage_caused, 0, 0, 0); - battle_damage(caster, target, damage_caused, mp_damage); - } + // display damage first, because dealing damage may deallocate the target. + clif_damage(caster, target, gettick(), + 0, 0, damage_caused, 0, 0, 0); + battle_damage(caster, target, damage_caused, mp_damage); return 0; } |