Fixed PetPet#001 - when hp 0 boy not dead

This commit is contained in:
2024-09-17 15:59:02 +02:00
parent 8b70f35e67
commit 524753e5b7

View File

@@ -186,6 +186,8 @@ function display(){
Aimg.src = getDeadImage(); Aimg.src = getDeadImage();
} }
if(attributes.Hp.value<attributes.Hp.min) attributes.Life.dead = 1;
if(attributes.Life.dead){ if(attributes.Life.dead){
btnHide(); btnHide();
Aimg.src = animalImage.animal.Dead(); Aimg.src = animalImage.animal.Dead();