v0.9.2a: fixed bounty hunter talent not triggering in all cases
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
@@ -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 );
|
||||
|
||||
Reference in New Issue
Block a user