SotMSteamMods / CauldronMods

Mod adaptations of the Cauldron decks for Sentinels of the Multiverse for Steam Workshop
MIT License
15 stars 9 forks source link

Knight's equipment targets vs Imbued Vitality #1682

Closed jamespicone closed 7 months ago

jamespicone commented 7 months ago

Describe the bug If one of the Knight's equipment targets is out of play when Imbued Vitality is destroyed, it stops being a target.

What does it affect Card(s): Plate Helm, Plate Mail Deck(s): The Knight

To Reproduce Steps to reproduce the behavior:

  1. Play Imbued Vitality
  2. Destroy Imbued Vitality
  3. Look at any equipment targets in The Knight's deck.

Unit test:

        [Test]
        public void Armor_ImbuedVitalityOutOfPlay([Values("PlateHelm", "PlateMail")] string armor)
        {
            SetupGameController("GrandWarlordVoss", HeroNamespace, "RealmOfDiscord");
            StartGame();

            //nuke all baron blades cards so his ongoings don't break tests
            DestroyCards((Card c) => c.IsVillain && c.IsInPlayAndHasGameText && !c.IsCharacter);
            DiscardAllCards(knight);

            var target = PutInHand(knight, armor);
            int targetHP = armor == "PlateHelm" ? 3 : 5;
            GoToPlayCardPhase(knight);

            PrintSeparator("Test");

            var imbue = PlayCard("ImbuedVitality");
            AssertIsTarget(target, 6);

            DestroyCard(imbue);
            AssertIsTarget(target, targetHP);
        }
jamespicone commented 7 months ago

Reported on discord by n202015226ac