Reduce armour and spellshield bars during combat

This commit is contained in:
Mashy
2019-01-15 12:02:30 +10:00
parent 2d918af744
commit 6b4662dd2f
4 changed files with 28 additions and 11 deletions
+1 -1
View File
@@ -78,7 +78,7 @@ class StatBar extends Phaser.GameObjects.Graphics {
} else {
this.val = (this.val - value > this.max) ? this.max : this.val -= value;
}
if (this.val === 0) this.crypObj.setKo();
if (this.val === 0 && this.type === 'HP') this.crypObj.setKo();
this.drawStatBar();
}
}