Commit Graph

602 Commits

Author SHA1 Message Date
jendave
0288f916a9 - Converted Frostling and Captain Sisay to AF's.
- Cleanup in CF Creatures.
2011-08-06 12:59:24 +00:00
jendave
fb3c657808 - dealtDamageToYouThisTurn will now work correctly even in corner cases where one of your own creatures damages you.
- Added Retaliate.
2011-08-06 12:57:56 +00:00
jendave
37efb106cb - Converted Giltspire Avenger to AF Destroy.
- Added Reciprocate.
2011-08-06 12:57:41 +00:00
jendave
cf4437bdbd - Removed the unused variable dealtCombatDmgToOppThisTurn of the card class.
- Fixed dealtDmgToOppThisTurn to be used in the proper place.
- Added some basic AI for AF sacrifice if Defined = Each.
2011-08-06 12:57:32 +00:00
jendave
95424e61e8 - Added Defined Utility function in AF and added it in a handful of AFs
- Improved organization in AF_AlterLife
- Bugfix for Death Cloud locking down InputControl when used as a finisher by converting to AFs
- Added Small Pox
- Added initial functionality that will allow Inputs to occur during Resolution of a SpellAbility
2011-08-06 12:56:27 +00:00
jendave
7f9a3d043a - Convert Hatchlings to etbCounter
- Small cleanup in CardFactory_Creatures
2011-08-06 12:46:59 +00:00
jendave
fa7569a7f8 - Added AF_Sacrifice and Converted Diabolic Edict as a sample
- Cleanup of a few things related to Sacrifice, trying to funnel down the same path
2011-08-06 12:46:22 +00:00
jendave
9119111aa3 -Updated Captain Sisay and Mistform Ultimus to not use the creature type legend. 2011-08-06 12:45:09 +00:00
jendave
30675e4aa0 - Converted Fallen Angel, Nantuko Husk, Phyrexian Ghoul, Vampire Aristocrat, Bloodthrone Vampire to AF_Pump 2011-08-06 12:41:12 +00:00
jendave
d7eebb7df7 convert Rubinia Soulsinger to AB$GainControl 2011-08-06 12:37:06 +00:00
jendave
b260ce4f79 - Changed isFirstTurn to count turns taken.
- Fixed Serra Avenger's interaction with Time Walk and Flash.
2011-08-06 12:34:51 +00:00
jendave
d9371560b7 1) make targeting for AF_DealDamage optional (though almost everything needs it; there's still a warning message displayed to console)
2) convert Stuffy Doll to AF_DealDamage (no target specified)
3) moved code from Filthy Cur, Jackal Pup, Shinka Gatekeeper and Stuffy Doll to the addDamage code in Card.java (previously, it was overriding the addDamage method and putting it on a new card in CardFactory_Creatures.java)
2011-08-06 12:34:39 +00:00
jendave
710c86e705 fix Stuffy Doll not dealing damage to opponent when it receives damage from blocking a creature. 2011-08-06 12:28:17 +00:00
jendave
207a87bdf7 the if-else if chain was broken in CardFactory_Creatures.java This fixes that in the necessary spots. Also, removes some old card-specific code. 2011-08-06 12:24:04 +00:00
jendave
13d74f189a convert Dimir Guildmage to AF for Draw and Discard 2011-08-06 12:14:50 +00:00
jendave
cb49fdff3e convert Cao Cao, Lord of Wei to AB$Discard 2011-08-06 12:14:24 +00:00
jendave
2119fe5950 forgot this piece in the Gwendlyn Di Corci checkin. 2011-08-06 12:13:25 +00:00
jendave
ed30579f18 *Fixed Pyromania and Zuran Spellcaster misspellings.
*Converted to AbilityFactory:
	Goblin Rimerunner
	Golgari Rotwurm
	Horseshoe Crab
	Jamuraan Lion
	Minister of Impediments
	River Merfolk
	Shield Mate
	Spitting Earth
	Trigon of Mending
	Trigon of Rage
	Tumble Magnet
	Wall of Mulch
