mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 03:38:01 +00:00
- Little tweak in gainLifeCanPlayAI.
This commit is contained in:
@@ -272,19 +272,17 @@ public class AbilityFactoryAlterLife {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (abCost != null) {
|
if (abCost != null && life > 5) {
|
||||||
if (life > 5) {
|
if (!CostUtil.checkSacrificeCost(abCost, source)) {
|
||||||
if (!CostUtil.checkSacrificeCost(abCost, source)) {
|
return false;
|
||||||
return false;
|
}
|
||||||
}
|
|
||||||
|
|
||||||
if (!CostUtil.checkLifeCost(abCost, source, 4)) {
|
if (!CostUtil.checkLifeCost(abCost, source, 4)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CostUtil.checkDiscardCost(abCost, source)) {
|
if (!CostUtil.checkDiscardCost(abCost, source)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!CostUtil.checkRemoveCounterCost(abCost, source)) {
|
if (!CostUtil.checkRemoveCounterCost(abCost, source)) {
|
||||||
|
|||||||
Reference in New Issue
Block a user