mirror of
https://github.com/raeleus/Hashtag-DnD.git
synced 2025-07-06 05:30:28 -04:00
Only add characters to initiative if they have health.
This commit is contained in:
parent
cdf33edde7
commit
87019a3ae0
1 changed files with 2 additions and 0 deletions
|
@ -885,10 +885,12 @@ function createInitiativeOrder() {
|
|||
state.initiativeOrder = []
|
||||
|
||||
for (var character of state.characters) {
|
||||
if (character.health <= 0) continue
|
||||
state.initiativeOrder.push(character)
|
||||
}
|
||||
|
||||
for (var enemy of state.enemies) {
|
||||
if (enemy.health <= 0) continue
|
||||
state.initiativeOrder.push(enemy)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue