mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 04:38:00 +00:00
- Little AI improvements in AF ChangeZone Hidden.
This commit is contained in:
@@ -304,7 +304,7 @@ public final class AbilityFactory_ChangeZone {
|
||||
Card source = af.getHostCard();
|
||||
HashMap<String, String> params = af.getMapParams();
|
||||
Constant.Zone origin = Constant.Zone.smartValueOf(params.get("Origin"));
|
||||
//String destination = params.get("Destination");
|
||||
String destination = params.get("Destination");
|
||||
|
||||
if (abCost != null) {
|
||||
// AI currently disabled for these costs
|
||||
@@ -359,6 +359,12 @@ public final class AbilityFactory_ChangeZone {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
//don't use fetching to top of library/graveyard before main2
|
||||
if(AllZone.getPhase().isBefore(Constant.Phase.Main2) && !params.containsKey("ActivatingPhases")
|
||||
&& !destination.equals("Battlefield") && !destination.equals("Hand")) {
|
||||
return false;
|
||||
}
|
||||
|
||||
chance &= (r.nextFloat() < .8);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user