*Fixed StackOverflow when donating stuff.

This commit is contained in:
Hellfish
2011-09-02 18:50:20 +00:00
parent b548b3542d
commit 90d5514aaa

View File

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