v3.0.0: fixed smite not guaranteeing hits when it should

This commit is contained in:
Evan Debenham
2025-01-30 11:10:59 -05:00
parent 1f033cb32e
commit 68706fda93
@@ -91,10 +91,10 @@ public class Smite extends TargetedClericSpell {
public void call() { public void call() {
AttackIndicator.target(enemy); AttackIndicator.target(enemy);
float accMult = Char.INFINITE_ACCURACY; float accMult = 1;
if (!(hero.belongings.attackingWeapon() instanceof Weapon) if (!(hero.belongings.attackingWeapon() instanceof Weapon)
|| ((Weapon) hero.belongings.attackingWeapon()).STRReq() <= hero.STR()){ || ((Weapon) hero.belongings.attackingWeapon()).STRReq() <= hero.STR()){
accMult = 1; accMult = Char.INFINITE_ACCURACY;
} }
if (hero.attack(enemy, 1, 0, accMult)){ if (hero.attack(enemy, 1, 0, accMult)){
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG); Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);