NeoAnderson wrote:This is exactly the approach i would have to implement delve ability, i made something similar with morph, but there will be anyway a situation not considered, if one of these card lose its abilities.. you cannot check this condition, so in that case you still retrieve a wrong value.
Yeah, I considered exactly that, but I figure while it IS a distinct possibility, it's not something I imagine happening often enough to
worry about. If we could find a way to fix it, that would be great, but if not, I think it would be acceptable to play with that known limitation.
Although, this brings me to an interesting question, so I'll ask here where I've got both you and Tejahn who code a lot. Do you think it would be plausible to create an ability which has no effect on the card or its other abilities, but which could be checked for? If so, then for the community wad, at the very least, I could VERY easily add in a chunk of code which is automatically added to all permanents. That could allow the checking of those permanents for this sudo-ability. If the ability exists, then the permanent has its abilities active. If the check returns nothing (or preferably a different value), then its abilities have been removed. On the surface, just because it affects every card, it seems like it would be a lot of work, but if we had a working block of code, I could insert that with very little effort.
What I'm thinking is perhaps a static ability which sets an ObjectDC value for that card. Removing all abilities removes this static ability, which is a reliable way to know that at least not all abilities have been removed. The issue would be that for cards that DON'T have this block, it would always think it lost its abilities. Thoughts?
Tejahn wrote:Thanks Xander9009! I'll get a look at those as well.
Ok. Just keep in mind if it says "[color] and [another color]", it means it actually originally said "[color] spells and [another color] spells". I removed the first "spells" to make it work with the function. It does NOT mean it needs to be both colors.