2011-08-06 12:09:40 +00:00
jendave
160a68cd85 - Convert Spitting Hydra
- Changed Chronatog's ability to Ability_Activated
2011-08-06 12:06:18 +00:00
jendave
37ec689701 convert both abilities of Sliver Overlord to AF (GainControl and Fetch) 2011-08-06 11:06:59 +00:00
jendave
b2915e11da convert Memnarch's gain control ability to AF_GainControl 2011-08-06 11:05:53 +00:00
jendave
8b493d3131 convert Seasinger and Old Man of the Sea to AB$GainControl 2011-08-06 11:00:35 +00:00
jendave
f750604609 - Added Creakwood Ghoul and Grave Robbers.
- Converted Death Cultist to keyword.
2011-08-06 10:56:52 +00:00
jendave
1e3f2d8cd4 -Added remaining ability cost reducers
-Added Elixir of Immortality and fixed Feldon's Cane description
-Added Sprouting Phytohydra
2011-08-06 10:55:30 +00:00
jendave
1b4bb610b3 - Converted Magus of the Disk and Nevinyrral's Disk to keyword.
- Added Tranquil Grove.
2011-08-06 10:50:25 +00:00
jendave
88b8ed0943 *Fixed Banshee's X-payment glitch. 2011-08-06 10:49:53 +00:00
jendave
d84fead8b7 * Target addTarget bugfix
* Banshee, Korlash, Heir to Blackblade bugfix
* method names to lowercase refactoring
2011-08-06 10:49:39 +00:00
jendave
bc54324c89 convert Time Elemental to AB$Bounce 2011-08-06 10:47:31 +00:00
jendave
41a76502f9 add Banshee (from The Dark).
NOTE: There is a bit of a glitch before paying the X mana.  You are prompted to pay a blank mana cost.  Clicking on a mana-producer gets past this with no side-effects.  Then, you can pay the X as expected, and the ability works as expected.
2011-08-06 10:42:04 +00:00
jendave
fc2cd550af - Converted Cathartic Adept to AB$Mill.
- Added Drowner of Secrets and Ray of Erasure.
2011-08-06 10:34:57 +00:00
jendave
0bb637c408 - Added a Mill Ability Factory.
- Converted Vedalken Entrancer to AF_Mill. 
**We should convert anything we can since many Milling cards are causing Crashes when the AI uses them.
- Fix target of AF_Draw when AI is trying to Deck the Human
2011-08-06 10:33:43 +00:00
jendave
bae26a95bf - Added hostCard.setSVar("PlayMain1", "TRUE"); to Bounce abilities.
- Converted two more cards to AB$Bounce.
2011-08-06 10:32:01 +00:00
jendave
9253460c22 - Converted some cards to AB$Bounce.
- Added Balshan Griffin.
2011-08-06 10:31:52 +00:00
jendave
9d22d51ac1 - Converted Wydwen, the Biting Gale to keyword. 2011-08-06 10:31:27 +00:00
jendave
e43a4ae95f - Added canPayLife(int lifePayment) to the payer class and made use of it in several places. 2011-08-06 10:29:48 +00:00
jendave
70f4a8dc44 remove explicit Lifelink check in Brion Stoutarm 2011-08-06 10:26:56 +00:00
jendave
961d74e6a4 **** Note: If you write card codeblocks, please be aware that "TgtV" Target constructor is no longer used. Use Target(String message, String[] Valid) instead.
- Changing Target class to always use ValidCards, converted older keywords to follow the new format. 
- Added AF_Tap, converted Burst of Energy and Mind Games
2011-08-06 10:26:27 +00:00
jendave
926947e1ab - Changes to Thopter Foundry
- Added initial AIPreference code.
- Changed MagicStack.push to .add outside of MagicStack
2011-08-06 10:23:13 +00:00
jendave
cb9b2dfaa1 *Added Stone Giant 2011-08-06 10:22:55 +00:00
jendave
5a6d57a938 convert Mad Auntie to AbilityFactory and keyword. 2011-08-06 10:18:31 +00:00
jendave
f40017450f convert Ezuri, Renegade Leader to AbilityFactory. 2011-08-06 10:18:06 +00:00
jendave
cddd1de90c - Converted Ramosian Revivalist to AB$Retrieve. 2011-08-06 10:15:58 +00:00
jendave
c0bf09ca93 add Joraga Warcaller (from Worldwake) 2011-08-06 10:15:24 +00:00
jendave
3465d5c5d5 - Fixes for Flashback so it properly removes the card from the game.
- Added Retrieve to AF_Fetch for Retrieving cards from your graveyard.
- Converted Hammer of Bogardan, Eternal Dragon, Undead Gladiator to AF_Retrieve
- Added Soldevi Digger and Reassembling Skeleton
2011-08-06 10:13:36 +00:00
jendave
755845b35d convert Cateran Overlord regen ability to AbilityFactory. 2011-08-06 10:09:13 +00:00
jendave
74c0bbf9dc convert Niall Silvain and Rancor to AbilityFactory. 2011-08-06 10:09:05 +00:00
jendave
e4f37837c8 consolidate code from Player and GameAction classes related to sacrifice permanents. 2011-08-06 10:08:50 +00:00
jendave
47fee82a41 - Added End for Parsing to Undead Slayer
- Sun Titan now removes resurrected card from graveyard before adding to play. This fixes a bug that would cause ETB abilities to trigger twice.
2011-08-06 10:05:30 +00:00
jendave
b171b43e9e updated several discard function calls. 2011-08-06 10:04:25 +00:00
jendave
cfaab5b258 delete keyworded code. 2011-08-06 10:02:23 +00:00