mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-12 16:58:57 +00:00
Merge pull request #3338 from tool4ever/supfealty
Support for Fealty to the Realm
This commit is contained in:
@@ -25,7 +25,7 @@ public class AddTurnEffect extends SpellAbilityEffect {
|
|||||||
|
|
||||||
sb.append(Lang.joinHomogenous(getTargetPlayers(sa)));
|
sb.append(Lang.joinHomogenous(getTargetPlayers(sa)));
|
||||||
|
|
||||||
sb.append("takes ");
|
sb.append(" takes ");
|
||||||
sb.append(numTurns > 1 ? numTurns : "an");
|
sb.append(numTurns > 1 ? numTurns : "an");
|
||||||
sb.append(" extra turn");
|
sb.append(" extra turn");
|
||||||
|
|
||||||
|
|||||||
@@ -58,6 +58,7 @@ import forge.game.cost.Cost;
|
|||||||
import forge.game.keyword.Keyword;
|
import forge.game.keyword.Keyword;
|
||||||
import forge.game.keyword.KeywordInterface;
|
import forge.game.keyword.KeywordInterface;
|
||||||
import forge.game.player.Player;
|
import forge.game.player.Player;
|
||||||
|
import forge.game.player.PlayerCollection;
|
||||||
import forge.game.replacement.ReplacementEffect;
|
import forge.game.replacement.ReplacementEffect;
|
||||||
import forge.game.spellability.AbilityStatic;
|
import forge.game.spellability.AbilityStatic;
|
||||||
import forge.game.spellability.SpellAbility;
|
import forge.game.spellability.SpellAbility;
|
||||||
@@ -606,7 +607,10 @@ public final class StaticAbilityContinuous {
|
|||||||
|
|
||||||
// Gain control
|
// Gain control
|
||||||
if (layer == StaticAbilityLayer.CONTROL && params.containsKey("GainControl")) {
|
if (layer == StaticAbilityLayer.CONTROL && params.containsKey("GainControl")) {
|
||||||
affectedCard.addTempController(hostCard.getController(), hostCard.getTimestamp());
|
final PlayerCollection gain = AbilityUtils.getDefinedPlayers(hostCard, params.get("GainControl"), stAb);
|
||||||
|
if (!gain.isEmpty()) {
|
||||||
|
affectedCard.addTempController(gain.get(0), hostCard.getTimestamp());
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Gain text from another card
|
// Gain text from another card
|
||||||
|
|||||||
Reference in New Issue
Block a user