mirror of
https://github.com/MrEidam/PetPet.git
synced 2026-04-17 15:43:31 +00:00
Fixed PetPet#001 - when hp 0 boy not dead
This commit is contained in:
2
main.js
2
main.js
@@ -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();
|
||||||
|
|||||||
Reference in New Issue
Block a user