v2.4.0: fixed empowered flurry of blows not using projecting enchant

This commit is contained in:
Evan Debenham
2024-03-06 15:02:48 -05:00
parent 7be69b65e3
commit f7c6a2ad28

View File

@@ -341,17 +341,20 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
return; return;
} }
if (Buff.affect(hero, MonkEnergy.class).abilitiesEmpowered(hero)){
Buff.affect(hero, FlurryEmpowerTracker.class, 0f);
}
UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class); UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class);
if (!hero.canAttack(enemy)){ if (!hero.canAttack(enemy)){
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position")); GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
tracker.detach(); tracker.detach();
if (hero.buff(FlurryEmpowerTracker.class) != null){
hero.buff(FlurryEmpowerTracker.class).detach();
}
return; return;
} }
if (Buff.affect(hero, MonkEnergy.class).abilitiesEmpowered(hero)){
Buff.affect(hero, FlurryEmpowerTracker.class, 0f);
}
hero.sprite.attack(enemy.pos, new Callback() { hero.sprite.attack(enemy.pos, new Callback() {
@Override @Override
public void call() { public void call() {