v2.0.0: fixed one additional case of abilityWeapon not being cleared

This commit is contained in:
Evan Debenham
2023-02-12 23:24:16 -05:00
parent e5c8e22db9
commit 22d83665ce

View File

@@ -190,6 +190,7 @@ public class Pickaxe extends MeleeWeapon {
hero.belongings.abilityWeapon = this;
if (!hero.canAttack(enemy)){
GLog.w(Messages.get(this, "ability_bad_position"));
hero.belongings.abilityWeapon = null;
return;
}
hero.belongings.abilityWeapon = null;