Пример #1
0
 public void discard_attachment(AttachmentCard attachment)
 {
     if (has_attachment(attachment))
     {
         for (var i = 0; i < my_attachments.Count; i++)
         {
             if (my_attachments[i] == attachment)
             {
                 //maybe do an event whatever
                 if (attachment.get_name() == AttachmentCard.STEWARD_OF_GONDOR().get_name())
                 {
                     remove_trait(LOTRGame.TRAITS.GONDOR);
                 }
                 if (attachment.get_name() == AttachmentCard.CELEBRIANS_STONE().get_name())
                 {
                     remove_flag(LOTRAbility.ABILITY_FLAGS.CELEBRIANS_STONE);
                 }
                 my_attachments.RemoveAt(i);
                 break;
             }
         }
     }
 }