v2.0.0: fixed one additional case of abilityWeapon not being cleared
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user