mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- Fixed AI not using the first ability of Vraska the Unseen.
This commit is contained in:
@@ -88,7 +88,8 @@ public abstract class SpellAbilityAi extends SaTargetRoutines {
|
|||||||
*/
|
*/
|
||||||
protected static boolean isSorcerySpeed(final SpellAbility sa) {
|
protected static boolean isSorcerySpeed(final SpellAbility sa) {
|
||||||
return (sa.isSpell() && sa.getHostCard().isSorcery())
|
return (sa.isSpell() && sa.getHostCard().isSorcery())
|
||||||
|| ( sa.isAbility() && sa.getRestrictions().isSorcerySpeed() );
|
|| (sa.isAbility() && sa.getRestrictions().isSorcerySpeed())
|
||||||
|
|| (sa.getRestrictions().isPwAbility() && !sa.getHostCard().hasKeyword("CARDNAME's loyalty abilities can be activated at instant speed."));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|||||||
@@ -100,7 +100,8 @@ public class AnimateAi extends SpellAbilityAi {
|
|||||||
if (ph.isPlayerTurn(aiPlayer)
|
if (ph.isPlayerTurn(aiPlayer)
|
||||||
&& aiPlayer.getLife() < 6
|
&& aiPlayer.getLife() < 6
|
||||||
&& opponent.getLife() > 6
|
&& opponent.getLife() > 6
|
||||||
&& Iterables.any(opponent.getCardsIn(ZoneType.Battlefield), CardPredicates.Presets.CREATURES)) {
|
&& Iterables.any(opponent.getCardsIn(ZoneType.Battlefield), CardPredicates.Presets.CREATURES)
|
||||||
|
&& !sa.hasParam("AILogic")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user