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); }
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); }