v0.7.1: fixed a crash caused by converted upgraded boomerangs
This commit is contained in:
+2
-1
@@ -142,7 +142,8 @@ public class SpiritBow extends Weapon {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int level() {
|
public int level() {
|
||||||
return Dungeon.hero.lvl/5;
|
//need to check if hero is null for loading an upgraded bow from pre-0.7.0
|
||||||
|
return Dungeon.hero == null ? 0 : Dungeon.hero.lvl/5;
|
||||||
}
|
}
|
||||||
|
|
||||||
@Override
|
@Override
|
||||||
|
|||||||
Reference in New Issue
Block a user