mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-18 19:58:00 +00:00
*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:
@@ -350,12 +350,10 @@ public class AbilityFactory_GainControl {
|
||||
|
||||
if (AllZoneUtil.isCardInPlay(tgtC) && CardFactoryUtil.canTarget(hostCard, tgtC)) {
|
||||
|
||||
if(newController.size() != 0)
|
||||
{
|
||||
if (params.containsKey("NewController")) {
|
||||
tgtC.addController(newController.get(0));
|
||||
}
|
||||
else
|
||||
{
|
||||
else {
|
||||
tgtC.addController(hostCard);
|
||||
}
|
||||
//AllZone.getGameAction().changeController(new CardList(tgtC),
|
||||
|
||||
Reference in New Issue
Block a user