- 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

@@ -1,10 +1,11 @@
Name:Mogg Cannon
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: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
Oracle:{T}: 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.
Name:Mogg Cannon
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
Oracle:{T}: 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.
End

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);