v2.4.0: fixed empowered flurry of blows not using projecting enchant
This commit is contained in:
@@ -341,17 +341,20 @@ public class MonkEnergy extends Buff implements ActionIndicator.Action {
|
||||
return;
|
||||
}
|
||||
|
||||
if (Buff.affect(hero, MonkEnergy.class).abilitiesEmpowered(hero)){
|
||||
Buff.affect(hero, FlurryEmpowerTracker.class, 0f);
|
||||
}
|
||||
|
||||
UnarmedAbilityTracker tracker = Buff.affect(hero, UnarmedAbilityTracker.class);
|
||||
if (!hero.canAttack(enemy)){
|
||||
GLog.w(Messages.get(MeleeWeapon.class, "ability_bad_position"));
|
||||
tracker.detach();
|
||||
if (hero.buff(FlurryEmpowerTracker.class) != null){
|
||||
hero.buff(FlurryEmpowerTracker.class).detach();
|
||||
}
|
||||
return;
|
||||
}
|
||||
|
||||
if (Buff.affect(hero, MonkEnergy.class).abilitiesEmpowered(hero)){
|
||||
Buff.affect(hero, FlurryEmpowerTracker.class, 0f);
|
||||
}
|
||||
|
||||
hero.sprite.attack(enemy.pos, new Callback() {
|
||||
@Override
|
||||
public void call() {
|
||||
|
||||
Reference in New Issue
Block a user