Commit Graph

336 Commits

Author SHA1 Message Date
jendave
f37ffe5412 Fecundity was converted to triggers. The hard-coded stuff was never removed or commented. Now, it is removed. 2011-08-06 20:44:35 +00:00
jendave
dde5bd53b9 *Triggers are now tracked by an integer ID so that the correct trigger object can be removed even after copying it, if need be. Fixes Raging Ravine.
*Fixed LandPlayed triggers not copying any OverridingAbility info. (not that we used any hardcoded LandPlayed triggers but still)
2011-08-06 20:29:33 +00:00
jendave
5673c30cc8 *Triggered abilities are no longer affected by costchangers. 2011-08-06 20:16:19 +00:00
jendave
24443dc892 - Moving a bunch of the src files into organized packages. 2011-08-06 20:15:45 +00:00
jendave
b43f013f3a - Fixed Recover keyword to only trigger if origin is battlefield.
- Fixed Grim Harvest.
- Fixed Crawlspace and similar cards.
2011-08-06 20:00:08 +00:00
jendave
c1348841dd convert Guan Yu, Sainted Warrior to triggers 2011-08-06 19:25:50 +00:00
jendave
dee7305f6e convert Megrim to triggers 2011-08-06 19:17:32 +00:00
jendave
f5fc770120 convert Nath of the Gilt-Leaf to triggers 2011-08-06 19:17:24 +00:00
jendave
48fd0ffd16 add new keyword: "If CARDNAME would leave the battlefield, exile it instead of putting it anywhere else." 2011-08-06 18:34:15 +00:00
jendave
790f47b2ca - Convert Thrummingbird to Trigger
- Removed unused Proliferate functions
- Switching Proliferate to use the Cancel button so you don't accidentally space through your Proliferate
2011-08-06 18:14:54 +00:00
jendave
4654d25259 add Virulent Wound (from MBS) 2011-08-06 18:01:29 +00:00
jendave
322d5d3a33 - Fix for Totem Armor 2011-08-06 17:46:57 +00:00
jendave
88ad902fd3 Fixing ArrayIndexOutOfBound errors when loading up the deck editor or using a deck. 2011-08-06 17:46:46 +00:00
jendave
2b7858b786 Fixing ArrayIndexOutOfBound errors when loading up the deck editor or using a deck. 2011-08-06 17:46:40 +00:00
jendave
af87194664 *Fixed cards you start with in certain fantasy quests having their triggers registered.
*Fixed Escaped Null text.
2011-08-06 17:42:39 +00:00
jendave
00ef640ca1 Support set code in deck files.
Save set code in constructed deck editor.
Start new games with set choices if present.
2011-08-06 17:41:15 +00:00
jendave
e9594c88b9 Deprecated old QuestData, updated all references to use the new QuestData structure
Refactored pets, all pet logic decoupled from the UI. This should make adding/changing pets much easier.
2011-08-06 17:29:03 +00:00
jendave
473e4b8308 - Converting existing Spore Counter Fungi to Triggers 2011-08-06 17:26:01 +00:00
jendave
07eabba847 - Fix issue with Targeting being cleared in certain Triggers (I didn't fully test this so if it breaks something else we should undo this changelist) 2011-08-06 17:18:40 +00:00
jendave
c9320970c6 - Fix for Ripple not setting activating player
- Convert Force of Will to AFs
2011-08-06 17:15:16 +00:00
jendave
8b4fc266f1 trying to sacrifice the mana pool no longer gives a NPE. Fixes Kaervek's Spite. 2011-08-06 17:00:29 +00:00
jendave
8ed64cfc0b *Mandatory triggers are now mandatory IF there are targets available. (AI's choice is still not mandatory though :/)
*Fixed Soul's Attendant and Titan's Forge.
*Tweaked AbilityFactory to not crap out when it gets a completely correct "DB$Proliferate" for ability string.
2011-08-06 16:56:41 +00:00
jendave
0bdcc3baf1 - Convert Rancor keyword to Triggers 2011-08-06 16:52:03 +00:00
jendave
27ae2e587d *Added the ability to suppress trigger modes. Currently only used when control changes on a permanent (since it moves battlefield->battlefield). 2011-08-06 16:41:50 +00:00
jendave
b838d0707f *Fix for targeting triggered abilities. 2011-08-06 16:39:15 +00:00
jendave
4def5f664a *Re-worked how optional/costed triggered abilities are run, with help from Sol. It's far from ideal, but it works. It's really due for a dedicated system. 2011-08-06 16:38:15 +00:00
jendave
120b834fc5 - Some updates related to triggers occuring during check state effects 2011-08-06 16:37:58 +00:00
jendave
998f7b5002 - Fix for Squee's Embrace not properly returning creature to hand. 2011-08-06 16:35:38 +00:00
jendave
86c3107e89 - Fixed issue with Remembered card being not being in the current state 2011-08-06 16:19:00 +00:00
jendave
1a5ec00b77 *Updated to triggers
Admonition Angel
	Harbor guardian
	Synod Sanctum
*You can now set the trigger parameter "Optional" to "OpponentDecides". Exactly what it says on the tin.
*Any AbilityFactory can now remember it's targets.Simply add a "RememberTargets$ True" parameter to make use of it. Also available is a "ForgetOtherTargets$ True" parameter. This will go far to implement Imprint mechanics, as well as things like Synod Sanctum,Admonition Angel and the like.
*Had GameAction.moveTo() clear tapped status of moved cards.
*Modded AF_ChangeZone to handle multiple cards as Defined.
2011-08-06 16:14:40 +00:00
jendave
e4ca2ca505 - Added AF ChangeZoneAll with limited AI decision making
- Converted Evacuation and Feldon's Cane as examples
- Groundwork for LastKnownInformation being used with Zone movement.
2011-08-06 16:03:02 +00:00
jendave
86d70ea988 *Adding "Triggered" to the Defined$ and calculateAmount frameworks. 2011-08-06 16:02:42 +00:00
jendave
e39d9e580c Fixed the random picture number following the new PicCount scheme. 2011-08-06 16:02:01 +00:00
jendave
90b531bd8d Sure enough, the code didn't work with brand new cards lacking SetInfo. 2011-08-06 16:01:47 +00:00
jendave
73c98b0e33 Enable use of per-set PicCount... hopefully. 2011-08-06 16:01:39 +00:00
jendave
3b98694854 - Converted Zone.add() to moveTo() for the leftovers that aren't issue cases, or occur during game startup. 2011-08-06 15:55:26 +00:00
jendave
48bf6e1d2f - Almost done with moveTo Tweaks 2011-08-06 15:53:26 +00:00
jendave
09bee9e58d - Converted Strangling Soot to AFs
- MoveTo Tweaks
- Rewriting some code to be more concise/fix bugs (Grindstone, Lobotomy, Sleight of Hand, Haunting Echoes, Identity Criss, Patriarch's Bidding)
2011-08-06 15:53:06 +00:00
jendave
aedf570c59 - Converted Firebolt, Tinker, Oust, Path to Exile to AF
- moveTo Tweaks
2011-08-06 15:48:41 +00:00
jendave
f41729410f - Converted Bridge from Below, Flagstones of Trokair, Solemn Simulacrum, Sprouting Thrinax to Trigger. 2011-08-06 15:47:45 +00:00
jendave
f9ae144448 - Convert Harbingers to Trigger
- Warning/moveTo cleanups
2011-08-06 15:45:58 +00:00
jendave
2e953fc583 - Converted Take Possesion to Enchant Permanent
- Consolidated Change controllers code
- moveTo Cleanup
2011-08-06 15:43:56 +00:00
jendave
3272647300 - Moving Cast Spells to the Stack zone instead of sitting in Limbo.
- MoveTo Cleanup
2011-08-06 15:33:40 +00:00
jendave
39c6fedf22 - Migrate PlayLand from GameInfo to Player
- Cleanup some code near calls to playLand
2011-08-06 15:32:16 +00:00
jendave
1a48b7d124 *Updated to triggers:
Cackling Fiend
	Cave People
	Centaur Safeguard
	Charging Paladin
	Citanul Druid
	Close Quarters
	Coastal Piracy
	Contemplation
	Cosi's Ravager
	Crystal Rod
*Removed superfluous runTrigger call which caused Attacks-triggers to go off twice.
*Updated playLand-functions for both players to use moveTo* functions.
2011-08-06 15:31:27 +00:00
jendave
8aab658011 - Fix for Modular.
- Fix for regenerating creature not being removed from Combat
- Some more moveTo cleanup.
2011-08-06 15:28:33 +00:00
jendave
52e3e2f6ec * proper helper functions getChoice* moved to GuiUtils 2011-08-06 15:22:19 +00:00
jendave
28f0169a34 - Fix for Persist infinite loop 2011-08-06 15:19:57 +00:00
jendave
18e1121cb5 - Cleanup related to PlayerZone.remove() and moveTo()
- Convert Cruel Tutor and Imperial Seal to AF
- Minor change to Opt
2011-08-06 15:19:51 +00:00
jendave
e0f9e2ec9a - Some more cleanup related to PlayerZone.remove and moveTo 2011-08-06 15:18:15 +00:00