v1.3.1: fixed Hero.Doom.onDeath() not being triggered when hero dies

This commit is contained in:
Evan Debenham
2022-07-07 17:03:15 -04:00
parent 52cc341c69
commit d406df6d6b

View File

@@ -1775,7 +1775,11 @@ public class Hero extends Char {
Sample.INSTANCE.play( Assets.Sounds.DEATH );
}
});
if (cause instanceof Hero.Doom) {
((Hero.Doom)cause).onDeath();
}
Dungeon.deleteGame( GamesInProgress.curSlot, true );
}