mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-20 12:48:00 +00:00
- Added player targeting AI to AF GainControl.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user