Skip to content

Commit

Permalink
[EX1_391] Slam & test
Browse files Browse the repository at this point in the history
  • Loading branch information
darkfriend77 committed Feb 7, 2017
1 parent 99dc056 commit 48673dc
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 21 deletions.
16 changes: 9 additions & 7 deletions SabberStoneCore/CardSets/Standard/Expert1CardsGen.cs
Original file line number Diff line number Diff line change
Expand Up @@ -3426,13 +3426,15 @@ private static void Warrior(IDictionary<string, List<Enchantment>> cards)
// - REQ_TARGET_TO_PLAY = 0
// --------------------------------------------------------
cards.Add("EX1_391", new List<Enchantment> {
// TODO [EX1_391] Slam && Test: Slam_EX1_391
new Enchantment
{
Activation = EnchantmentActivation.SPELL,
SingleTask = null,
},
});
new Enchantment
{
Activation = EnchantmentActivation.SPELL,
SingleTask = ComplexTask.Create(
new DamageTask(2, EntityType.TARGET, true),
new SelfConditionTask(EntityType.TARGET, SelfCondition.IsNotDead),
new FlagTask(true, new DrawTask()))
},
});

// ---------------------------------------- SPELL - WARRIOR
// [EX1_392] Battle Rage - COST:2
Expand Down
32 changes: 18 additions & 14 deletions SabberStoneXTest/Expert1CardsGenTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -4169,20 +4169,19 @@ public void Rampage_CS2_104()
Assert.Equal(7, ((Minion)minion1).Health);
}

// ---------------------------------------- SPELL - WARRIOR
// [EX1_391] Slam - COST:2
// - Fac: neutral, Set: expert1, Rarity: common
// --------------------------------------------------------
// Text: Deal $2 damage to a minion. If it survives, draw a card. *spelldmg
// --------------------------------------------------------
// PlayReq:
// - REQ_MINION_TARGET = 0
// - REQ_TARGET_TO_PLAY = 0
// --------------------------------------------------------
[Fact(Skip="NotImplemented")]
// ---------------------------------------- SPELL - WARRIOR
// [EX1_391] Slam - COST:2
// - Fac: neutral, Set: expert1, Rarity: common
// --------------------------------------------------------
// Text: Deal $2 damage to a minion. If it survives, draw a card. *spelldmg
// --------------------------------------------------------
// PlayReq:
// - REQ_MINION_TARGET = 0
// - REQ_TARGET_TO_PLAY = 0
// --------------------------------------------------------
[Fact]
public void Slam_EX1_391()
{
// TODO Slam_EX1_391 test
var game = new Game(new GameConfig
{
StartPlayer = 1,
Expand All @@ -4193,8 +4192,13 @@ public void Slam_EX1_391()
game.StartGame();
game.Player1.BaseMana = 10;
game.Player2.BaseMana = 10;
//var testCard = Generic.DrawCard(game.CurrentPlayer,Cards.FromName("Slam"));
}
var testCard = Generic.DrawCard(game.CurrentPlayer,Cards.FromName("Slam"));
var minion = Generic.DrawCard(game.CurrentPlayer, Cards.FromName("Chillwind Yeti"));
game.Process(PlayCardTask.Minion(game.CurrentPlayer, minion));
Assert.Equal(5, game.CurrentPlayer.Hand.Count);
game.Process(PlayCardTask.SpellTarget(game.CurrentPlayer, testCard, minion));
Assert.Equal(5, game.CurrentPlayer.Hand.Count);
}

// ---------------------------------------- SPELL - WARRIOR
// [EX1_392] Battle Rage - COST:2
Expand Down

0 comments on commit 48673dc

Please sign in to comment.