slime runs away when it gets hit

This commit is contained in:
2025-11-30 00:49:04 +01:00
parent 2ed21add1c
commit 43212a033b
3 changed files with 7 additions and 1 deletions

View File

@@ -155,6 +155,7 @@ public class Player extends Entity {
panel.monster[index].life -= 1;
panel.playSE(5);
panel.monster[index].invincible = true;
panel.monster[index].damageReaction();
if(panel.monster[index].life <= 0) panel.monster[index].dying = true;
}