Пример #1
0
        private bool TyrionLannister()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "Тирион_Ланнистер");

            if (holder != null)
            {
                if (holder.LastStep.BattleUser.AdditionalEffect == null)
                {
                    Step newStep = holder.LastStep.CopyStep("Тирион_Ланнистер", false);
                    newStep.NewMessage("dynamic_planning*stepType_Тирион_Ланнистер");
                    return(true);
                }
                else if (holder.LastStep.BattleUser.AdditionalEffect != string.Empty &&
                         holder.LastStep.BattleUser.AdditionalEffect != "Block")
                {
                    //разблокировка карты соперника
                    GameUser     opponent     = BattleUsers.First(p => p != holder);
                    UsedHomeCard usedHomeCard = opponent.LastStep.GameUserInfo.UsedHomeCard.SingleOrDefault(p => p.HomeCardType == holder.LastStep.BattleUser.AdditionalEffect);
                    if (usedHomeCard != null)
                    {
                        opponent.LastStep.GameUserInfo.UsedHomeCard.Remove(usedHomeCard);
                    }
                }
            }

            return(false);
        }
Пример #2
0
        private void SalladhorSaan()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "Салладор_Саан" &&
                                                         p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                holder.LastStep.GetStrength();
            }
        }
Пример #3
0
        private bool dragon_Queen_of_Thorns()
        {
            var holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "dragon_Queen_of_Thorns" &&
                                                    p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                holder.LastStep.NewMessage("dynamic_heroRage*hero_dragon_Queen_of_Thorns*rageEffect_30");
                var opponent = BattleUsers.Single(p => p != holder);
                opponent.LastStep.BattleUser.AdditionalEffect = "Block";
            }

            return(false);
        }
Пример #4
0
        private bool DoranMartell()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "Доран_Мартелл" &&
                                                         p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                Step newStep = holder.LastStep.CopyStep("Доран_Мартелл", false);
                newStep.NewMessage("dynamic_planning*stepType_Доран_Мартелл");
                return(true);
            }

            return(false);
        }
Пример #5
0
        private bool QueenofThornes()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "Королева_Шипов" &&
                                                         p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                Step newStep = holder.LastStep.CopyStep("Королева_Шипов", false);
                newStep.NewMessage("dynamic_planning*stepType_Королева_Шипов");
                return(true);
            }

            return(false);
        }
Пример #6
0
        private void dragon_Walder_Frey()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "dragon_Walder_Frey" &&
                                                         p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                _Game.LastHomeSteps.Where(p => p.Support != null && p.Support.BattleId == this.Id)
                .Where(p => BattleUsers.All(p1 => p1.Id != p.GameUser))
                .ToList().ForEach(p =>
                {
                    var newStep = p.CopyStep("Default", true);
                    newStep.NewMessage("dynamic_heroRage*hero_dragon_Walder_Frey*rageEffect_0");
                    newStep.Support.SupportUser = holder.Id;
                });
            }
        }
Пример #7
0
        private bool dragon_Qyburn()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "dragon_Qyburn" &&
                                                         p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                if (holder.LastStep.GameUserInfo.Power < 2 || _Game.LastHomeSteps.All(p => p.GameUserInfo.UsedHomeCard.Count == 0))
                {
                    return(false);
                }

                Step newStep = holder.LastStep.CopyStep("dragon_Qyburn", false);
                newStep.NewMessage("dynamic_planning*stepType_dragon_Qyburn");
                return(true);
            }

            return(false);
        }
Пример #8
0
        private bool AeronDamphair()
        {
            GameUser holder = BattleUsers.FirstOrDefault(p => p.LastStep.BattleUser.HomeCardType == "Эйерон_Сыровласый" &&
                                                         p.LastStep.BattleUser.AdditionalEffect == null);

            if (holder != null)
            {
                if (holder.LastStep.GameUserInfo.Power < 2 || holder.LastStep.GameUserInfo.UsedHomeCard.Count >= 6)
                {
                    return(false);
                }

                Step newStep = holder.LastStep.CopyStep("Эйерон_Сыровласый", false);
                newStep.NewMessage("dynamic_planning*stepType_Эйерон_Сыровласый");
                return(true);
            }

            return(false);
        }