44fe3cffec
fixed a crash that was happening when ai would try to play a card like wurmcalling.
omegablast2002@yahoo.com
2011-02-08 20:25:41 +00:00
4d28bdd925
fixed a bug where mana icons were not being removed from mana pool when using extracost types...this happened during the refactor..the mana was changed from engaging the players mana pool which sends those events, into a sort of "bypass everything and just subtract the mana from the pool" you actually WANT to engage the players mana pool, as its directly tied to the events which remove those mana from the pool.
omegablast2002@yahoo.com
2011-02-08 19:20:04 +00:00
80b35e8071
fix for black sun zeneth...we were checking the wrong thing for a refreshed number...i had it checking the target instead of the source of that ability.
omegablast2002@yahoo.com
2011-02-08 15:50:57 +00:00
67cdb895b9
removed an incorrect line from Concordant Crossroads
omegablast2002@yahoo.com
2011-02-08 15:15:25 +00:00
39e10dd088
updated clockworks, also corrected a few that were removing the wrong type of counter during combat, they come in with 1/1 counters and were removing 1/0 counters, which was wrong.
omegablast2002@yahoo.com
2011-02-08 15:13:12 +00:00
f7b34295fb
added a way to set the max amount a counter ability can give you...aka the clockworks effect...as per mtg rules, you are still allowed to activate the effect but if it would put the target counters higher then the max allowed by that ability, then it will do nothing.
omegablast2002@yahoo.com
2011-02-08 15:12:14 +00:00
d852486355
Venerated Teacher was set to 1 counter, should have been 2...all this time i thought that it was a little underpowered then normal.
omegablast2002@yahoo.com
2011-02-08 12:23:59 +00:00
4196754abc
Fixed Allay, Glissa, the Traitor and Kuldotha Forgemaster was reported in forum.
guzhenjie1@gmail.com
2011-02-08 10:07:04 +00:00
1b5a379387
added empty string check when save and quiting from the deck editor. Issue: 3052
techdragon.nguyen@gmail.com
2011-02-08 06:30:18 +00:00
104a626b3b
excluding these types from allsubtype transforms subability.
omegablast2002@yahoo.com
2011-02-07 17:12:12 +00:00
cba1849ef6
i subjected poor changelings to planeswalker legend rule lol.
omegablast2002@yahoo.com
2011-02-07 15:37:21 +00:00
79d4312660
it was reported to me that blinking a token can potentially crash the game on the "return" my fault..forgot that once tokens go to exile, we're done with them for good.
omegablast2002@yahoo.com
2011-02-07 14:00:42 +00:00
18c70ec187
found the cause of the loop in inkmoth, it has to do with the way manaproducers set thier "needsTapping" depending on the way the ability is called, it can set it 3 ways, {t}<--sets only the manaproducers "tap" and completely ignores the "doTap" which is the way actiavted mana producers call it.
omegablast2002@yahoo.com
2011-02-07 13:48:27 +00:00
9b076d6791
removed a fix to an infinate loop bug with Ai using cards such as inkmoth nexus... as it removed ais ability to momir...protip in MTG youre not allowed to interrupt your own abilities...the way momir is working now, it select an action that doesnt pass priority instead it instantly searchs for a momir ability...which is wrong...
omegablast2002@yahoo.com
2011-02-07 13:29:27 +00:00
b0a370c1b7
Fixed following cards reported by ph34rbot in forum: 1. Blightwidow 2. Bonehoard 3. Crush 4. Darksteel Myr 5. Revoke Existence
guzhenjie1@gmail.com
2011-02-07 10:50:36 +00:00
6ccc859ca0
The issue is the controller for the menu fails badly when the triangle button is pressed. That particular menu uses the menu item id to index into an array somewhere. Since the triangle key is valued at -200, this causes a negative index into an array.
techdragon.nguyen@gmail.com
2011-02-07 06:55:04 +00:00
3eee274726
Deleted carriage-return between Myr Sire and Myr Turbine: [/card]
guzhenjie1@gmail.com
2011-02-06 22:47:38 +00:00
bf427b6402
i actually misinterperated the fading rule... the difference between vainshing and fading is... fading sac triggers the NEXT time you try to remove a fade counter but cant, vanishing sac triggers WHEN you remove the last counter.
omegablast2002@yahoo.com
2011-02-06 18:48:08 +00:00
230edd917c
did away with the "fading" workaround...
omegablast2002@yahoo.com
2011-02-06 18:21:25 +00:00
de6e5ed7eb
extended "vanishing" to support "fading" these 2 abilities are the same with the exception of the name of the counter the creature receive.
omegablast2002@yahoo.com
2011-02-06 18:20:59 +00:00
a08729d7e8
a little more {s( to {discard( cost clean up
omegablast2002@yahoo.com
2011-02-06 16:08:08 +00:00
ca15d579d1
updated alot of cards using {S(*|myhand)} as "discard a card" to the support i added a while ago, targetted discard cost...{discard(*|myhand)}
omegablast2002@yahoo.com
2011-02-06 15:57:06 +00:00
5ac735c2f5
updated Fauna Shaman to use {discard(blah)}: cost.....
omegablast2002@yahoo.com
2011-02-06 15:41:09 +00:00
acebda16ca
was pointed out that a couple subtypes needed to be added to the changeling ignore list.
omegablast2002@yahoo.com
2011-02-06 15:35:25 +00:00
4fd48777fe
yeah im stupid
omegablast2002@yahoo.com
2011-02-06 15:22:15 +00:00
bfd0d24d8d
forgot we dont want hard to get this boost.
omegablast2002@yahoo.com
2011-02-06 15:21:20 +00:00
9d728ea0dd
refactored this optimizedhand section to remove copy paste code...they all check the same condiations except the rating...so i had it check the codiations first THEN the ratings....makes it a little easier to edit later if needed.
omegablast2002@yahoo.com
2011-02-06 15:16:27 +00:00
e8a656e61e
ManaCost hybrids memeber array wasn't being initialized giving each element of the array an undefined value. Initialized hybrids array to contain NULL elements and toString now checks for NULL pointers before attempting to print out hybrids. Issue: 586
techdragon.nguyen@gmail.com
2011-02-06 12:42:55 +00:00
a717bae839
Added "oneshot" code for cards with "Champion a creature" ability: Boggart Mob Changeling Berserker Changeling Hero Changeling Titan Lightning Crafter Mistbind Clique Nova Chaser Supreme Exemplar Unstoppable Ash Wren's Run Packmaster
guzhenjie1@gmail.com
2011-02-06 11:39:57 +00:00
b7b584113b
- Moved the card collection out of the GameApp class to clean up the dependencies - Added method to build a card collection independently of the GUI to ease my unitary test application - Added part of some network GUI I'm working on, it's #ifdef out, I'm only committing this part to ease later merges - Added the beginning of a serialization code of the Player and related classes used for network support - various other minor cleanup
Xawotihs
2011-02-06 11:35:40 +00:00
91a2cb9c90
fixed deck renaming to make changes immediate.
techdragon.nguyen@gmail.com
2011-02-05 22:21:49 +00:00
a01898436b
changed the order of abilities on a couple cards..
omegablast2002@yahoo.com
2011-02-05 14:49:40 +00:00
7b3d65e984
changed it a little...now now difference while you have less then 10 artifacts/enchantments...after 9 it reorders them into stacks of 5 to save room....
omegablast2002@yahoo.com
2011-02-05 13:26:02 +00:00
f504051bfd
changed the vertstack count of enchantments and artifacts from 3 per stack, to 5 per stack, i wanted to go 6 but i felt it cropped too much off the 6ths card...
omegablast2002@yahoo.com
2011-02-05 13:05:51 +00:00
8f09e8554c
a fix for a strange edge case where ai was caught in a trap trying to activate inkmoth lands becomes ability. it would proceed to contenue to do so even tho it was not producing any results.
omegablast2002@yahoo.com
2011-02-05 11:11:08 +00:00
86308a4acb
corrected titan forge, it was "lol" incorrect. it was basically "put a charge counter on titan forge, put a 9/9 in play"
omegablast2002@yahoo.com
2011-02-05 10:52:10 +00:00
d5777a6565
A simpler way to allow trim() to work with temporary strings.
wrenczes@gmail.com
2011-02-05 06:42:53 +00:00
f6bef26243
Erwan - added some cache for function getCardByName. On my machine, this divides the running time of the test suite by almost 2 (now runs in 12 minutes instead of 21)
wagic.the.homebrew@gmail.com
2011-02-05 03:46:41 +00:00
cab5a99833
added processing for todo list as well
techdragon.nguyen@gmail.com
2011-02-04 13:41:24 +00:00
767983631a
* moved deck saving to end of match. It now only saves when you've actually completed a game. * added additional meta data for decks when saving them back to file. - decks saved this way now are split into three regions: creatures, spells and lands. It's more for a visual sorting if a player wanted to look at the deck outside of the game. It does not impact the deck loading negatively at all. It may increase performance in cases where the deck was previously defined using the canonical names of the cards as the numeric ids reduce the work done when looking up the cards by name. * modified ManaCost toString method. * added toString method for ManaCostHybrid ( possibly make ManaCostHybrid a subclass of ManaCost) * added additional operator overloading for ManaCost for printing to cover ManaCost when it's a pointer as well as a copy ( TODO: might want to check if making usage of ManaCost as a copy as opposed to a ptr is really necessary in most cases. ) * added alternate version of "trim" to handle trimming temporary strings as returned by things like ostringstream.str(). - This was necessary since the PSP compiler doesn't do the necessary adjustments for those types of calls.
techdragon.nguyen@gmail.com
2011-02-04 12:37:44 +00:00
6edef29d17
opps forget to wrap this.
omegablast2002@yahoo.com
2011-02-03 17:10:51 +00:00
23fc40895d
updated vanishing creatures to use new vanishing...auto=vanishing:number
omegablast2002@yahoo.com
2011-02-03 14:18:10 +00:00
75a9d7840d
3 things here, found my targets returns for @vampired we're screwy, which explained why doc didnt add 3 of the possible cards for it...corrected that but i need to rename the varibles which i will do at a later time, not in this patch..
omegablast2002@yahoo.com
2011-02-03 14:17:25 +00:00
22adbe4ab7
i updated this test since i updated corveous dragon to use sacrifice keyword...the test was putting him in play first, which resulted in instant sacrifice...moved him to be the last "inplay:" card
omegablast2002@yahoo.com
2011-02-03 13:04:37 +00:00
cd43d75c88
Fixed the Kor Hookmaster: auto=choice target(creature) tap && frozen ==> auto=choice target(creature|opponentbattlefield) tap && frozen
guzhenjie1@gmail.com
2011-02-03 05:44:54 +00:00
049bee044d
Fixed the following cards reported by ph34rbot in forum: Sphere of the Suns Turn the Tide Vedalken Infuser Viridian Corrupter
guzhenjie1@gmail.com
2011-02-03 04:53:29 +00:00
5c9b1d03a9
found these newly codable cards while scanning through the todo.
omegablast2002@yahoo.com
2011-02-03 03:54:28 +00:00
de60908836
Psychotrope Thallid removed from todo, its already been added
omegablast2002@yahoo.com
2011-02-03 00:27:04 +00:00
2c41ec0f28
removed Psychic Overload from todo
omegablast2002@yahoo.com
2011-02-03 00:23:33 +00:00
6f926b2f3a
fixed kor hookmaster
omegablast2002@yahoo.com
2011-02-02 18:29:20 +00:00
00f9b7b2ef
a couple of the todo card didnt get removed in last commit
omegablast2002@yahoo.com
2011-02-02 18:24:02 +00:00
840edaf14d
added and updated the todo Crushing Pain Fatal Blow Final-Sting Faerie Opportunist Witch's Mist Reciprocate Retaliation Giltspire Avenger doc might find more uses for it then i, just thought i would code some cards to go in with it.
omegablast2002@yahoo.com
2011-02-02 18:23:26 +00:00
2993388a6e
Fixed the Hellkite Igniter: text=First strike. -- Deathtouch. -- Whenever a creature an opponent controls is put into a graveyard from the battlefield, you may return target artifact card from your graveyard to your hand. ==> text=Flying, haste -- {1}{R}: Hellkite Igniter gets +X/+0 until end of turn, where X is the number of
guzhenjie1@gmail.com
2011-02-02 14:36:52 +00:00
76fc1558ec
morgue theft was never changed into a flashback card
omegablast2002@yahoo.com
2011-02-02 08:23:01 +00:00
ce8c6e69b3
ray of revelations was a flashback card not using flashback cost...
omegablast2002@yahoo.com
2011-02-02 08:16:50 +00:00
2ece777a11
stylistic change to my previous commit, has absolutely no effect on the code, just the way it looks.
omegablast2002@yahoo.com
2011-02-02 00:00:57 +00:00
a283c89059
Captivating vampire had some typos.
omegablast2002@yahoo.com
2011-02-01 23:53:22 +00:00
8c18d155b8
Jeck - Fix for issue 580. StyleManager initialization was causing an infinite loop. Also started documentation for OptionItem.
wagic.jeck
2011-02-01 19:11:43 +00:00
ea285e673e
2 changes here, first AManaProducer abilities will no longer use the stack as per MTG rules, for the most part this worked fine however genericactivedability does not use the reactto click put in place in the mana producer...so an ability which contained a cost other then just {t} was actually useing the stack instead in the fireability function.
omegablast2002@yahoo.com
2011-02-01 14:24:41 +00:00
b6dcb0dcd3
Fixed some formatting issues that cause compile issues on bsd.
wrenczes@gmail.com
2011-02-01 11:54:38 +00:00
b42dbf0655
VS2008 project changes to add the boost directory inclusion.
wrenczes@gmail.com
2011-02-01 10:39:33 +00:00
76cba56a1c
Resuming on my threading support work with the card caching mechanism. This change unfortunately touches quite a few files, but I needed to get it out of the way before things got out of hand: one significant hurdle is the assumed lifetime of a JQuad pointer. In a single threaded model, the life time of the pointer is clear: you fetch it into the cache, the cache makes room, you use the pointer immediately. In a multithreaded context however, it's unsafe, as the drawing thread can request a few JQuads, and the cache operating on a separate thread can potentially bounce a JQuad out of the cache before the draw routine is done using it, which ends up in an access violation when you attempt to draw using an invalidated quad pointer. To prevent this, the bulk of this change swaps out the use of naked JQuad* pointers in the code with a JQuadPtr, which is basically a typedef to a boost shared_ptr<JQuad>.
wrenczes@gmail.com
2011-02-01 10:37:21 +00:00
0b2f83c499
Adding an include path to Boost.
wrenczes
2011-02-01 09:56:05 +00:00
cfa7bc748a
More logging calls to my threading header.
wrenczes@gmail.com
2011-02-01 05:58:19 +00:00
9085b2a0e1
Some minor reformatting, JLOG instrumentation of the zip file loading.
wrenczes@gmail.com
2011-02-01 05:53:19 +00:00
d9facfb73b
* moved deck mana display code into separate method. * since I rescaled the images down to 50%, I moved the display to the upper right info box on the last line to the right of the "# of games played" information. Things look like it will fit as long as the number of games is under 1000
techdragon.nguyen@gmail.com
2011-02-01 00:48:23 +00:00
6d50ddcda5
* adjusted mana icons to be 60% of the original size. The rest of the game apparently resizes the mana icons to 40% but that makes it look a little blurred when viewed that way on the deck selection screen. * adjusted debug message condition for the mana display
techdragon.nguyen@gmail.com
2011-01-31 16:52:01 +00:00
a2939cc93f
Fixed the Wickerbough Elder: (Wickerbough Elder enters the battlefield with a -1/-1 counter on it.)
guzhenjie1@gmail.com
2011-01-31 15:18:54 +00:00
6bde3d0ee6
moved the translator init code earlier; added some translation support for the code of r2517 and r2907; updated some Chinese translation.
linshier
2011-01-31 14:21:46 +00:00
6bf8a1209d
Fixed several cards (reported by rawsugar):
solo81@web.de
2011-01-31 14:01:51 +00:00
7e21105460
fixed the 2 avatars, they were missing part of the secondary keyword for other restrictions checking opponent field.
omegablast2002@yahoo.com
2011-01-31 13:27:27 +00:00
1149f04df6
fixed a reported issue with regenerate...chooseBlockers appears as if it was never safegaurded at all...tho its understandable, wagic only made it "look" like ai was being offered a chance to interupt...in reality ai used to "check if it can interupt" then immedately "cancel interupt offer"...now its given a chance to interupt and cast instants...over looked in chooseblockers.
omegablast2002@yahoo.com
2011-01-31 13:02:40 +00:00
378fe1c600
Fixed the following cards reported by ph34rbot in forum: 1. Black Sun's Zenith 2. Blightwidow 3. Spiraling Duelist 4. Sword of the Meek 5. Vedalken Anatomist 6. White Sun's Zenith 7. Fixed Battle cry of following cards: Accorder Paladin Goblin Wardriver Kuldotha Ringleader Loxodon Partisan Signal Pest Hero of Bladehold Hero of Oxida Ridge Victory's Herald
guzhenjie1@gmail.com
2011-01-31 13:00:22 +00:00
fdd55dc22e
added more debug information to ensure correct string length of MANA meta data
techdragon.nguyen@gmail.com
2011-01-31 10:30:20 +00:00
c68a989915
Jeck - Begun documentation for the WGui classes. Also updated doxygen config to support STL.
wagic.jeck
2011-01-31 10:24:06 +00:00
8af5870d48
* Added new options parameter. "SaveDetailedDeckInfo". This will force the system to save all deck files in long format. This is not configurable from the game. It must be set manually inside options.txt. ie. saveDetailedDeckInfo=1
techdragon.nguyen@gmail.com
2011-01-31 10:04:18 +00:00
2973158a62
added new utility to check if a file exists on system.
techdragon.nguyen@gmail.com
2011-01-31 08:53:06 +00:00
6ddaf8b74b
removed draw method from GameObserver as it is no longer used since the refactor of the player mulligan code.
techdragon.nguyen@gmail.com
2011-01-31 08:38:14 +00:00
6a5eeff8dd
Added Avatar of Might.
solo81@web.de
2011-01-30 22:16:48 +00:00