mirror of
https://github.com/Card-Forge/forge.git
synced 2025-11-19 04:08:01 +00:00
Merge branch 'm20' into 'master'
M20 See merge request core-developers/forge!1890
This commit is contained in:
@@ -140,17 +140,28 @@ public class DebuffEffect extends SpellAbilityEffect {
|
||||
tgtC.addChangedCardKeywords(addedKW, removedKW, false, false, timestamp);
|
||||
}
|
||||
if (!sa.hasParam("Permanent")) {
|
||||
game.getEndOfTurn().addUntil(new GameCommand() {
|
||||
final GameCommand until = new GameCommand() {
|
||||
private static final long serialVersionUID = 5387486776282932314L;
|
||||
|
||||
@Override
|
||||
public void run() {
|
||||
tgtC.removeChangedCardKeywords(timestamp);
|
||||
}
|
||||
});
|
||||
};
|
||||
addUntilCommand(sa, until);
|
||||
}
|
||||
}
|
||||
|
||||
} // debuffResolve
|
||||
|
||||
private static void addUntilCommand(final SpellAbility sa, GameCommand until) {
|
||||
final Card host = sa.getHostCard();
|
||||
final Game game = host.getGame();
|
||||
if (sa.hasParam("UntilYourNextTurn")) {
|
||||
game.getCleanup().addUntil(sa.getActivatingPlayer(), until);
|
||||
} else {
|
||||
game.getEndOfTurn().addUntil(until);
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user