v3.2.0: fixed hit and miss icons screwing with flail ability
This commit is contained in:
@@ -67,11 +67,12 @@ public class Flail extends MeleeWeapon {
|
||||
@Override
|
||||
public float accuracyFactor(Char owner, Char target) {
|
||||
SpinAbilityTracker spin = owner.buff(SpinAbilityTracker.class);
|
||||
if (spin != null) {
|
||||
if (spin != null && spinBoost == 0) {
|
||||
Actor.add(new Actor() {
|
||||
{ actPriority = VFX_PRIO; }
|
||||
@Override
|
||||
protected boolean act() {
|
||||
spinBoost = 0;
|
||||
if (owner instanceof Hero && !target.isAlive()){
|
||||
onAbilityKill((Hero)owner, target);
|
||||
}
|
||||
@@ -85,8 +86,9 @@ public class Flail extends MeleeWeapon {
|
||||
// so +120% base dmg, +135% scaling at 3 spins
|
||||
spinBoost = spin.spins * augment.damageFactor(8 + 2*buffedLvl());
|
||||
return Float.POSITIVE_INFINITY;
|
||||
} else if (spinBoost != 0) {
|
||||
return Float.POSITIVE_INFINITY;
|
||||
} else {
|
||||
spinBoost = 0;
|
||||
return super.accuracyFactor(owner, target);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user