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

View File

@@ -91,10 +91,10 @@ public class Smite extends TargetedClericSpell {
public void call() {
AttackIndicator.target(enemy);
float accMult = Char.INFINITE_ACCURACY;
float accMult = 1;
if (!(hero.belongings.attackingWeapon() instanceof Weapon)
|| ((Weapon) hero.belongings.attackingWeapon()).STRReq() <= hero.STR()){
accMult = 1;
accMult = Char.INFINITE_ACCURACY;
}
if (hero.attack(enemy, 1, 0, accMult)){
Sample.INSTANCE.play(Assets.Sounds.HIT_STRONG);