Exemplo n.º 1
0
 /// <summary>
 /// Can this entity be played (attack, summon, etc) on the slot?
 /// </summary>
 /// <param name="entity"></param>
 /// <param name="slot"></param>
 /// <returns></returns>
 public bool IsValidPlay(GameEntity entity, UnitSlot slot)
 {
     if (AwaitingAck)
     {
         return(false);
     }
     // If we have a command filter, that can say that some plays are invalid:
     if (commandFilter != null)
     {
         if (!commandFilter.IsValidPlay(entity, slot))
         {
             return(false);
         }
     }
     if (validPlays != null)
     {
         return(validPlays.IsValidPlay(entity, slot));
     }
     return(false);
 }