The AI and man lands
I have spent some time recently fixing several of the lands which can be used to buff a creature type or changeling. Several of these cards can turn into a man land but the canPlayAI() returns false. There is a note with Mishra's Factory which states:
I put together a wee bit of code for Mutavault:
and the computer does attack most turns with the Mutavault.
There is still a minor problem. The computer tapped a mox to turn it's first Mutavault into a man land. It then tapped the man land Mutavault to convert the second Mutavault into a man land. There were still untapped mox in the land zone.
- Code: Select all
//it turns into a creature, but doesn't attack
I put together a wee bit of code for Mutavault:
- Code: Select all
public boolean canPlayAI() {
if (!card.isCreature() && CardFactoryUtil.canTarget(card, card) &&
AllZone.Phase.getPhase().equals(Constant.Phase.Main1)) return true;
else return false;
}
and the computer does attack most turns with the Mutavault.
There is still a minor problem. The computer tapped a mox to turn it's first Mutavault into a man land. It then tapped the man land Mutavault to convert the second Mutavault into a man land. There were still untapped mox in the land zone.