diff --git a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/duelist/Feint.java b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/duelist/Feint.java index 4a619de41..2dca2ec19 100644 --- a/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/duelist/Feint.java +++ b/core/src/main/java/com/shatteredpixel/shatteredpixeldungeon/actors/hero/abilities/duelist/Feint.java @@ -179,19 +179,21 @@ public class Feint extends ArmorAbility { @Override public int defenseSkill(Char enemy) { - if (enemy instanceof Mob){ - ((Mob) enemy).clearEnemy(); - } - Buff.affect(enemy, FeintConfusion.class, 1); - if (enemy.sprite != null) enemy.sprite.showLost(); - if (Dungeon.hero.hasTalent(Talent.FEIGNED_RETREAT)){ - Buff.prolong(Dungeon.hero, Haste.class, 2f*Dungeon.hero.pointsInTalent(Talent.FEIGNED_RETREAT)); - } - if (Dungeon.hero.hasTalent(Talent.EXPOSE_WEAKNESS)){ - Buff.prolong(enemy, Vulnerable.class, Dungeon.hero.pointsInTalent(Talent.EXPOSE_WEAKNESS)); - } - if (Dungeon.hero.hasTalent(Talent.COUNTER_ABILITY)){ - Buff.prolong(Dungeon.hero, Talent.CounterAbilityTacker.class, 3f); + if (enemy.alignment == Alignment.ENEMY) { + if (enemy instanceof Mob) { + ((Mob) enemy).clearEnemy(); + } + Buff.affect(enemy, FeintConfusion.class, 1); + if (enemy.sprite != null) enemy.sprite.showLost(); + if (Dungeon.hero.hasTalent(Talent.FEIGNED_RETREAT)) { + Buff.prolong(Dungeon.hero, Haste.class, 2f * Dungeon.hero.pointsInTalent(Talent.FEIGNED_RETREAT)); + } + if (Dungeon.hero.hasTalent(Talent.EXPOSE_WEAKNESS)) { + Buff.prolong(enemy, Vulnerable.class, Dungeon.hero.pointsInTalent(Talent.EXPOSE_WEAKNESS)); + } + if (Dungeon.hero.hasTalent(Talent.COUNTER_ABILITY)) { + Buff.prolong(Dungeon.hero, Talent.CounterAbilityTacker.class, 3f); + } } return 0; }