- Added player targeting AI to AF GainControl.

This commit is contained in:
Sloth
2011-11-15 15:57:29 +00:00
parent 2dd96cba6f
commit d4fe16cc7a
2 changed files with 15 additions and 9 deletions

View File

@@ -277,6 +277,11 @@ public class AbilityFactoryGainControl {
// if Defined, then don't worry about targeting
if (tgt == null) {
return true;
} else if (tgt.canOnlyTgtOpponent()) {
if (!AllZone.getHumanPlayer().canBeTargetedBy(sa)) {
return false;
}
tgt.addTarget(AllZone.getHumanPlayer());
}
CardList list = AllZone.getHumanPlayer().getCardsIn(Zone.Battlefield);