Refactoring "InsertAdHocModifier" -> "Apply AdHocModifier"

This commit is contained in:
Christian 'ketura' McCarty
2021-09-21 02:48:51 -05:00
parent 189af8e2d2
commit ce803d3758
4 changed files with 8 additions and 9 deletions

View File

@@ -37,7 +37,7 @@ public class ConcealedExposedAtTest extends AbstractAtTest {
scn.StartGame();
scn.InsertAdHocModifier(new KeywordModifier(aragorn, aragorn, Keyword.CONCEALED));
scn.ApplyAdHocModifier(new KeywordModifier(aragorn, aragorn, Keyword.CONCEALED));
assertEquals(0, scn.GetTwilight());
scn.FreepsSkipCurrentPhaseAction();
@@ -59,7 +59,7 @@ public class ConcealedExposedAtTest extends AbstractAtTest {
scn.StartGame();
scn.FreepsPlayCard(aragorn);
scn.InsertAdHocModifier(new KeywordModifier(aragorn, aragorn, Keyword.CONCEALED));
scn.ApplyAdHocModifier(new KeywordModifier(aragorn, aragorn, Keyword.CONCEALED));
//4 from playing aragorn
assertEquals(4, scn.GetTwilight());
@@ -83,7 +83,7 @@ public class ConcealedExposedAtTest extends AbstractAtTest {
scn.StartGame();
scn.FreepsPlayCard(aragorn);
scn.InsertAdHocModifier(new KeywordModifier(aragorn, Keyword.RANGER, Keyword.CONCEALED));
scn.ApplyAdHocModifier(new KeywordModifier(aragorn, Keyword.RANGER, Keyword.CONCEALED));
//4 from playing aragorn
@@ -106,9 +106,9 @@ public class ConcealedExposedAtTest extends AbstractAtTest {
scn.StartGame();
scn.FreepsPlayCard(aragorn);
scn.InsertAdHocModifier(new KeywordModifier(aragorn, Keyword.RANGER, Keyword.CONCEALED));
scn.ApplyAdHocModifier(new KeywordModifier(aragorn, Keyword.RANGER, Keyword.CONCEALED));
scn.InsertAdHocModifier(new KeywordModifier(null, CardType.SITE, Keyword.EXPOSED));
scn.ApplyAdHocModifier(new KeywordModifier(null, CardType.SITE, Keyword.EXPOSED));
//4 from playing aragorn
assertEquals(4, scn.GetTwilight());

View File

@@ -418,7 +418,7 @@ public class GenericCardTestHelper extends AbstractAtTest {
}
public void InsertAdHocModifier(Modifier mod)
public void ApplyAdHocModifier(Modifier mod)
{
_game.getModifiersEnvironment().addUntilEndOfTurnModifier(mod);
}

View File

@@ -2,7 +2,6 @@ package com.gempukku.lotro.cards.unofficial.pc.errata.set2;
import com.gempukku.lotro.cards.GenericCardTestHelper;
import com.gempukku.lotro.common.Keyword;
import com.gempukku.lotro.common.Phase;
import com.gempukku.lotro.common.Signet;
import com.gempukku.lotro.filters.Filters;
import com.gempukku.lotro.game.CardNotFoundException;
@@ -72,7 +71,7 @@ public class Gimli_DotMrErrataTests
scn.StartGame();
scn.InsertAdHocModifier(new KeywordModifier(null, Filters.siteNumber(2), Keyword.UNDERGROUND));
scn.ApplyAdHocModifier(new KeywordModifier(null, Filters.siteNumber(2), Keyword.UNDERGROUND));
scn.FreepsSkipCurrentPhaseAction();

View File

@@ -107,7 +107,7 @@ public class BillThePonyErrataTests
scn.FreepsMoveCardToHand(bill, sam);
scn.InsertAdHocModifier(new KeywordModifier(null, Filters.siteNumber(2), Keyword.UNDERGROUND));
scn.ApplyAdHocModifier(new KeywordModifier(null, Filters.siteNumber(2), Keyword.UNDERGROUND));
scn.StartGame();