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;
|
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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user