v1.2.2: fixed transmuting staff removing its charger buff

This commit is contained in:
Evan Debenham 2022-04-04 15:39:27 -04:00
parent 9eb2855d1b
commit d580f0b9fe

View File

@ -243,7 +243,11 @@ public class MagesStaff extends MeleeWeapon {
this.wand = wand;
updateWand(false);
wand.curCharges = Math.min(wand.maxCharges, wand.curCharges+oldStaffcharges);
if (owner != null) wand.charge(owner);
if (owner != null){
applyWandChargeBuff(owner);
} else if (Dungeon.hero.belongings.contains(this)){
applyWandChargeBuff(Dungeon.hero);
}
//This is necessary to reset any particles.
//FIXME this is gross, should implement a better way to fully reset quickslot visuals