From 0cc5b8230f7e74db0cb644cfc62bce56e0cd256c Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Thu, 8 Jan 2015 04:55:31 +0100 Subject: update the damages handling Signed-off-by: Olivier Gayot --- actions.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'actions.c') diff --git a/actions.c b/actions.c index 59c3b5c..9f22dc8 100644 --- a/actions.c +++ b/actions.c @@ -54,7 +54,7 @@ enum action_state_t Fattaquer(SURFACES *surfaces,POSITIONS *positions, struct te degats = compute_damages(&ally->chrs[ally->chr_cur], target, DAMAGES_PHYSICAL, ELEMENT_NONE); - damage_target_hp(surfaces, target, degats); + damage_target_hp(surfaces, positions, target, degats); SDL_Flip(surfaces->Pecran); @@ -398,7 +398,7 @@ enum action_state_t Fpotion(SURFACES *surfaces,POSITIONS *positions, struct team else if (type == POTIONPLUS) soins = 4000; - cure_target_hp(surfaces, target, soins); + cure_target_hp(surfaces, positions, target, soins); SDL_Flip(surfaces->Pecran); @@ -481,7 +481,7 @@ enum action_state_t Fether(SURFACES *surfaces,POSITIONS *positions, struct team_ else if (type == ETHERPLUS) soins = 40; - cure_target_mp(surfaces, target, soins); + cure_target_mp(surfaces, positions, target, soins); SDL_Flip (surfaces->Pecran); -- cgit v1.2.3