v3.3.0: fixed a NPE caused by dried rose ghost tweak
This commit is contained in:
@@ -581,9 +581,11 @@ public class DriedRose extends Artifact {
|
|||||||
private void updateRose(){
|
private void updateRose(){
|
||||||
if (rose == null) {
|
if (rose == null) {
|
||||||
rose = Dungeon.hero.belongings.getItem(DriedRose.class);
|
rose = Dungeon.hero.belongings.getItem(DriedRose.class);
|
||||||
|
if (rose != null) {
|
||||||
rose.ghost = this;
|
rose.ghost = this;
|
||||||
rose.ghostID = id();
|
rose.ghostID = id();
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
//same dodge as the hero
|
//same dodge as the hero
|
||||||
defenseSkill = (Dungeon.hero.lvl+4);
|
defenseSkill = (Dungeon.hero.lvl+4);
|
||||||
|
|||||||
Reference in New Issue
Block a user