IceYGO / windbot

A C# bot for ygopro, compatible with the ygosharp server.
MIT License
80 stars 103 forks source link

How to distinguish same cards with different additional information #154

Open Kuleres opened 1 year ago

Kuleres commented 1 year ago

我在编写关于珠泪的融合效果的过程中遇到了如下的问题: 同一区域内的多张同名卡中的一张在连锁上发动效果的情况下,我希望使用SelectCard()选择那些卡中未在连锁上发动过效果的一张卡。但这一方法并不能区分他们。 如何区分同一卡名的多张卡当中有附加信息的卡并选择他们? I encountered the following problems in the process of writing about the fusion effect of [Tearalaments]: When one of the multiple cards with the same name in the same area activate an effect on the chain, I want to use SelectCard() to select the one that has not activated the effect on the chain. But this function can't distinguish them. How to distinguish the cards with additional information among multiple cards with the same card name and select them?

mercury233 commented 1 year ago

Duel.CurrentChain包含当前连锁上的卡,所以可以遍历得到要选的ClientCard,再用SelectCard