v2.1.0: fixed lash ability dealing 0 damage

This commit is contained in:
Evan Debenham
2023-05-20 13:31:46 -04:00
committed by Evan Debenham
parent 81a2cad8fa
commit 00c8289b18

View File

@@ -83,7 +83,7 @@ public class Whip extends MeleeWeapon {
public void call() {
beforeAbilityUsed(hero, finalClosest);
for (Char ch : targets) {
hero.attack(ch, 0, 1, ch == finalClosest ? Char.INFINITE_ACCURACY : 1);
hero.attack(ch, 1, 0, ch == finalClosest ? Char.INFINITE_ACCURACY : 1);
if (!ch.isAlive()){
onAbilityKill(hero, ch);
}