SotMSteamMods / CauldronMods

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

1579 wasteland ronin cricket incap not working correctly #1686

Closed origamiswami closed 5 months ago

origamiswami commented 7 months ago

The issue here was that if you reload the game after Wasteland Ronin Cricket is incapped and replaced with a new hero, her second incap ability does not work. It will create the status effect, but not allow you to use the power twice.

The cause of the issue was that in AddSideTriggers(), Cricket is checking if base.CharacterCard is flipped before adding the trigger for incap 2. Since Cricket was replaced with a new hero, base.CharacterCard now refers to that hero's character card, which is not flipped, so when the game is reloaded it never adds the trigger to make the incap ability work. It works before reloading because in that case, the trigger is added when Cricket flips.

The fix is to check if base.Card is flipped instead of base.CharacterCard.