jendave
825df6fc0f
- Minor edits to the spReturnTgt docs that are included with the code.
2011-08-06 09:05:17 +00:00
jendave
e646c1d4ce
- Fixed spReturnTgt and it will no longer give a null when using Urborg Uprising.
2011-08-06 09:02:24 +00:00
jendave
4e6e113588
- Replace isCurse parsing with a simple isCurse() function in AbilityFactory
...
- Tweaked AbilityCost toString function for Spells
- Additional costs now displayed for Spells using AbilityFactory
- Buyback spells now alter the abCost value for Abilities generated by AbilityFactory.
2011-08-06 09:02:12 +00:00
jendave
353b104abc
1) fix many instances of subtractLife when it should be addDamage
...
2) convert Mogg Fanatic to keyword.
2011-08-06 08:59:39 +00:00
jendave
8b7fe1f853
- Added the destination battlefield to spTutor.
...
- Added Search for Tomorrow, Spoils of Victory and Untamed Wilds.
2011-08-06 08:58:29 +00:00
jendave
b9f7457fc2
- Added Unearth and changed spReturnTgt code to include a spell description parameter which in turn allowed a cycling card to be added.
2011-08-06 08:57:24 +00:00
jendave
f9d481d5a6
Third draft of AbilityFactory. Overwrites changes in AbilityFactory from r2620.
...
Renamed DealDamage to AbilityFactory_DealDamage. Now supports the spell version. (Shock)
All static modifiers removed.
Added support for Buyback in the CardFactory handler for AbilityFactory cards.
2011-08-06 08:57:11 +00:00
jendave
aab152403a
- Changed "Return Up To" to "UpTo" in both Urborg Uprising and to spReturnTgt.
2011-08-06 08:57:01 +00:00
jendave
f16b280138
- Removing Static from Member Variables of AbilityFactory so they are not shared between cards.
...
- Create a new AbilityFactory for each time AF is used to prevent issues with Factory not being fresh.
- Added AbilityFactory_Counters.java for AFs that deal with putting or removing counters from cards
- Added createAbilityPutCounters for Abilities that put Counters on cards.
- Added Amok, Fume Spitter, and Trigon of Corruption as Samples of using PutCounter
2011-08-06 08:56:40 +00:00
jendave
4acf803f0f
- Converted Reclaim to the spReturnTgt keyword and deleted the unneeded code block. Modified the spReturnTgt code to handle to top of library.
2011-08-06 08:56:11 +00:00
jendave
4aa2e488aa
- Modified spReturnTgt to handle the four Resurrection type spells that are included in forge.
2011-08-06 08:55:38 +00:00
jendave
e85abcc5ba
Re-structured AbilityFactory. AbilityFactory actually provides interfaces to reference universal parameters.
...
Moved DealDamage ability code to dedicated class, DealDamage.
Picked apart DealDamage Ability_Activated code into helper methods common to both the Spell version and Ability version.
2011-08-06 08:55:28 +00:00
jendave
ca2ba50e6a
- Deleted the old spRaiseDead keyword code.
2011-08-06 08:55:15 +00:00
jendave
708df24f92
- First draft of an overdue keyword, spReturnTgt. This will replace the spRaiseDead keyword. It should also handle Resurrect type spells as it can be set to return a card from graveyard to hand or battlefield.
...
- This keyword required two new methods to be added to SpellAbility.java. The new methods getTargetList() and setTargetList() is needed for the spReturnTgt input. Some of the spReturnTgt cards return more than just a single card and I needed something similar to getTargetCard() and setTargetCard().
2011-08-06 08:54:59 +00:00
jendave
0ac10bef64
- Tweaked Ashnod's Transmogrant, Time Vault, Stuffy Doll, Tradewind Rider, Elephant Graveyard, use of AbCost and Target
...
- Changed Stuffy Doll's damage interaction to use AllZone.GameAction.addDamage
- Fixed AbilityFactory use of canPayAdditionalCost
2011-08-06 08:54:38 +00:00
jendave
202f029a2b
Initial development of AbilityFactory.
...
Only implemented "DealDamage" ability.
Prodigal Pyromancer is first card to get the makeover.
2011-08-06 08:54:25 +00:00
jendave
45846bb505
convert Voltaic Key and Wirewood Lodge to keyword.
2011-08-06 08:53:40 +00:00
jendave
dc017b1dec
- Changed Cost_Payment.canPayAdditionalCosts() to be a Static function
...
- Changed "spike" keyword to be an Activated_Ability
- Removed isSick() from abMakeToken as this is taken care of by canPayAdditionalCosts()
2011-08-06 08:53:15 +00:00
jendave
614ee44577
convert Jandor's Saddlebags to keyword.
2011-08-06 08:52:46 +00:00
jendave
206973c12c
- Changed Fading and Vanishing so they aren't removed as keywords.
...
- Updated subtractCounter to use Vanishing as a keyword.
2011-08-06 08:52:25 +00:00
jendave
e9784cfd3a
convert Deserted Temple, Earthcraft and Filigree Sages to abUntapTgt keyword.
2011-08-06 08:52:03 +00:00
jendave
8021e917b9
add new Keyword: abUntapTgt
2011-08-06 08:51:47 +00:00
jendave
97a5faf2dd
convert several cards to abTapTgt keyword
2011-08-06 08:50:24 +00:00
jendave
5a72bb65cb
add 2 keywords:
...
1) abTapTgt - abTapTarget {Ability Cost}:{Valid Targets}:{Description}
2) abTapAll - abTapAll {Ability Cost}:{Valid Targets}:{Description}
2011-08-06 08:49:47 +00:00
jendave
c30116b306
- Updated the following to their appropriate keyword: Putrid Leech, Pyrite Spellbomb, Ravenous Baloth, Sunbeam Spellbomb, Zuran Orb
...
- Updated Ability_Activated to only accept abCost constructor
- Updated the following cards to use the newer consructor: AEther Spellbomb, Lifespark Spellbomb, Necrogen Bomb, Bottle of Suleiman, Barl's Cage, Sakura-Tribe Elder, Tradewind Rider, Kargan Dragonlord, Singing Tree, Elephant Graveyard
- Updated Sakura-Tribe to be able to activate even if there are no basics left in library.
- Updated logic in canPlay() of Activated_Ability
2011-08-06 08:49:19 +00:00
jendave
33b9c85ebd
- Deleted the "1, Sacrifice CARDNAME: Draw a card." code from CardFactory.java and CardFactoryUtil.java. Converted the cards using this keyword to abDrawCards 1 Sac<1/CARDNAME>:1:Draw a card. Impacts the 5 Spellbombs and Grave-Shell Scarab.
2011-08-06 08:46:00 +00:00
jendave
a406c4cf82
simplify Saproling token creation
2011-08-06 08:45:50 +00:00
jendave
a449d07a33
- Fix for abMakeToken that caused non-Creatures to be affected by summoning sickness. (Mobilization couldn't be activated on same turn it was cast)
2011-08-06 08:45:20 +00:00
jendave
ec30912ab9
- Convert abLoseLife to use Ability Cost and Target.
...
- Cleanup in PlayerLife
- Added Necrogen Censer
2011-08-06 08:45:15 +00:00
jendave
e0803ed266
- Improved the AI of Quicksilver Amulet.
2011-08-06 08:45:02 +00:00
jendave
fbd692e1fe
abMakeToken fixes
2011-08-06 08:42:58 +00:00
jendave
506d51b672
add etbMakeToken keyword (same syntax as spMakeToken, but with an additional parameter for stack description)
2011-08-06 08:40:50 +00:00
jendave
9e0ef2fab7
- Changed the target prompt of abDamageTgtV to "Select a target: " + k[valid].
...
- Added 10 creatures with abDamageTgt.
2011-08-06 08:39:27 +00:00
jendave
22f492c3f2
add Tower of Murmurs (from Mirrodin)
2011-08-06 08:36:19 +00:00
jendave
f14d77c341
*Fixed spCounter cards with a Targets() parameter throwing null pointer exception when the spell to counter doesn't actually target anything.
2011-08-06 08:35:41 +00:00
jendave
1e3fca3c3c
add Barl's Cage (from The Dark)
2011-08-06 08:33:28 +00:00
jendave
fcf824fbee
- Convert abDrawCards to use Target and Ability_Cost
2011-08-06 08:31:58 +00:00
jendave
518b36ef26
- Allowing abPump to work with Jitte's equipped creature pump ability
...
- Fixed abGainLife's canPlay() to check for additional costs.
- Updated Umezawa's Jitte to be mostly keyworded.
2011-08-06 08:31:24 +00:00
jendave
78e4aaf5e3
1) converted Centaur Glade to keyword
...
2) converted Goblin Trenches to keyword
3) minor improvement to Hatching Plans
2011-08-06 08:30:03 +00:00
jendave
4333d0f290
convert Mobilization to abMakeToken and stPumpAll keywords
2011-08-06 08:29:55 +00:00
jendave
b3a30ce978
convert Dragon Roost to abMakeToken keyword
2011-08-06 08:29:47 +00:00
jendave
76d1cdd28b
better stack description in spGainLife
2011-08-06 08:29:28 +00:00
jendave
945d4f06d8
- Converted abGainLife to use abCost and Tgt.
...
- Added player as possible ValidTarget option in TargetSelection.
- Updated Mournful Zombie, Spike Feeder, Bottle Gnomes.
2011-08-06 08:28:57 +00:00
jendave
f3559e0f1e
- Changed setCounter to be able to skip Doubling Season's ability. This is necessary for undoing remove counter payments.
...
- Fixed setCounter logic for choosing to add or subtract counters.
- Change cost payment to use subtractCounter over setCounter.
2011-08-06 08:28:25 +00:00
jendave
0a6873f67d
- Added Snow Devil, Spirit of the Night, Chastise and Condemn.
2011-08-06 08:27:59 +00:00
jendave
ed1bd5c763
Fixed An-Zerrin Ruins to only work with creature types.
2011-08-06 08:27:32 +00:00
jendave
ef4893e70c
- Initial submission of Static Abilities which resolve instead of get added to the Stack.
...
- Added Ability_Static.java
- Changed Morph, Totem Armor, Hatchling's etb, Multikicker's etb, Swans of Bryn Argoll, An-Zerrin Ruins to be a Static Ability.
- Fixed Morph interaction with Linvala
2011-08-06 08:27:14 +00:00
jendave
c71223d89b
update abMakeToken to use Ability_Cost
2011-08-06 08:25:18 +00:00
jendave
992b97aa77
Updated some more checks to use isCreatureType.
2011-08-06 08:24:46 +00:00
jendave
b2a03a7549
1)first pass at abMakeToken keyword (same general syntax as spMakeToken but with an extra delimit for spell description)
...
2) convert The Hive to abMakeToken
2011-08-06 08:24:02 +00:00