nachonal986 wrote:Xander9009 wrote:nachonal986 wrote:sorry, but somebody could code
Cairn Wanderer and gift of immortality?
You wouldn't be able to do protection unless you literally list every possible protection ability and check for all permanents with that type of protection. Or perhaps a function to check for permanents in graveyards with protection abilities, adding those types to a filter as it goes. This way it would only be one ability, rather than a hundred. It would still be very difficult.
sorry, is coded into CW, and works ok, so only,
Cairn Wanderer it's possible to do?
and there exist anothers enchantments for copy or creature to do something like these?
Searching Gatherer for any cards with flying, lifelink, and deathtouch (just because these should all three appear on any cards with this kind of ability), I only see two.
Cairn Wanderer and
Soulflayer. I coded
Soulflayer, and it works. But it doesn't consider any protection abilities. As for things that copy things, that's always done as a copy of the entire card. Never a
part of a card, such as a single ability.
As for the protection abilities, I've gone through and indexed the abilities. As far as already coded cards go, there are 26 different kinds of protection.
- | Open
- White
Blue
Black
Red
Green
Colored Spells
Multicolored
Monocolored
Artifacts
Enchantments
Creatures
Instants
Lands
Sorceries*
CMC >= 3
Beasts
Clerics
Demons
Dragons
Elves
Goblins
Kavu
Non-Spirits
Vampires
Werewolves
Zombies
Everything
*Sorceries is never used as an innate protection ability.
There are of course MANY cards (183) with one or more of these abilities. I'm considering how we can handle protection. I think the best way to go is to have an RSN_ObjectDC chest with 3 subchests. Those 3 subchests would contain the three possible parameters for filters, in order.
Progenitus,
Emrakul, the Aeons Torn, and players will all require special code, but everything else should be able to be handled with just those chests. I'm not sure how to handle the fact that it's an ability and thus could be lost. Riiak, maybe you'll have an idea here.
My current thought is to have a custom characteristic for protection. But it would also need another manager (unless the custom characteristic manager is altered) to reset that chest on those cards at some layer less than 6, where protection abilities are set. This way, if they ever lose their abilities, the chest on that card is nullified, and any checks for protection will return false.