mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-15 18:28:00 +00:00
- Changed isSorcerySpeed to return true for planeswalker abilities.
- Little tweak in AF Token.
This commit is contained in:
@@ -299,7 +299,8 @@ public class AbilityFactoryToken extends AbilityFactory {
|
||||
}
|
||||
if ((AllZone.getPhaseHandler().isPlayerTurn(AllZone.getComputerPlayer()) || AllZone.getPhaseHandler().isBefore(
|
||||
Constant.Phase.COMBAT_DECLARE_ATTACKERS_INSTANT_ABILITY))
|
||||
&& !mapParams.containsKey("ActivationPhases") && !AbilityFactory.isSorcerySpeed(sa)) {
|
||||
&& !mapParams.containsKey("ActivationPhases") && !AbilityFactory.isSorcerySpeed(sa)
|
||||
&& !haste) {
|
||||
return false;
|
||||
}
|
||||
if ((AllZone.getPhaseHandler().isAfter(Constant.Phase.COMBAT_BEGIN) || AllZone.getPhaseHandler().isPlayerTurn(
|
||||
|
||||
@@ -146,6 +146,7 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
||||
|
||||
if (params.containsKey("Planeswalker")) {
|
||||
this.setPlaneswalker(true);
|
||||
this.setSorcerySpeed(true);
|
||||
}
|
||||
|
||||
if (params.containsKey("IsPresent")) {
|
||||
@@ -325,10 +326,6 @@ public class SpellAbilityRestriction extends SpellAbilityVariables {
|
||||
}
|
||||
|
||||
if (this.isPwAbility()) {
|
||||
// Planeswalker abilities can only be activated as Sorceries
|
||||
if (!PhaseHandler.canCastSorcery(activator)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
for (final SpellAbility pwAbs : c.getAllSpellAbilities()) {
|
||||
// check all abilities on card that have their planeswalker
|
||||
|
||||
Reference in New Issue
Block a user