Fixed a bug where the human was able to choose new targets for copied spells and added the LQ pic for Sun Titan. Expanded the Whenever Keyword with BeginningOfUpkeep so that it can trigger at the beginning of an upkeep and added a Controller_Upkeep condition so that it checks whether or not it is the source card controller's upkeep. Re-arranged the code in the WheneverKeyword to make it much more flexible and it is now able to take groups of effects and individual targets for groups of effects. Added Agent of Masks

This commit is contained in:
jendave
2011-08-06 05:17:37 +00:00
parent d4e70e72c1
commit 666fc41273
5 changed files with 167 additions and 153 deletions

View File

@@ -207,7 +207,12 @@ public class CardFactory implements NewConstants {
|| (in.getSpellAbility()[i].getTargetPlayer().equals(Constant.Player.Computer)))
sa[i].setTargetPlayer(in.getSpellAbility()[i].getTargetPlayer());
}
AllZone.GameAction.playSpellAbility(sa[i]);
if(Source.getController().equals(Constant.Player.Human)) AllZone.GameAction.playSpellAbility(sa[i]);
else {
if(sa[i].canPlayAI()) {
ComputerUtil.playStackFree(sa[i]);
}
}
}
}
}