v0.9.1: fixed rare crashes caused by cursed wand effects
This commit is contained in:
parent
1f5ad491fd
commit
19f1edd311
|
@ -359,6 +359,7 @@ public abstract class Wand extends Item {
|
|||
|
||||
//if the wand is owned by the hero, but not in their inventory, it must be in the staff
|
||||
if (curCharges == 0
|
||||
&& charger != null
|
||||
&& charger.target == Dungeon.hero
|
||||
&& !Dungeon.hero.belongings.contains(this)
|
||||
&& Dungeon.hero.hasTalent(Talent.BACKUP_BARRIER)){
|
||||
|
|
Loading…
Reference in New Issue
Block a user