v0.9.2a: fixed bounty hunter talent not triggering in all cases

This commit is contained in:
Evan Debenham
2021-03-02 23:03:24 -05:00
parent dded52030a
commit 71d1d3cade
2 changed files with 3 additions and 4 deletions

View File

@@ -295,6 +295,9 @@ public abstract class Char extends Actor {
Preparation prep = buff(Preparation.class);
if (prep != null){
dmg = prep.damageRoll(this);
if (this == Dungeon.hero && Dungeon.hero.hasTalent(Talent.BOUNTY_HUNTER)) {
Buff.affect(Dungeon.hero, Talent.BountyHunterTracker.class, 0.0f);
}
} else {
dmg = damageRoll();
}

View File

@@ -262,10 +262,6 @@ public class Preparation extends Buff implements ActionIndicator.Action {
GLog.w(Messages.get(Preparation.class, "no_target"));
} else {
if (Dungeon.hero.hasTalent(Talent.BOUNTY_HUNTER)) {
Buff.affect(Dungeon.hero, Talent.BountyHunterTracker.class, 0.0f);
}
//just attack them then!
if (Dungeon.hero.canAttack(enemy)){
Dungeon.hero.curAction = new HeroAction.Attack( enemy );