mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 20:28:00 +00:00
- BNG: Added Nessian Demolok and Oracle of Bones
This commit is contained in:
@@ -358,10 +358,11 @@ public class CountersPutAi extends SpellAbilityAi {
|
|||||||
// add counter if that opponent has a giant creature
|
// add counter if that opponent has a giant creature
|
||||||
final List<Card> creats = player.getCreaturesInPlay();
|
final List<Card> creats = player.getCreaturesInPlay();
|
||||||
final int tributeAmount = source.getKeywordMagnitude("Tribute");
|
final int tributeAmount = source.getKeywordMagnitude("Tribute");
|
||||||
|
final boolean isHaste = source.hasKeyword("Haste");
|
||||||
List<Card> threatening = CardLists.filter(creats, new Predicate<Card>() {
|
List<Card> threatening = CardLists.filter(creats, new Predicate<Card>() {
|
||||||
@Override
|
@Override
|
||||||
public boolean apply(Card c) {
|
public boolean apply(Card c) {
|
||||||
return CombatUtil.canBlock(source, c, true)
|
return CombatUtil.canBlock(source, c, !isHaste)
|
||||||
&& (c.getNetDefense() > source.getNetAttack() + tributeAmount || c.hasKeyword("DeathTouch"));
|
&& (c.getNetDefense() > source.getNetAttack() + tributeAmount || c.hasKeyword("DeathTouch"));
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user