v2.1.0: feint afterimage on-hits now only trigger for enemies
This commit is contained in:
+2
@@ -179,6 +179,7 @@ public class Feint extends ArmorAbility {
|
|||||||
|
|
||||||
@Override
|
@Override
|
||||||
public int defenseSkill(Char enemy) {
|
public int defenseSkill(Char enemy) {
|
||||||
|
if (enemy.alignment == Alignment.ENEMY) {
|
||||||
if (enemy instanceof Mob) {
|
if (enemy instanceof Mob) {
|
||||||
((Mob) enemy).clearEnemy();
|
((Mob) enemy).clearEnemy();
|
||||||
}
|
}
|
||||||
@@ -193,6 +194,7 @@ public class Feint extends ArmorAbility {
|
|||||||
if (Dungeon.hero.hasTalent(Talent.COUNTER_ABILITY)) {
|
if (Dungeon.hero.hasTalent(Talent.COUNTER_ABILITY)) {
|
||||||
Buff.prolong(Dungeon.hero, Talent.CounterAbilityTacker.class, 3f);
|
Buff.prolong(Dungeon.hero, Talent.CounterAbilityTacker.class, 3f);
|
||||||
}
|
}
|
||||||
|
}
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user