<commit_before>/**
 * Created by ionagamed on 8/23/16.
 */

import { Card } from '../../../Card';

export class Race extends Card {
    canBeWielded(player, table) {
        if (player.hasCardWielded('half-breed')) {
            return player.cardsOfTypeWielded('class') < 2;
        } else {
            return player.cardsOfTypeWielded('class') < 1;
        }
    }

    canBeHeld(player, table) {
        if (player.hasCardWielded('half-breed')) {
            return player.cardsOfTypeWielded('class') <= 2;
        } else {
            return player.cardsOfTypeWielded('class') <= 1;
        }
    }
}<commit_msg>logic<commit_after>/**
 * Created by ionagamed on 8/23/16.
 */

import { Card } from '../../../Card';

export class Race extends Card {
    canBeWielded(player, table) {
        if (player.hasCardWielded('half-breed')) {
            return player.cardsOfTypeWielded('race') < 2;
        } else {
            return player.cardsOfTypeWielded('race') < 1;
        }
    }

    canBeHeld(player, table) {
        if (player.hasCardWielded('half-breed')) {
            return player.cardsOfTypeWielded('race') <= 2;
        } else {
            return player.cardsOfTypeWielded('race') <= 1;
        }
    }
}
{'fraction_non_alphanumeric': 0.15057283142389524, 'fraction_numerical': 0.014729950900163666, 'mean_word_length': 2.0962025316455697, 'pattern_counts': {'":': 0, '<': 11, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5981029', 'n_tokens_mistral': 416, 'n_tokens_neox': 395, 'n_words': 74}