Take damage if ending charge on a damaging object

- Currently, ending charge in fire or smoke doesn't damage the player
This commit is contained in:
Linus Probert 2018-09-11 15:47:14 +02:00
parent fe88d08c25
commit cc627dc0c3
1 changed files with 6 additions and 0 deletions

View File

@ -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;
}