mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- Improved some of the CanPlayAI cost evaluations of the bounce, fetch and draw abilities.
This commit is contained in:
@@ -143,7 +143,10 @@ public class AbilityFactory_Bounce {
|
||||
if (abCost.getSacCost()){
|
||||
return false;
|
||||
}
|
||||
if (abCost.getLifeCost()) return false;
|
||||
if (abCost.getLifeCost()){
|
||||
if (AllZone.ComputerPlayer.getLife() - abCost.getLifeAmount() < 4)
|
||||
return false;
|
||||
}
|
||||
if (abCost.getDiscardCost()) return false;
|
||||
|
||||
if (abCost.getSubCounter()){
|
||||
|
||||
@@ -191,7 +191,7 @@ public class AbilityFactory_Fetch {
|
||||
// Sac is ok in general, but should add some decision making based off SacType and Fetch Type
|
||||
}
|
||||
if (abCost.getLifeCost()){
|
||||
if (AllZone.ComputerPlayer.getLife() < 5)
|
||||
if (AllZone.ComputerPlayer.getLife() - abCost.getLifeAmount() < 4)
|
||||
return false;
|
||||
}
|
||||
if (abCost.getDiscardCost()) return false;
|
||||
|
||||
@@ -87,12 +87,14 @@ public class AbilityFactory_ZoneAffecting {
|
||||
return false;
|
||||
}
|
||||
if (abCost.getLifeCost()){
|
||||
if (AllZone.ComputerPlayer.getLife() < 5)
|
||||
if (AllZone.ComputerPlayer.getLife() - abCost.getLifeAmount() < 4)
|
||||
return false;
|
||||
}
|
||||
if (abCost.getDiscardCost()) return false;
|
||||
|
||||
if (abCost.getSubCounter()) return false;
|
||||
if (abCost.getSubCounter()) {
|
||||
if (abCost.getCounterType().equals(Counters.P1P1)) return false; // Other counters should be used
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user