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);
|
Preparation prep = buff(Preparation.class);
|
||||||
if (prep != null){
|
if (prep != null){
|
||||||
dmg = prep.damageRoll(this);
|
dmg = prep.damageRoll(this);
|
||||||
|
if (this == Dungeon.hero && Dungeon.hero.hasTalent(Talent.BOUNTY_HUNTER)) {
|
||||||
|
Buff.affect(Dungeon.hero, Talent.BountyHunterTracker.class, 0.0f);
|
||||||
|
}
|
||||||
} else {
|
} else {
|
||||||
dmg = damageRoll();
|
dmg = damageRoll();
|
||||||
}
|
}
|
||||||
|
|||||||
-4
@@ -262,10 +262,6 @@ public class Preparation extends Buff implements ActionIndicator.Action {
|
|||||||
GLog.w(Messages.get(Preparation.class, "no_target"));
|
GLog.w(Messages.get(Preparation.class, "no_target"));
|
||||||
} else {
|
} else {
|
||||||
|
|
||||||
if (Dungeon.hero.hasTalent(Talent.BOUNTY_HUNTER)) {
|
|
||||||
Buff.affect(Dungeon.hero, Talent.BountyHunterTracker.class, 0.0f);
|
|
||||||
}
|
|
||||||
|
|
||||||
//just attack them then!
|
//just attack them then!
|
||||||
if (Dungeon.hero.canAttack(enemy)){
|
if (Dungeon.hero.canAttack(enemy)){
|
||||||
Dungeon.hero.curAction = new HeroAction.Attack( enemy );
|
Dungeon.hero.curAction = new HeroAction.Attack( enemy );
|
||||||
|
|||||||
Reference in New Issue
Block a user