mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-16 10:48:00 +00:00
- Added player targeting AI to AF GainControl.
This commit is contained in:
@@ -3,6 +3,7 @@ ManaCost:2
|
||||
Types:Artifact
|
||||
Text:no text
|
||||
A:AB$ Pump | Cost$ T | ValidTgts$ Creature.YouCtrl | TgtPrompt$ Select target creature you control | NumAtt$ +1 | NumDef$ +0 | KW$ Flying & At the beginning of the end step, destroy CARDNAME. | SpellDescription$ Target creature you control gets +1/+0 and gains flying until end of turn. Destroy that creature at the beginning of the next end step.
|
||||
SVar:RemAIDeck:True
|
||||
SVar:Rarity:Uncommon
|
||||
SVar:Picture:http://www.wizards.com/global/images/magic/general/mogg_cannon.jpg
|
||||
SetInfo:TMP|Uncommon|http://magiccards.info/scans/en/tp/288.jpg
|
||||
|
||||
@@ -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