private int GetExtraDamage(CardState thisCard) { CardStateModifiers cardStateModifiers = thisCard.GetCardStateModifiers(); CardStateModifiers temporaryCardStateModifiers = thisCard.GetTemporaryCardStateModifiers(); return(CardStateModifiers.GetUpgradedStatValue(CardStateModifiers.GetUpgradedStatValue(0, CardStateModifiers.StatType.Damage, cardStateModifiers), CardStateModifiers.StatType.Damage, temporaryCardStateModifiers)); }
static void Postfix(CardEffectState __instance, ref int __result, int startingParam) { CardStateModifiers cardStateModifiers = null; CardStateModifiers cardStateModifiers2 = null; if (__instance.GetParentCardState() != null) { cardStateModifiers = __instance.GetParentCardState().GetCardStateModifiers(); cardStateModifiers2 = __instance.GetParentCardState().GetTemporaryCardStateModifiers(); } if (__instance.GetCardEffect() is CardEffectEmberwave) { __result = CardStateModifiers.GetUpgradedStatValue(__result, CardStateModifiers.StatType.Damage, cardStateModifiers); __result = CardStateModifiers.GetUpgradedStatValue(__result, CardStateModifiers.StatType.Damage, cardStateModifiers2); } }