mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +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;
|
return false;
|
||||||
}
|
}
|
||||||
//Targeted
|
//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()
|
} // pumpPlayAI()
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -1164,7 +1173,15 @@ public class AbilityFactoryPump {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
} else {
|
} 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;
|
return true;
|
||||||
|
|||||||
Reference in New Issue
Block a user