Esempio n. 1
0
 public override bool CanBePlaced(TurnInfo TI, CardZoneType CZ)
 {
     if (TI.IsDeployment())
     {
         return(false);
     }
     if (mIsShared)
     {
         return(CZ.getType() == ZoneType.SharedEffect);
     }
     else
     {
         return(CZ.getType() == ZoneType.Effect && CZ.getOwnerIndex() == GetOwnerIndex());
     }
 }
        public void CardPlaced(UICard PlacedCard, CardZoneType PlacedZone)
        {
            if (PlacedCard.GetEntity().IsUnit() == (PlacedZone.getType() == ZoneType.Field))
            {
                RemoveFromList(PlacedCard.GetEntity());
                // Hack? Use owner index to specify whether this
                // is a deck zone or a library zone.
                // 0 = Deck
                // 1 = Library
                if (PlacedZone.getOwnerIndex() == 0)
                {
                    mDeckCards.AddCard(PlacedCard.GetEntity());
                }
                else
                {
                    mLibraryCards.AddCard(PlacedCard.GetEntity());
                }

                if (VerifyDeck())
                {
                    UpdateCardCollection();
                }
            }
        }
Esempio n. 3
0
 public override bool CanBePlaced(TurnInfo TI, CardZoneType CZ)
 {
     return(CZ.getType() == ZoneType.Field && CZ.getOwnerIndex() == GetOwnerIndex() && CanBeRange(CZ.getRange()));
 }