summaryrefslogtreecommitdiff
path: root/magies.c
diff options
context:
space:
mode:
authorOlivier Gayot <duskcoder@gmail.com>2015-01-08 04:55:31 +0100
committerOlivier Gayot <duskcoder@gmail.com>2015-01-08 05:30:36 +0100
commit0cc5b8230f7e74db0cb644cfc62bce56e0cd256c (patch)
treebde7f53d927fe2d0fe973144911f1c8d9fe15ca2 /magies.c
parent8dea50c02d5b04221488fb8d4b0719e373e7f9d0 (diff)
update the damages handling
Signed-off-by: Olivier Gayot <duskcoder@gmail.com>
Diffstat (limited to 'magies.c')
-rw-r--r--magies.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/magies.c b/magies.c
index c17f569..13c98eb 100644
--- a/magies.c
+++ b/magies.c
@@ -53,8 +53,8 @@ enum action_state_t Fmagieelement (SURFACES *surfaces,POSITIONS *positions, stru
degats = compute_damages(&ally->chrs[ally->chr_cur], target, DAMAGES_MAGICAL, element);
- damage_target_hp(surfaces, target, degats);
+ damage_target_hp(surfaces, positions, target, degats);
SDL_Flip(surfaces->Pecran);
ret = ACTION_PERFORMED;
@@ -121,7 +121,7 @@ enum action_state_t Fmagiesoin(SURFACES *surfaces,POSITIONS *positions, struct t
soins = compute_cure(&ally->chrs[ally->chr_cur], target);
- cure_target_hp(surfaces, target, soins);
+ cure_target_hp(surfaces, positions, target, soins);
SDL_Flip (surfaces->Pecran);