v2.0.0: fixed patient strike working on ranged attacks

This commit is contained in:
Evan Debenham
2023-03-01 13:50:33 -05:00
parent 3847da85ed
commit 5c9d73e252

View File

@@ -645,7 +645,8 @@ public enum Talent {
} }
if (hero.hasTalent(PATIENT_STRIKE)){ if (hero.hasTalent(PATIENT_STRIKE)){
if (hero.buff(PatientStrikeTracker.class) != null){ if (hero.buff(PatientStrikeTracker.class) != null
&& !(hero.belongings.attackingWeapon() instanceof MissileWeapon)){
hero.buff(PatientStrikeTracker.class).detach(); hero.buff(PatientStrikeTracker.class).detach();
dmg += Random.IntRange(hero.pointsInTalent(Talent.PATIENT_STRIKE), 2); dmg += Random.IntRange(hero.pointsInTalent(Talent.PATIENT_STRIKE), 2);
if (!(enemy instanceof Mob) || !((Mob) enemy).surprisedBy(hero)){ if (!(enemy instanceof Mob) || !((Mob) enemy).surprisedBy(hero)){