From a1f75a644e0119fa6e31b0a0c852b71f6fc28410 Mon Sep 17 00:00:00 2001 From: Olivier Gayot Date: Sat, 10 Jan 2015 00:52:31 +0100 Subject: added "cyanmure" magic Signed-off-by: Olivier Gayot --- actions.c | 11 +++++++++++ 1 file changed, 11 insertions(+) (limited to 'actions.c') diff --git a/actions.c b/actions.c index ac5cc03..9f02ef2 100644 --- a/actions.c +++ b/actions.c @@ -192,3 +192,14 @@ void use_ether(SURFACES *surfaces, POSITIONS *positions, struct character_t *src { __use_ether(surfaces, positions, src, dest->chr, *((int *)data)); } + +void cyanure(SURFACES *surfaces, POSITIONS *positions, struct character_t *src, struct target_t *dest, void *data) +{ + struct character_t *target = dest->chr; + + (void) data; + (void) src; + + damage_target_hp(surfaces, positions, target, target->max_hp / 4); + target->poisoned = true; +} -- cgit v1.2.3