v1.4.3: fixed boss health bar not appearing or bleeding in some cases
This commit is contained in:
@@ -139,6 +139,9 @@ public class DwarfKing extends Mob {
|
|||||||
lastAbility = bundle.getInt( LAST_ABILITY );
|
lastAbility = bundle.getInt( LAST_ABILITY );
|
||||||
|
|
||||||
if (phase == 2) properties.add(Property.IMMOVABLE);
|
if (phase == 2) properties.add(Property.IMMOVABLE);
|
||||||
|
|
||||||
|
BossHealthBar.assignBoss(this);
|
||||||
|
if (phase == 3) BossHealthBar.bleed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
+5
-1
@@ -191,6 +191,7 @@ public class YogDzewa extends Mob {
|
|||||||
yell(Messages.get(this, "hope"));
|
yell(Messages.get(this, "hope"));
|
||||||
summonCooldown = -15; //summon a burst of minions!
|
summonCooldown = -15; //summon a burst of minions!
|
||||||
phase = 5;
|
phase = 5;
|
||||||
|
BossHealthBar.bleed(true);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (phase == 0){
|
if (phase == 0){
|
||||||
@@ -593,7 +594,10 @@ public class YogDzewa extends Mob {
|
|||||||
public void restoreFromBundle(Bundle bundle) {
|
public void restoreFromBundle(Bundle bundle) {
|
||||||
super.restoreFromBundle(bundle);
|
super.restoreFromBundle(bundle);
|
||||||
phase = bundle.getInt(PHASE);
|
phase = bundle.getInt(PHASE);
|
||||||
if (phase != 0) BossHealthBar.assignBoss(this);
|
if (phase != 0) {
|
||||||
|
BossHealthBar.assignBoss(this);
|
||||||
|
if (phase == 5) BossHealthBar.bleed(true);
|
||||||
|
}
|
||||||
|
|
||||||
abilityCooldown = bundle.getFloat(ABILITY_CD);
|
abilityCooldown = bundle.getFloat(ABILITY_CD);
|
||||||
summonCooldown = bundle.getFloat(SUMMON_CD);
|
summonCooldown = bundle.getFloat(SUMMON_CD);
|
||||||
|
|||||||
Reference in New Issue
Block a user