Add AI for Rousing Refrain

This commit is contained in:
tool4EvEr
2021-10-05 20:12:52 +02:00
parent 27b0fb3247
commit 8ea9eb6118
7 changed files with 22 additions and 8 deletions

View File

@@ -3201,7 +3201,7 @@ public class CardFactoryUtil {
return true;
}
return this.getHostCard().getOwner().canCastSorcery() || this.getHostCard().getFirstSpellAbility().withFlash(this.getHostCard(), this.getActivatingPlayer());
return this.getHostCard().getFirstSpellAbility().canCastTiming(this.getHostCard(), this.getActivatingPlayer());
}
@Override

View File

@@ -2341,7 +2341,6 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
public boolean canCastTiming(Player activator) {
return canCastTiming(getHostCard(), activator);
}
public boolean canCastTiming(Card host, Player activator) {
// for companion
if (this instanceof AbilityStatic && getRestrictions().isSorcerySpeed() && !activator.canCastSorcery()) {
@@ -2360,7 +2359,9 @@ public abstract class SpellAbility extends CardTraitBase implements ISpellAbilit
// spells per default are sorcerySpeed
if (isSpell()) {
return false;
} else if (isActivatedAbility()) {
}
if (isActivatedAbility()) {
// Activated Abillties are instant speed per default
return !getRestrictions().isSorcerySpeed();
}