Skip to content

Commit

Permalink
Fix Pressure Plate
Browse files Browse the repository at this point in the history
  • Loading branch information
azeier committed Aug 6, 2019
1 parent acefd98 commit 7c9a0a6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion HDTTests/Hearthstone/Secrets/SecretEventHandlerTest.cs
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public void SingleSecret_MinionOnBoard_NoMinionTarget_SpellPlayed()
_opponentMinion1.SetTag(GameTag.ZONE, (int)Zone.PLAY);
_game.SecretsManager.HandleCardPlayed(_playerSpell2);
_game.GameTime.Time += TimeSpan.FromSeconds(1);
VerifySecrets(0, HunterSecrets.All, HunterSecrets.CatTrick, HunterSecrets.PressurePlate);
VerifySecrets(0, HunterSecrets.All, HunterSecrets.CatTrick);
VerifySecrets(1, MageSecrets.All, MageSecrets.Counterspell, MageSecrets.ManaBind);
VerifySecrets(2, PaladinSecrets.All, PaladinSecrets.NeverSurrender);
VerifySecrets(3, RogueSecrets.All);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -290,10 +290,7 @@ public async void HandleCardPlayed(Entity entity)
exclude.Add(Mage.Counterspell);

if(Game.OpponentMinionCount > 0)
{
exclude.Add(Paladin.NeverSurrender);
exclude.Add(Hunter.PressurePlate);
}

if(Game.OpponentHandCount < 10)
exclude.Add(Mage.ManaBind);
Expand All @@ -307,6 +304,9 @@ public async void HandleCardPlayed(Entity entity)
exclude.Add(Mage.Spellbender);
exclude.Add(Hunter.CatTrick);
}

if (Game.PlayerMinionCount > 0)
exclude.Add(Hunter.PressurePlate);
}
else if(entity.IsMinion && Game.PlayerMinionCount > 3)
exclude.Add(Paladin.SacredTrial);
Expand Down

0 comments on commit 7c9a0a6

Please sign in to comment.