Exemple #1
0
        static IEnumerator Postfix(IEnumerator __result, CombatManager __instance, RoomState room)
        {
            ProviderManager.TryGetProvider <RoomManager>(out RoomManager roomManager);

            List <CharacterState> targets = new List <CharacterState>();

            room.AddCharactersToList(targets, Team.Type.Heroes);

            yield return(WardManager.TriggerWards("RandomDamage", room.GetRoomIndex(), targets));

            yield return(__result);
        }
 static IEnumerator Postfix(IEnumerator __result, CharacterState __instance, CardState damageSourceCard, CharacterState attacker)
 {
     if (!__instance.IsDead || ProviderManager.SaveManager.PreviewMode)
     {
         yield break;
     }
     if (__instance.GetSpawnPoint() != null && __instance.GetSpawnPoint().GetRoomOwner() != null)
     {
         yield return(WardManager.TriggerWards("PyreHarvest", __instance.GetCurrentRoomIndex()));
     }
     yield return(__result);
 }