From cc627dc0c3649b2b645ff8758523b064424bd093 Mon Sep 17 00:00:00 2001 From: Linus Probert Date: Tue, 11 Sep 2018 15:47:14 +0200 Subject: [PATCH] Take damage if ending charge on a damaging object - Currently, ending charge in fire or smoke doesn't damage the player --- src/skill.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/skill.c b/src/skill.c index a27d432..1bcc680 100644 --- a/src/skill.c +++ b/src/skill.c @@ -499,6 +499,12 @@ skill_charge(Skill *skill, SkillData *data) else if (destSpace->trap) trap_activate(destSpace->trap, player); + LinkedList *objects = destSpace->objects; + while (objects) { + object_damage(objects->data, player); + objects = objects->next; + } + return true; }