monster doesn't deal damage while dying anymore
This commit is contained in:
@@ -111,6 +111,7 @@ public class Player extends Entity {
|
||||
public void interactMonster(int index) {
|
||||
if(index == 999) return;
|
||||
if(invincible) return;
|
||||
if(panel.monster[index].dying || !panel.monster[index].alive) return;
|
||||
life -= 1;
|
||||
panel.playSE(6);
|
||||
invincible = true;
|
||||
|
||||
Reference in New Issue
Block a user