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:
parent
fe88d08c25
commit
cc627dc0c3
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue