SpellAbility_Restriction
I just submitted the early code for SpellAbility_Restriction. The point of this code is to allow for altering of some default values of when an Ability can be activated.
At this time, only ActivatingZone is available through SA_Restriction. But this will allow us to use cards that have Channel, Reinforce (and lots of others).
ActivatingZone is only being checked for in the base AbilityFactory, and will set SA_Restriction appropriately. As our AbilityFactories grow, we will be able to support more and more corner cases without extra code blocks.
Here is one of the two Channel creatures that I submitted.
At this time, only ActivatingZone is available through SA_Restriction. But this will allow us to use cards that have Channel, Reinforce (and lots of others).
ActivatingZone is only being checked for in the base AbilityFactory, and will set SA_Restriction appropriately. As our AbilityFactories grow, we will be able to support more and more corner cases without extra code blocks.
Here is one of the two Channel creatures that I submitted.
- Code: Select all
Name:Ghost-Lit Raider
ManaCost:2 R
Types:Creature Spirit
Text:no text
A:AB$DealDamage|Cost$2 R T|Tgt$TgtC|NumDmg$2|SpellDescription$CARDNAME deals 2 damage to target creature.
A:AB$DealDamage|Cost$3 R Discard<1/CARDNAME>|Tgt$TgtC|NumDmg$4|ActivatingZone$Hand|SpellDescription$CARDNAME deals 4 damage to target creature.
PT:2/1
SVar:Rarity:Uncommon
SVar:Picture:http://www.wizards.com/global/images/magic/general/ghost_lit_raider.jpg
End
- Code: Select all
Name:Mosquito Guard
ManaCost:W
Types:Creature Kithkin Soldier
Text:no text
K:First Strike
A:AB$PutCounter|Cost$1 W Discard<1/CARDNAME>|Tgt$TgtC|CounterType$P1P1|ActivatingZone$Hand|CounterNum$1|SpellDescription$Put a +1/+1 counter on target creature.
PT:1/1
SVar:Rarity:Common
SVar:Picture:http://www.wizards.com/global/images/magic/general/mosquito_guard.jpg
End