- Fixed Mana Breach.

This commit is contained in:
jendave
2011-08-06 22:54:46 +00:00
parent 05d55a8b24
commit b8d51e3037
2 changed files with 11 additions and 7 deletions

View File

@@ -4,7 +4,7 @@ Types:Enchantment
Text:no text
T:Mode$ SpellCast | ValidCard$ Card.YouCtrl | TriggerZones$ Battlefield | Execute$ TrigBounceYou | TriggerDescription$ Whenever a player casts a spell, that player returns a land he or she controls to its owner's hand.
T:Mode$ SpellCast | ValidCard$ Card.YouDontCtrl | TriggerZones$ Battlefield | Execute$ TrigBounceOpp | Secondary$ True | TriggerDescription$ Whenever a player casts a spell, that player returns a land he or she controls to its owner's hand.
SVar:TrigBounceYou:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | ValidTgts$ Land.YouCtrl | Mandatory$ True | Defined$ You | Hidden$ True
SVar:TrigBounceYou:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | ChangeNum$ 1 | ChangeType$ Land.YouCtrl | Mandatory$ True | Defined$ You | Hidden$ True
SVar:TrigBounceOpp:AB$ ChangeZone | Cost$ 0 | Origin$ Battlefield | Destination$ Hand | ChangeNum$ 1 | ChangeType$ Land.YouDontCtrl | Mandatory$ True | Defined$ Opponent | Hidden$ True
SVar:RemRandomDeck:True
SVar:Rarity:Uncommon

View File

@@ -494,9 +494,11 @@ public class AbilityFactory_ChangeZone {
Card card = af.getHostCard();
Target tgt = af.getAbTgt();
if (tgt != null){
player = tgt.getTargetPlayers().get(0);
if (!player.canTarget(sa.getSourceCard()))
return;
if(!tgt.getTargetPlayers().isEmpty()) {
player = tgt.getTargetPlayers().get(0);
if (!player.canTarget(sa.getSourceCard()))
return;
}
}
String origin = params.get("Origin");
@@ -579,9 +581,11 @@ public class AbilityFactory_ChangeZone {
Card card = af.getHostCard();
if (tgt != null){
player = tgt.getTargetPlayers().get(0);
if (!player.canTarget(sa.getSourceCard()))
return;
if(!tgt.getTargetPlayers().isEmpty()) {
player = tgt.getTargetPlayers().get(0);
if (!player.canTarget(sa.getSourceCard()))
return;
}
}
String origin = params.get("Origin");