Page 1 of 1

static mana ability pump for basic lands

PostPosted: 08 May 2011, 17:17
by slapshot5
I think we could simplify several things in our code if we made a static ability pump for basic land types. That way, we could just look at types and assign abilities "on the fly" so to speak.

Example:
Things like Tidal Warrior could just use AF_Animate to change type to Island, then the static pump would handle the mana ability. Also useful for Blood Moon, Urborg, Tomb of Yawgmoth, etc.

Thoughts? Potential hangups?

-slapshot5

Re: static mana ability pump for basic lands

PostPosted: 08 May 2011, 18:41
by friarsol
slapshot5 wrote:I think we could simplify several things in our code if we made a static ability pump for basic land types. That way, we could just look at types and assign abilities "on the fly" so to speak.

Example:
Things like Tidal Warrior could just use AF_Animate to change type to Island, then the static pump would handle the mana ability. Also useful for Blood Moon, Urborg, Tomb of Yawgmoth, etc.

Thoughts? Potential hangups?

-slapshot5
Agreed. When I was converting AFs for Mana I was thinking it would be so much easier for the 5 basic land types to be granted mana abilities, instead of having it written out.

Can Animate handle hiding existing abilities that the card already has?

Re: static mana ability pump for basic lands

PostPosted: 08 May 2011, 20:54
by slapshot5
friarsol wrote:Can Animate handle hiding existing abilities that the card already has?
Not currently. It can overwrite types and colors only.

-slapshot5

Re: static mana ability pump for basic lands

PostPosted: 08 May 2011, 21:04
by slapshot5
So, I suppose I can just put a call to:

GameActionUtil.stLandManaAbilities.execute() in GameAction.checkStateEffects()?

Or is there a better way to handle it?

Re: static mana ability pump for basic lands

PostPosted: 09 May 2011, 02:33
by slapshot5
I've checked something in for this. If you see any problems with basic lands or dual lands with the basic land types, or the auras that change land types, please let me know.

-slapshot5

Re: static mana ability pump for basic lands

PostPosted: 09 May 2011, 15:57
by slapshot5
Also, are there any other cards in Forge that will need to be updated for this? It's not easy to search the source code for things that would need to be changed.

-slapshot5

Re: static mana ability pump for basic lands

PostPosted: 09 May 2011, 17:09
by Sloth
slapshot5 wrote:Also, are there any other cards in Forge that will need to be updated for this? It's not easy to search the source code for things that would need to be changed.

-slapshot5
Maybe Spreading Seas and friends?

Re: static mana ability pump for basic lands

PostPosted: 09 May 2011, 20:00
by slapshot5
I got the auras. They should work.

-slapshot5