Пример #1
0
bool QiceCard::targetFilter(const QList<const Player *> &targets, const Player *to_select, const Player *Self) const{
    CardStar card = Sanguosha->cloneCard(user_string, getSuit(this->getSubcards()), getNumber(this->getSubcards()));
    return card && card->targetFilter(targets, to_select, Self) && !Self->isProhibited(to_select, card);
}
Пример #2
0
bool DaojuCard::targetFilter(const QList<const Player *> &targets, const Player *to_select, const Player *Self) const{
    CardStar card = Sanguosha->getCard(Self->getPile("gui").first());
    return card && card->targetFilter(targets, to_select, Self) && !Self->isProhibited(to_select, card);
}