v2.5.0: fixed a missing paren causing crashes with mirror images

This commit is contained in:
Evan Debenham
2024-08-11 11:35:13 -04:00
parent 4ed89d5884
commit 0b049579ad

View File

@@ -293,7 +293,7 @@ public class MeleeWeapon extends Weapon {
float ACC = super.accuracyFactor(owner, target);
if (owner instanceof Hero
&& ((Hero) owner).hasTalent(Talent.PRECISE_ASSAULT) || ((Hero) owner).hasTalent(Talent.LIQUID_AGILITY)
&& (((Hero) owner).hasTalent(Talent.PRECISE_ASSAULT) || ((Hero) owner).hasTalent(Talent.LIQUID_AGILITY))
//does not trigger on ability attacks
&& ((Hero) owner).belongings.abilityWeapon != this) {
if (((Hero) owner).heroClass != HeroClass.DUELIST) {