mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 12:18:00 +00:00
- The AI of AF Pump will now check drawbacks (fixes Seeds of Strength).
This commit is contained in:
@@ -855,7 +855,16 @@ public class AbilityFactoryPump {
|
||||
return false;
|
||||
}
|
||||
//Targeted
|
||||
return this.pumpTgtAI(sa, defense, attack, false);
|
||||
if (!this.pumpTgtAI(sa, defense, attack, false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final AbilitySub subAb = sa.getSubAbility();
|
||||
if (subAb != null && !subAb.chkAIDrawback()) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return true;
|
||||
} // pumpPlayAI()
|
||||
|
||||
/**
|
||||
@@ -1164,7 +1173,15 @@ public class AbilityFactoryPump {
|
||||
}
|
||||
}
|
||||
} else {
|
||||
return this.pumpTgtAI(sa, defense, attack, false);
|
||||
//Targeted
|
||||
if (!this.pumpTgtAI(sa, defense, attack, false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
final AbilitySub subAb = sa.getSubAbility();
|
||||
if (subAb != null && !subAb.chkAIDrawback()) {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
return true;
|
||||
|
||||
Reference in New Issue
Block a user