mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-11 16:26:22 +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("takes ");
|
||||
sb.append(" takes ");
|
||||
sb.append(numTurns > 1 ? numTurns : "an");
|
||||
sb.append(" extra turn");
|
||||
|
||||
|
||||
@@ -58,6 +58,7 @@ import forge.game.cost.Cost;
|
||||
import forge.game.keyword.Keyword;
|
||||
import forge.game.keyword.KeywordInterface;
|
||||
import forge.game.player.Player;
|
||||
import forge.game.player.PlayerCollection;
|
||||
import forge.game.replacement.ReplacementEffect;
|
||||
import forge.game.spellability.AbilityStatic;
|
||||
import forge.game.spellability.SpellAbility;
|
||||
@@ -606,7 +607,10 @@ public final class StaticAbilityContinuous {
|
||||
|
||||
// Gain control
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user