Re: Forge 03/13 (Unofficial Beta version)
`lm01 wrote:AI still uses Mishra's Factory to pump his other creatures while players can't do the same, please check it.
I think that I have fixed the Mishra's Factory problem. It is only pumping Assembly-Worker type creatures and is doing it only in Main Phase 1. In my test I disovered that the Assembly-Worker was also pumping all creature types … so I applied the same fix.
I changed the chooseTargetAI() --> Card getAttacker() code to this:
- Code: Select all
public Card getAttacker() {
//target creature that is going to attack
Combat c = ComputerUtil.getAttackers();
CardList att = new CardList(c.getAttackers());
att = att.getType("Assembly-Worker"); // Should return only Assembly-Workers
att.remove(card);
att.shuffle();
if(att.size() != 0 &&
(AllZone.Phase.getPhase().equals(Constant.Phase.Main1)) &&
CardFactoryUtil.canTarget(card, att.get(0))) return att.get(0);
else return null;
I will merge this into the SVN tomorrow.

