Keyword Reduction
Post MTG Forge Related Programming Questions Here
Moderators: timmermac, Blacksmith, KrazyTheFox, Agetian, friarsol, CCGHQ Admins
3 posts
• Page 1 of 1
Keyword Reduction
by friarsol » 11 Jul 2011, 03:20
I was looking through some of the available Keywords during my Attach AI Improvements and found a bunch of the old "Islandhome" and company keywords hanging out in this function CombatUtil.canAttackNextTurn()
It seems to me most of the cards/keywords referenced in here can be converted to a Continuous Static of CARDNAME can't attack.
Cards:
Peacekeeper
Harbor Serpent
Blazing Archon
Reverence
Ensnaring Bridge
Kulrath Knight ? (not sure if we have "Any" for Counter checking)
Keywords:
CARDNAME can't attack if defending player controls an untapped creature with power ...
CARDNAME can't attack unless defending player controls an Island.
CARDNAME can't attack unless defending player controls a Forest.
CARDNAME can't attack unless defending player controls a Swamp.
CARDNAME can't attack unless defending player controls a Mountain.
CARDNAME can't attack unless defending player controls a snow land.
CARDNAME can't attack unless defending player controls a blue permanent.
In addition, I was curious on everyone's thoughts about splitting cards like Pacifism into granting two abilities: CARDNAME can't attack & CARDNAME can't block instead of CARDNAME can't attack or block. While this reduction is mostly cosmetic, it might make things easier for any necessary Keyword comparison if they were granted separately.
At some point we'll need to make the distinction between some of these "Can't Attack You" cards, as Creatures can still attack your Planeswalkers with a Blazing Archon in play.
It seems to me most of the cards/keywords referenced in here can be converted to a Continuous Static of CARDNAME can't attack.
Cards:
Peacekeeper
Harbor Serpent
Blazing Archon
Reverence
Ensnaring Bridge
Kulrath Knight ? (not sure if we have "Any" for Counter checking)
Keywords:
CARDNAME can't attack if defending player controls an untapped creature with power ...
CARDNAME can't attack unless defending player controls an Island.
CARDNAME can't attack unless defending player controls a Forest.
CARDNAME can't attack unless defending player controls a Swamp.
CARDNAME can't attack unless defending player controls a Mountain.
CARDNAME can't attack unless defending player controls a snow land.
CARDNAME can't attack unless defending player controls a blue permanent.
In addition, I was curious on everyone's thoughts about splitting cards like Pacifism into granting two abilities: CARDNAME can't attack & CARDNAME can't block instead of CARDNAME can't attack or block. While this reduction is mostly cosmetic, it might make things easier for any necessary Keyword comparison if they were granted separately.
At some point we'll need to make the distinction between some of these "Can't Attack You" cards, as Creatures can still attack your Planeswalkers with a Blazing Archon in play.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
Re: Keyword Reduction
by jeffwadsworth » 11 Jul 2011, 17:06
I can convert the rest of those cards over once I finish with the stPumpSelf stuff. I will try to separate the attack/block keywords.
Speaking of keywords, I haven't seen anyone offer an opinion on the Levelers...so I am leaving them alone for now.
Speaking of keywords, I haven't seen anyone offer an opinion on the Levelers...so I am leaving them alone for now.
- jeffwadsworth
- Super Tester Elite
- Posts: 1172
- Joined: 20 Oct 2010, 04:47
- Location: USA
- Has thanked: 287 times
- Been thanked: 70 times
Re: Keyword Reduction
by friarsol » 12 Jul 2011, 01:34
When you first mentioned Levelers I thought you meant Leveler and was confused, but you meant the Level Up dudes. It might be fine to convert them. I believe their PT is set at the same time a */* dudes are set (Characteristic Defining abilities) so it might be fine to do them all the same way. I think Sloth was working on some code to handle CDAs and generic Setting, so maybe just hold off until he's done with the layering code.jeffwadsworth wrote:Speaking of keywords, I haven't seen anyone offer an opinion on the Levelers...so I am leaving them alone for now.
- friarsol
- Global Moderator
- Posts: 7593
- Joined: 15 May 2010, 04:20
- Has thanked: 243 times
- Been thanked: 965 times
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 37 guests