*Better fix for the StackOverflow when donating stuff. You know, one that *doesn't* cause other GainControl abilities to spaz out.

This commit is contained in:
Hellfish
2011-09-03 11:48:20 +00:00
parent 74fb60ec4d
commit 8310c076ab

View File

@@ -350,12 +350,10 @@ public class AbilityFactory_GainControl {
if (AllZoneUtil.isCardInPlay(tgtC) && CardFactoryUtil.canTarget(hostCard, tgtC)) { if (AllZoneUtil.isCardInPlay(tgtC) && CardFactoryUtil.canTarget(hostCard, tgtC)) {
if(newController.size() != 0) if (params.containsKey("NewController")) {
{
tgtC.addController(newController.get(0)); tgtC.addController(newController.get(0));
} }
else else {
{
tgtC.addController(hostCard); tgtC.addController(hostCard);
} }
//AllZone.getGameAction().changeController(new CardList(tgtC), //AllZone.getGameAction().changeController(new CardList(tgtC),