private static void BlankFace(EntitySnapshot caim, IList <RaidAction> raidActions) { var lastAbility = caim.Raid.GetLastAbilityUsed(); if (lastAbility != null) { if (lastAbility.Type == Ability.Types.AbilityType.Offensive) { caim.GlobalState["blank_face"] = TypedValue.FromString("spades"); if (caim.PositionInFrontline < 4) { SpadesPreparation().Cast(caim, raidActions); } } else if (lastAbility.Type == Ability.Types.AbilityType.Healing) { caim.GlobalState["blank_face"] = TypedValue.FromString("hearts"); if (caim.PositionInFrontline < 4) { HeartsPreparation().Cast(caim, raidActions); } } else if (lastAbility.Type == Ability.Types.AbilityType.Support) { caim.GlobalState["blank_face"] = TypedValue.FromString("diamonds"); if (caim.PositionInFrontline < 4) { DiamondsPreparation().Cast(caim, raidActions); } } else if (lastAbility.Type == Ability.Types.AbilityType.Defensive) { caim.GlobalState["blank_face"] = TypedValue.FromString("clubs"); if (caim.PositionInFrontline < 4) { ClubsPreparation().Cast(caim, raidActions); } } } }