public void StartTourn()
        {
            comm = Communication.Communicator.getInstance();
            myRound = true;
            shaman.mana.setPoolFlag(false);
            if (shaman.cardsOnBoard != null)
                if (shaman.cardsOnBoard.Count != 0)
                {
                    foreach (Elemental elemTemp in shaman.cardsOnBoard)
                        if (elemTemp.type == Enums.Type.Elemental)
                        {
                            elemTemp.hasAttacked = false;
                            elemTemp.hasAttackedThunderborn = false;
                            elemTemp.hasWeakness = false;
                        }
                    foreach (Card cardTemp in shaman.cardsOnBoard)
                        cardTemp.CanUsePowers = true;
                }
            
            PowersCooldowns(); // scala clock poteri.

            if (opponent.cardsOnBoard != null)
                if (opponent.cardsOnBoard.Count != 0)
                    foreach (Elemental elemTemp in opponent.cardsOnBoard) // poison scalato.
                        if (elemTemp.debuff.Contains(Enums.Debuff.Poison))
                        {
                            foreach (Enums.Debuff deBuff in elemTemp.debuff)
                                elemTemp.hp -= 1;
                            comm.UpdateElemental(elemTemp);
                        }




            comm.setRound(myRound);//invio la chiamata in locale
            comm.ChoseMana(Enums.ManaEvent.NewRound); //Chiedo di selezionare il mana che prendo in manaAtStart
        }
Example #2
0
 public void StartTourn()
 {
     comm = Communication.Communicator.getInstance();
     myRound = true;
     shaman.mana.setPoolFlag(false);
     if (shaman.cardsOnBoard != null)
         if (shaman.cardsOnBoard.Count != 0)
             foreach (Elemental elemTemp in shaman.cardsOnBoard)
                 if (elemTemp.type == Enums.Type.Elemental)
                 {
                     elemTemp.hasAttacked = false;
                     elemTemp.hasAttackedThunderborn = false;
                     elemTemp.hasWeakness = false;
                 }
                     
     comm.setRound(myRound);//invio la chiamata in locale
     comm.ChoseMana(Enums.ManaEvent.NewRound); //Chiedo di selezionare il mana che prendo in manaAtStart
 }