v3.0.0: fixed crash on artifact recharging when ghost hero is in stasis
This commit is contained in:
+3
-1
@@ -326,7 +326,9 @@ public class DriedRose extends Artifact {
|
|||||||
} else if (ghost.HP < ghost.HT) {
|
} else if (ghost.HP < ghost.HT) {
|
||||||
int heal = Math.round((1 + level()/3f)*amount);
|
int heal = Math.round((1 + level()/3f)*amount);
|
||||||
ghost.HP = Math.min( ghost.HT, ghost.HP + heal);
|
ghost.HP = Math.min( ghost.HT, ghost.HP + heal);
|
||||||
ghost.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(heal), FloatingText.HEALING);
|
if (ghost.sprite != null) {
|
||||||
|
ghost.sprite.showStatusWithIcon(CharSprite.POSITIVE, Integer.toString(heal), FloatingText.HEALING);
|
||||||
|
}
|
||||||
updateQuickslot();
|
updateQuickslot();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user