f07f9c7e2d
fixed a typo in Oriss Samite Guardian...maxCast(*)0 control ====>maxCast(*)0 controller ...if possible please verify that this corrects the ticket opened for this card...
omegablast2002@yahoo.com
2011-02-25 12:12:42 +00:00
9b067bb766
Fixed Wash Out reported in forum.
guzhenjie1@gmail.com
2011-02-25 11:59:29 +00:00
ffa13c8983
still tweaking ai interrupt slightly...think i finally got it how i wanted it...if it can interrupt OR if its ALREADY interrupting...
omegablast2002@yahoo.com
2011-02-24 14:08:19 +00:00
42821464fa
did a little todo clean up of cards which have been added, also added Apathy Brainspoil Cowardice Cyclopean Snare Dead-Iron Sledge Deathrender Dryad Arbor Frenzied Tilling Fugitive Druid Funeral Pyre
omegablast2002@yahoo.com
2011-02-23 21:06:40 +00:00
ea8e8f36c8
fixed very obscure bug. In VS2010 the string was being trimmed before going into Construct method, but the string length was not updated. Thus, Construct thought the string length was 1 greater than it should have been causing an out of bounds runtime exception. In VS2008, the same thing happened, however no exception was thrown since VS2008 allows access into the undefined memory space and returned a 0 (null) value when it tried to access outside the string array. This fix targets specifically the color filters since they seem to be the ones with the error. " color:g;" and not "color:g;" was being passed.
techdragon.nguyen@gmail.com
2011-02-23 18:30:45 +00:00
2bd467dab7
Marton Stromgald corrected, silly mix match with the triggers.
omegablast2002@yahoo.com
2011-02-23 15:11:11 +00:00
d88fd5a6af
removed "windfall" the effect "draws cards equal to the highest amount a player discarded this way" is not supported. this card could not even be considered borderline.
omegablast2002@yahoo.com
2011-02-23 15:08:16 +00:00
761588d4b7
corrected "All Is Dust"
omegablast2002@yahoo.com
2011-02-23 15:05:47 +00:00
95df44fb2e
Chimeric Coils updated to use setpower/toughness and treason...unstead of using triggers....
omegablast2002@yahoo.com
2011-02-22 14:48:11 +00:00
b4c4b52a8f
added mirror entity....based on the conversion to word support for transforms ability.
omegablast2002@yahoo.com
2011-02-22 14:44:14 +00:00
742b78666c
Fixed following cards in mtg: Broodhatch Nantuko Flamekin Spitfire Gravelgill Duo Saltskitter
guzhenjie1@gmail.com
2011-02-21 10:50:58 +00:00
381370d2dd
Fixed following cards with "Whenever an opponent/you play a land" ability: City of Traitors Dirtcowl Wurm Hidden Herd Horn of Greed Pangosaur
guzhenjie1@gmail.com
2011-02-20 10:23:41 +00:00
dc48b5472b
Erwan - fixing incorrect case for include of PlayRestrictions.h
wagic.the.homebrew@gmail.com
2011-02-19 16:52:37 +00:00
788ae5e629
fixed a division by zero error when AI has equipment on field but no creatures to equip them to. fixed formatting of getEfficiency code block
techdragon.nguyen@gmail.com
2011-02-19 15:39:48 +00:00
017e2cf00d
Fixed Gelatinous Genesis: text=Target creature gets +3/+3 until end of turn. ==> text=Put X X/X green Ooze creature tokens onto the battlefield.
guzhenjie1@gmail.com
2011-02-19 11:09:03 +00:00
538ff064fa
Changed code moveto(graveyard) to sacrifice of following cards : Balduvian Trading Post Heart of Yavimaya Kjeldoran Outpost Lake of the Dead
guzhenjie1@gmail.com
2011-02-19 01:34:31 +00:00
3fdc148a9e
Changed the ability's order of Hero of Bladehold, make it works better: auto=@attacking(this):token(Soldier,Creature Soldier,1/1,white,battleready)*2 auto=@attacking(this):all(other creature[attacking]) 1/0 ueot ==> auto=@attacking(this):all(other creature[attacking]) 1/0 ueot auto=@attacking(this):token(Soldier,Creature Soldier,1/1,white,battleready)*2
guzhenjie1@gmail.com
2011-02-18 15:56:41 +00:00
19e3dfddf6
Fixed Goblin Wardriver: text=Battle cry (Whenever this creature attacks, each other attacking creature gets +1/+0 until end of turn.) -- Whenever Hero of Bladehold attacks, put two 1/1 white soldier creature tokens onto the battlefield tapped and attacking. ==> text=Battle cry (Whenever this creature attacks, each other attacking creature gets +1/+0 until end of turn.)
guzhenjie1@gmail.com
2011-02-18 15:28:45 +00:00
fda0428c41
Fixed following cards: Balduvian Trading Post Frostwielder Heart of Yavimaya Kjeldoran Outpost Lake of the Dead Tonic Peddler
guzhenjie1@gmail.com
2011-02-18 15:09:19 +00:00
c4422e3de1
updated to mimics to turnlimited triggers...theyre only supposed to trigger once per activation if they already triggered it should have no effect.
omegablast2002@yahoo.com
2011-02-18 13:44:36 +00:00
afb29274c3
lovisa is preffered in her erratta'ed to death form... fixed arbor elf, he snuck in with one of my test changes recently.
omegablast2002@yahoo.com
2011-02-18 13:04:14 +00:00
5ce7d77a3c
added a comment to lovisa to states that its following the original version, before WoTC double erratta'ed the card. its a shame to have such a powerful card completely transformed to the point its could be considered a completely different card, yet they only ever printed 1 version of her...i loved her too much in the books to see her fall this low :)
omegablast2002@yahoo.com
2011-02-18 12:36:02 +00:00
a742c52852
corrected the following cards.... Lake of the Dead trigon of mending lord of shatterskull pass gorilla shaman kumano nightsky mimic
omegablast2002@yahoo.com
2011-02-18 12:23:17 +00:00
94c7c9c5d8
* fixed definition for Mephidross Vampire * added Anowon, the Ruin Sage, the Ruin Sage as a borderline card since the card works as specified except that the player selects for the AI what card to sacrifice.
techdragon.nguyen@gmail.com
2011-02-18 06:17:52 +00:00
c1b861d44e
Fixed Tropical Island and Hero of Oxid Ridge.
guzhenjie1@gmail.com
2011-02-17 11:06:15 +00:00
78a642d21c
corrected wall of nets.
omegablast2002@yahoo.com
2011-02-17 00:28:20 +00:00
55fe7625f3
Added 4 cards: Iona, Shield of Emeria Hellfire Mongrel Living Tsunami Quest for Ancient Secrets
solo81@web.de
2011-02-16 21:46:22 +00:00
db94db1a9f
Spiritual Asylum was coded incorrectly
omegablast2002@yahoo.com
2011-02-16 20:37:03 +00:00
db0c55b4dd
Erwan - Fixed an issue with maxCast targeting opponent
wagic.the.homebrew@gmail.com
2011-02-16 14:35:49 +00:00
88218a9822
Added Storm Cauldron and Rites of Flourishing.
solo81@web.de
2011-02-16 12:13:20 +00:00
8dd6856453
Erwan - fixed issue 595 (MaxCast not working). Root cause was the stupidest typo ever in the code (maxCost instead of maxCast...) - fixed an issue with Storm mentioned by zethfox (was counting only spells played by current player) - Moved "max lands per turn" rule outside of the code (yay!) Please be sure to update your Rules folder!
wagic.the.homebrew@gmail.com
2011-02-15 14:17:34 +00:00
2cd72cc4ca
we should access the data required within a given context. Using DeckStats in this way works but only by chance that the previous step set the current deck file. Used victory percentage from the MetaData object rather than forcing what has already been computed.
techdragon.nguyen@gmail.com
2011-02-14 17:44:35 +00:00
16f7d2d675
added conditional to avoid having to ping the stats map all the time. The data is already cached, but there's no need to spend a function call to check the hashmap if we have a bool for that reason.
techdragon.nguyen@gmail.com
2011-02-14 17:38:57 +00:00
73b2d5ded8
removed redundant code for card loading. getCardByName already loads by Id and caches the result duplicating that code in MTGDeck is redundant.
techdragon.nguyen@gmail.com
2011-02-14 17:36:19 +00:00
5b365e53f0
Erwan - submit a fix for TestSuiteAI, I don't understand why it wasn't submitted with my other changes yesterday. This fixes a bug in the test suite (One storm test would fail without this) - minor refactor to AI code
wagic.the.homebrew@gmail.com
2011-02-14 13:29:27 +00:00
b3468782f1
Changed Arcane Laboratory and Rule of Law based on r3125. oneboth => auto=maxCast(*)1 auto=maxCast(*)1 opponent
guzhenjie1@gmail.com
2011-02-14 11:32:18 +00:00
ee71b6bf0e
Added a guard to ensure array access is within bounds of filter. For some reason, the VS2008 compiler allows this illegal access and VS2010 does not. In all actuality it should never be permitted.
techdragon.nguyen@gmail.com
2011-02-14 06:07:04 +00:00
072a250dc0
reverted it completely now in hopes that this is whats stalling ai...for some strange reason im noticing that ai is tapping an extra mana every time it tries to play something... exsample it wants to play a {2}{b}{b} ...so it taps 5 mana instead of the 4 it would have tapped before....
omegablast2002@yahoo.com
2011-02-14 01:45:14 +00:00
ecd2217139
reordered these varibles pspsdk doesnt like it when things are not int'ed in order.
omegablast2002@yahoo.com
2011-02-14 01:18:41 +00:00
3826355b6b
reverting a peice of a change i did a couple days ago... the way getPotentialMana and the payment of cost needs a SERIOUS revamp, i would almost say that these function only work because of bugs.....
omegablast2002@yahoo.com
2011-02-14 00:28:44 +00:00
935fe12672
pentarch paladin was missing cost for abilities...thanks kf1
omegablast2002@yahoo.com
2011-02-13 14:35:54 +00:00
67026849a6
sealed possible memory leak when WCFilterGROUP is created.
techdragon.nguyen@gmail.com
2011-02-13 13:28:25 +00:00
5be429c48f
combined nbzone increment and zone assignment into one statement.
techdragon.nguyen@gmail.com
2011-02-13 13:25:41 +00:00
6b89899d1b
Erwan - deprecated the following keywords (see list below for new usage) -- cantcreaturecast => auto=maxCast(creature)0 -- cantspellcast => auto=maxCast(*)0 -- onlyonecast => auto=maxCast(*)1 -- bothcantcast => auto=maxCast(*)0 auto=maxCast(*)0 opponent -- bothnocreature => auto=maxCast(creature)0 auto=maxCast(creature)0 opponent -- oneboth => auto=maxCast(*)1 auto=maxCast(*)1 opponent
wagic.the.homebrew@gmail.com
2011-02-13 11:23:51 +00:00
8eac9c587e
Erwan - added maxCast and maxPlay abilities, this deprecates the following abilities: nospells,nocreatures,onlyonespell,land I usually don't like to deprecate abilities, but the existing ones, despite having easy to remember names, were really not flexible enough.
wagic.the.homebrew@gmail.com
2011-02-13 08:01:13 +00:00
2165a38d3b
Fixed following cards: 1. Fire Dragon(It has same problem as unchanged Honden Of Infinite Rage, using new code "type:" to fix it.) auto=foreach(mountain|myBattlefield) damage:1 target(creature) oneshot ==> auto=damage:type:mountain target(creature)
guzhenjie1@gmail.com
2011-02-13 05:57:36 +00:00
b21ca5d91c
had to change it, psp compile didnt like it. source->XX
omegablast2002@yahoo.com
2011-02-13 04:46:57 +00:00
0686979750
updating vs2010 solution with new PlayerRestriction class
techdragon.nguyen@gmail.com
2011-02-12 23:25:57 +00:00
e36cf18d26
added support for {x}{x}: word variable returns for activated target abilities...sometimes im not told when things break or dont work completely, and i find out later myself. :)
omegablast2002@yahoo.com
2011-02-12 20:29:42 +00:00
60017a6652
Erwan - replaced variables canPutLandsIntoPlay and landsPlayerCanStillPlay with a PlayRestrictions class. - Added seenThisTurn(TargetChooser * tc) in MTGGameZones, which allows to count how many cards matching a targetChooser have been in a given zone in the current turn. With minor work, this can probably be reused by the ability parser for some cards that need to count how many **** where played or put on the stack during a turn. -- for example player->game->stack->seenThisTurn([put a TypeTargetChooser("creature") here]) would give you the number of creature spells cast by the player this turn. - This is the first step of a refactor that aims at removing all the adhoc variables for "cant cast". I plan to get rid of the following variables in Player.h (and the associated code, which hopefully will become smaller): int castedspellsthisturn; bool onlyonecast; int castcount; bool nocreatureinstant; bool nospellinstant; bool onlyoneinstant; bool castrestrictedcreature; bool castrestrictedspell; bool onlyoneboth; bool bothrestrictedspell; bool bothrestrictedcreature;
wagic.the.homebrew@gmail.com
2011-02-12 16:31:07 +00:00
2690a3f9a0
updated variable "type:" to act more like a targetchooser... draw:type:creature|opponentbattlefield will draw a card for each creature on the opponents battlefield
omegablast2002@yahoo.com
2011-02-12 16:21:54 +00:00
0a60979554
fix and completely reworked affinity AGAIN. moved it out of rules, it was FAR to error prone and after fixing bugs on this ability about 12 times, im done with it.
omegablast2002@yahoo.com
2011-02-12 15:06:28 +00:00
53477bfae2
opps if you were at exactly 65% then none of the 2 appeared XD ..this should correct that
omegablast2002@yahoo.com
2011-02-12 03:23:36 +00:00
19c3e903bc
just cleaning, removed a double check i added ages ago that isnt really needed anymore, ai handles fine now without having to double check if it can cast after it already did so.
omegablast2002@yahoo.com
2011-02-12 03:00:45 +00:00
e3ecc612d0
removed a part that wasnt actually supposed to be in the change...my bad.
omegablast2002@yahoo.com
2011-02-12 02:42:26 +00:00
e9b47944e3
reverted a 2nd atempted fix at the infinate loop with ai using inkmoth nexus... it was making ai tap itself out.
omegablast2002@yahoo.com
2011-02-12 02:27:30 +00:00
9500b0eb4b
Added Rashka the Slayer.
solo81@web.de
2011-02-11 22:42:06 +00:00
32873bd4d0
added river of tears
omegablast2002@yahoo.com
2011-02-11 21:35:17 +00:00
76653b6f54
going to go ahead and commit this now as updating the ai decks to use this tool is going to be a huge task...i originally wanted to commit this when i had a substantial amount of ai decks using it, to show case how it makes a huge difference.
omegablast2002@yahoo.com
2011-02-11 18:01:50 +00:00
61186347e5
Fixed Godless Shrine and Contested War Zone. Thank you for Zeth's help and support!
guzhenjie1@gmail.com
2011-02-11 13:40:23 +00:00
201d096d24
mr big pointed out that the order of the abilities on Mayael's Aria was incorrect, and it does make a huge difference, it can mean the difference between a win or lose.
omegablast2002@yahoo.com
2011-02-10 19:59:29 +00:00
61e14f5b68
added Serra Inquisitors,Dwarven Soldier,Amphibious Kavu, fixed contested war zone
omegablast2002@yahoo.com
2011-02-10 19:51:13 +00:00
25fe86ad89
added "turnlimited" restriction for blocked, blocking, combatdamaged, and damaged triggers.
omegablast2002@yahoo.com
2011-02-10 19:50:09 +00:00
93c63cef3d
reimplemented mana color display for deck selection. This is now totally controlled by stats generation. No data needs to be written to the deck master files themselves. Now the mana colors will only show if you have battled with a particular deck at least once. This is not retroactive, so you will need to battle the ai again. This can not be edited manually either to prevent tampering with the statistical data. Player deck mana color display is also covered this way.
techdragon.nguyen@gmail.com
2011-02-10 17:19:11 +00:00
8ab65b234b
updated the shrine cycle to use type: variable ei:infinate of horden rage bug...it was the same bug as halimar used to have.
omegablast2002@yahoo.com
2011-02-10 12:07:11 +00:00
4bf72efaac
Obelisk of Alara was missing the word "token for its *cough cough *workaround *cough cough*
omegablast2002@yahoo.com
2011-02-10 12:00:49 +00:00
b728a81144
journey to nowhere was sending it target to exile, then trying to blink it...
omegablast2002@yahoo.com
2011-02-10 11:54:56 +00:00
bfd8cf8527
fixed a mem leak I introduced in last update
techdragon.nguyen@gmail.com
2011-02-10 00:18:52 +00:00
9c8ff0e27a
updated ManaCost copy constructor to do a true deep copy. added copy constructors to ManaCostHybrid.
techdragon.nguyen@gmail.com
2011-02-09 20:42:19 +00:00
c6849d35d5
Prefix VS Postfix increment
Ittobaal@gmail.com
2011-02-09 20:06:15 +00:00
2866db0229
fixed line errors, report in r591 please confirm and close ticket
omegablast2002@yahoo.com
2011-02-09 15:21:24 +00:00
7f4c001a1d
Erwan - minor cleanup of MTGRules.cpp based on my comments in r3084. I visually verified that I didn't break the fix in r3084. Also ran the test suite. -- in case somebody wonders about some of the tests I deleted, most of these tests are useless because all callers make sure alternateCost is not null (in isReactingToClick) and that the manapool can afford the cost, before doing the call to reacttoclick. Proving it by adding an assert, and also making the function protected, to be sure it is only called by the authorized children.
wagic.the.homebrew@gmail.com
2011-02-09 14:33:09 +00:00
4cbf3ddeb5
removed extraneous function. Not meant for last check in
techdragon.nguyen@gmail.com
2011-02-09 13:21:26 +00:00
2c0da5e7e6
added copy constructor with operator= updated constructor for ManaCost*
techdragon.nguyen@gmail.com
2011-02-09 12:03:15 +00:00
d336f921d7
added Progenitus and Splinter Twin
omegablast2002@yahoo.com
2011-02-09 09:48:04 +00:00