v1.3.1: fixed Hero.Doom.onDeath() not being triggered when hero dies
This commit is contained in:
@@ -1775,7 +1775,11 @@ public class Hero extends Char {
|
|||||||
Sample.INSTANCE.play( Assets.Sounds.DEATH );
|
Sample.INSTANCE.play( Assets.Sounds.DEATH );
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|
||||||
|
if (cause instanceof Hero.Doom) {
|
||||||
|
((Hero.Doom)cause).onDeath();
|
||||||
|
}
|
||||||
|
|
||||||
Dungeon.deleteGame( GamesInProgress.curSlot, true );
|
Dungeon.deleteGame( GamesInProgress.curSlot, true );
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user