v2.0.0: fixed volley ability not working with lethal momentum

This commit is contained in:
Evan Debenham
2023-03-06 17:31:59 -05:00
parent 18fcc41ee4
commit 90473444af

View File

@@ -373,7 +373,12 @@ public class SpiritBow extends Weapon {
final Char enemy = Actor.findChar( cell );
if (enemy == null){
user.spendAndNext(castDelay(user, dst));
if (user.buff(Talent.LethalMomentumTracker.class) != null){
user.buff(Talent.LethalMomentumTracker.class).detach();
user.next();
} else {
user.spendAndNext(castDelay(user, dst));
}
sniperSpecial = false;
flurryCount = -1;
@@ -404,7 +409,12 @@ public class SpiritBow extends Weapon {
}
if (last) {
user.spendAndNext(castDelay(user, dst));
if (user.buff(Talent.LethalMomentumTracker.class) != null){
user.buff(Talent.LethalMomentumTracker.class).detach();
user.next();
} else {
user.spendAndNext(castDelay(user, dst));
}
sniperSpecial = false;
flurryCount = -1;
}