mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 20:58:03 +00:00
- KeepTapped Attach AI logic: try not to activate on things that can't tap.
This commit is contained in:
@@ -250,6 +250,18 @@ public class AttachAi extends SpellAbilityAi {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!mandatory) {
|
||||||
|
if (!c.isCreature() && !c.getType().hasSubtype("Vehicle") && !c.isTapped()) {
|
||||||
|
// try to identify if this thing can actually tap
|
||||||
|
for (SpellAbility ab : c.getAllSpellAbilities()) {
|
||||||
|
if (ab.getPayCosts() != null && ab.getPayCosts().hasTapCost()) {
|
||||||
|
return true;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
return false;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!c.isEnchanted()) {
|
if (!c.isEnchanted()) {
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user