Esempio n. 1
0
        public void UseSideKick(LiveMonster lm, ActiveCard card)
        {
            if (!CheckUseCard(card))
            {
                return;
            }

            try
            {
                Monster mon = new Monster(card.CardId);
                mon.UpgradeToLevel(card.Level);
                BattleManager.Instance.BattleInfo.GetPlayer(IsLeft).MonsterAdd++;

                var tWeapon = new SideKickWeapon(lm, card.Level, mon);
                lm.AddWeapon(tWeapon);
            }
            catch (Exception e)
            {
                NLog.Warn(e);
                BattleManager.Instance.FlowWordQueue.Add(new FlowWord("未知错误", lm.Position, 0, "Red", 26, 0, 0, 2, 15), false);
                return;
            }

            CardManager.DeleteCardAt(SelectId);
        }
Esempio n. 2
0
        public IBattleWeapon GetCopy()
        {
            SideKickWeapon newWeapon = new SideKickWeapon(self, Level, avatar);

            return(newWeapon);
        }
Esempio n. 3
0
 public IBattleWeapon GetCopy()
 {
     SideKickWeapon newWeapon = new SideKickWeapon(self, Level, avatar);
     return newWeapon;
 }