mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 10:18:01 +00:00
Add AI for Rousing Refrain
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -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();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user