mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
fix several places in AFs where compy wouldn't activate because it was checking the wrong param
This commit is contained in:
@@ -222,7 +222,7 @@ public class AbilityFactory_AlterLife {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't use lifegain before main 2 if possible
|
//Don't use lifegain before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't tap creatures that may be able to block
|
//Don't tap creatures that may be able to block
|
||||||
@@ -521,7 +521,7 @@ public class AbilityFactory_AlterLife {
|
|||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't use loselife before main 2 if possible
|
//Don't use loselife before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't tap creatures that may be able to block
|
//Don't tap creatures that may be able to block
|
||||||
@@ -881,7 +881,7 @@ public class AbilityFactory_AlterLife {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Don't use poison before main 2 if possible
|
//Don't use poison before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't tap creatures that may be able to block
|
//Don't tap creatures that may be able to block
|
||||||
@@ -1078,7 +1078,7 @@ public class AbilityFactory_AlterLife {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Don't use setLife before main 2 if possible
|
//Don't use setLife before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases")) {
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -291,7 +291,7 @@ public final class AbilityFactory_Animate {
|
|||||||
//don't use instant speed animate abilities outside computers Combat_Begin step
|
//don't use instant speed animate abilities outside computers Combat_Begin step
|
||||||
if (!AllZone.getPhase().is(Constant.Phase.Combat_Begin)
|
if (!AllZone.getPhase().is(Constant.Phase.Combat_Begin)
|
||||||
&& AllZone.getPhase().isPlayerTurn(AllZone.getComputerPlayer())
|
&& AllZone.getPhase().isPlayerTurn(AllZone.getComputerPlayer())
|
||||||
&& !AbilityFactory.isSorcerySpeed(sa) && !params.containsKey("ActivatingPhases")
|
&& !AbilityFactory.isSorcerySpeed(sa) && !params.containsKey("ActivationPhases")
|
||||||
&& !params.containsKey("Permanent")) {
|
&& !params.containsKey("Permanent")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -361,7 +361,7 @@ public final class AbilityFactory_ChangeZone {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//don't use fetching to top of library/graveyard before main2
|
//don't use fetching to top of library/graveyard before main2
|
||||||
if(AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases")
|
if(AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases")
|
||||||
&& !destination.equals("Battlefield") && !destination.equals("Hand")) {
|
&& !destination.equals("Battlefield") && !destination.equals("Hand")) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -319,7 +319,7 @@ public class AbilityFactory_Counters {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Don't use non P1P1/M1M1 counters before main 2 if possible
|
//Don't use non P1P1/M1M1 counters before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases")
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases")
|
||||||
&& !(type.equals("P1P1") || type.equals("M1M1")))
|
&& !(type.equals("P1P1") || type.equals("M1M1")))
|
||||||
{
|
{
|
||||||
return false;
|
return false;
|
||||||
|
|||||||
@@ -221,7 +221,7 @@ public class AbilityFactory_ZoneAffecting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Don't use draw abilities before main 2 if possible
|
//Don't use draw abilities before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't tap creatures that may be able to block
|
//Don't tap creatures that may be able to block
|
||||||
@@ -634,7 +634,7 @@ public class AbilityFactory_ZoneAffecting {
|
|||||||
Random r = MyRandom.random;
|
Random r = MyRandom.random;
|
||||||
|
|
||||||
//Don't use draw abilities before main 2 if possible
|
//Don't use draw abilities before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't tap creatures that may be able to block
|
//Don't tap creatures that may be able to block
|
||||||
@@ -1177,7 +1177,7 @@ public class AbilityFactory_ZoneAffecting {
|
|||||||
}
|
}
|
||||||
|
|
||||||
//Don't use draw abilities before main 2 if possible
|
//Don't use draw abilities before main 2 if possible
|
||||||
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases"))
|
if (AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivationPhases"))
|
||||||
return false;
|
return false;
|
||||||
|
|
||||||
//Don't tap creatures that may be able to block
|
//Don't tap creatures that may be able to block
|
||||||
|
|||||||
Reference in New Issue
Block a user