Commit Graph

3364 Commits

Author SHA1 Message Date
omegablast2002@yahoo.com
2f82f1888c couple things, first i goofed up in 2 spots, the equipment check for legality, yes shroud isnt a case, but it is also not a case of why you shouldnt remove it from a card which is illegal, so reworked it to find that the items i was looking to exclude( the protections) were all in a single spot :) yay to good programing!...so i pass a bool now with cantarget "withoutProtections" defaults to false so protections are always accounted for unless you specify not to include them, which is what ive done....now if only auras had a nice little spot to add such coding we can correct this rule on auras...
2nd, fixed a misunderstood line i added, i was aiming for the tc that triggered the event in trtargted....all tested passed, and i didn't manually test that change (SHAME ON ME!!!)...corrected it in the correct place now, where the event is sent.

3rd, trying to fix a broken alias class, this is a work in progress, i intend to fix this and then convert it to a keyword for draw replacement effects for 16.1(?) anyways, only thing ive left to figure out is telling it how to determine that the last stack ability is a "draw" ability. this class quit working ALONG time ago when the "addDraw" object was no longer used. the methods for card drawing changed and no one updated the alias class to use the new method, i imagine this is also what broke aladdins lamp originally(which the change of draw events and how card display is set up)
2011-04-05 16:03:19 +00:00
omegablast2002@yahoo.com
c0d9c3a834 just being safe here...there is a report of an unreproducible bug that happens completely at random since i moved the parsing of limit into the reactToClick, im guessing it might be that limitPerTurn is never set. 2011-04-05 00:16:05 +00:00
omegablast2002@yahoo.com
bab6d386b5 2011-04-04 19:58:06 +00:00
omegablast2002@yahoo.com
553615a563 sending @discarded events for the auto hand cleaning and clean up step discard events 2011-04-04 19:52:58 +00:00
guzhenjie1@gmail.com
a5da77981f Corrected creature type of Chimeric Coils. 2011-04-04 13:13:20 +00:00
omegablast2002@yahoo.com
f614fa1cde just adding some of the discarders as random discard in boarderline. theyre playable, but no choosing of the card to be discarded. 2011-04-03 16:20:54 +00:00
omegablast2002@yahoo.com
1c1c6e6497 clean up 2011-04-03 14:09:58 +00:00
guzhenjie1@gmail.com
1e982c7fe1 Corrected Animate Artifact. 2011-04-03 13:31:58 +00:00
omegablast2002@yahoo.com
2176fab573 Blessing of the Nephilim code corrected 2011-04-03 12:43:03 +00:00
omegablast2002@yahoo.com
19b5490729 Withering Wisps updated to fix the bug, it was doing nothing. there is a parser limitation that does not allow limit: to work in foreach( nested activated abilities. the card basically never did anything. 2011-04-03 12:26:44 +00:00
omegablast2002@yahoo.com
2eca724001 2 things,
fixed a bug with Withering Wisps, moved the parsing of the limit string into the isreactingtoclick function, this allows word varibles such as type: to be used.

2nd, removed a varible isTempPhased, it *appear* it might not be needed, tho i didn't handle phasing the way im converting it to for a reason, so cross your fingers and hope all goes well.
BTW: do not email me about any bugs that ariase with phasing or phased out creature, im not excepting bug reports on it to my email box...instead open a ticket with a repro method and mark it as critical.
2011-04-03 12:24:21 +00:00
guzhenjie1@gmail.com
4cd0953ebc Corrected following cards with "world rule":
Chaosphere
Concordant Crossroads
Gravity Sphere
Living Plane
Mystic Decree
Serra Aviary
Storm World
Tombstone Stairwell

auto=@movedTo(enchantment[world]|battlefield):bury
 ==> 
auto=@movedTo(enchantment[world]|battlefield):sacrifice all(this)

Updated Svogthos, the Restless Tomb. Thanks for Zeth's remind!
2011-04-03 10:45:20 +00:00
omegablast2002@yahoo.com
dae5478084 move rainbow efferts test to test folder 2011-04-03 10:16:55 +00:00
omegablast2002@yahoo.com
17ac081ed3 fix for rainbow effert 2011-04-03 10:13:07 +00:00
guzhenjie1@gmail.com
442f61b350 Corrected following cards:
Animate Artifact
Chariot of the Sun
Pestilence

Updated following cards:
Chimeric Mass
Chimeric Staff
Svogthos, the Restless Tomb
Testament of Faith
Weight of Spires
2011-04-03 09:44:29 +00:00
wrenczes@gmail.com
592cc840c6 Refactored ThreadedCardRetriever into a threaded vs non-threaded implementation. 2011-04-03 08:45:50 +00:00
wrenczes@gmail.com
efe13d7621 Checkpoint - refactored out my ThreadedCardRetriever code into a separate header. This header isn't included by anyone else for the moment, so it currently has no impact on the build. 2011-04-03 07:19:01 +00:00
wagic.the.homebrew@gmail.com
e867881e16 - Fix issue 552 (Card images too big in deck editor)
- Moved big picture display a bit down ingame
- Temporarily Reinstantiated "back quad shows first" in deck editor, see my comments in http://code.google.com/p/wagic/source/detail?r=3008
-- This is only temporary, and pending the final Thread work, but I'm afraid this won't make it to 0.15. It is possible to get the previous behavior back with a simple define, in case we want it for windows.
2011-04-03 06:07:23 +00:00
wagic.the.homebrew@gmail.com
2bb0fe996d Adding Kaioshin's new wallpaper 2011-04-03 03:26:54 +00:00
wagic.the.homebrew@gmail.com
77a1e98bc3 Adding test for issue 616 (Rainbow Efreet phase out) 2011-04-03 03:17:36 +00:00
omegablast2002@yahoo.com
ee0231f4da shroud is not a case for it, sorry! 2011-04-02 22:34:37 +00:00
omegablast2002@yahoo.com
3deae0137e changing a int type for pspsdk to stop complaining. 2011-04-02 22:22:34 +00:00
omegablast2002@yahoo.com
785aa505b2 added O-Naginata which was previously not added becuase the rule in the previous commit was not followed. 2011-04-02 22:16:19 +00:00
omegablast2002@yahoo.com
10e576f4b7 Rules correction for equipment, if at any point the currently equipped card is no longer a valid target for the equipment, ie:it was attached to a manland, hidden enchantment, has restrictions in equipment tc such as can't enchant vampires and target became a vampire, ect
the equipment is supposed to fall of as a statebased effect.

this is also true for auras, tho the fix for auras will be alot more complex, and im not reffering to the "protected against" bug which we have reason to not fix.
this is a rule that states

303.4b - If an Aura is enchanting an illegal object or player, the object it was attached to no longer exists, or the player it was attached to has left the game, the Aura is put into its owner's graveyard. (This is a state-based action. See Rule 704.) [CompRules 2009/07/08]

an aura that targets a creature that suddenly becomes a land and loses creature is supposed to fall off, an aura that targets a green creature that suddenly becomes black and loses green is supposed to fall off.

this rule is the same for both auras and equipment, but due to how we handle auras, only equipments will be fixed in this commit.
2011-04-02 22:11:32 +00:00
omegablast2002@yahoo.com
29ae982253 added Demonspine Whip to demonstrate both fixes in action. 2011-04-02 21:02:48 +00:00
omegablast2002@yahoo.com
67ebd964e1 2 bug fixes;
first, while hunting down easter eggs in the todo.dat i started trying to code some un-added equipment...noticed that thisforeach was exhabiting strange behavior.
what was happening was in the changed line, abilities.size() was a non-static number, so on most abilities, thisforeach was actually stopping prematurely. which explains why there was no test added for thisforeach, becuase it really wasnt working correctly.
what i did to correct the issue was set "i" as an unsigned int = abilities.size()..this way abilities being added don't stop it prematurely in the process of adding the matches.

2nd, this one is geared towards equipment only, it is a bug fix, not a "lets recode all equipment to use this"...i noticed that alot of equipment was suffering from double entries of activated abilities, the first entry was always targeted at the equipment and did nothing in most cases, the 2nd was always added during the getabilities call.
to fix, i added autoskill= ...what this line is used for it activated abilities or abilities that otherwise shouldnt exist when the card is not equipped, it is called on when getabilities function is called by equip() and for removel purposes.
2011-04-02 21:01:33 +00:00
omegablast2002@yahoo.com
7d0ff5aa34 add banshee blade 2011-04-02 19:07:20 +00:00
omegablast2002@yahoo.com
e23ce580fe fixed a bug with sunburst and sunburst cards which contained x. 2011-04-02 18:30:55 +00:00
guzhenjie1@gmail.com
0fa410cab0 Fixed Withering Wisps.
Updated Pyrohemia.
2011-04-02 17:48:32 +00:00
guzhenjie1@gmail.com
737de5f4de Corrected Dingus Staff and Shoreline Salvager.
Updated Ohran Viper.
2011-04-02 16:51:59 +00:00
guzhenjie1@gmail.com
9fb40001a7 Updated Angelic Renewal. 2011-04-02 16:36:30 +00:00
guzhenjie1@gmail.com
feae8656a7 Corrected Opaline Bracers and text of Suntouched Myr.
Updated Infused Arrows.
2011-04-02 15:03:07 +00:00
wagic.the.homebrew@gmail.com
17f90bce66 Reduced size of Christmas theme preview, in the hope to minimize crashes on the PSP in the user settings page 2011-04-02 07:58:39 +00:00
omegablast2002@yahoo.com
fb3aac32ee sygg, river cutthroat p/t were incorrect...was 2/2...correct 1/3 2011-04-01 18:54:15 +00:00
omegablast2002@yahoo.com
155b909bfd had to add this eff return becuase ai suddenly became retarded with the addition "teach" and the use of auras. 2011-04-01 18:36:36 +00:00
guzhenjie1@gmail.com
5f3018d6fa Corrected Karn, Silver Golem.
Updated Karn's Touch, Spawning Pool and Stalking Stones.
2011-04-01 16:24:12 +00:00
omegablast2002@yahoo.com
89dcf9600f wormfang drake added oneshot. 2011-04-01 12:57:00 +00:00
omegablast2002@yahoo.com
14e4775d54 cleaned up the alias change i made earlier today. 2011-04-01 11:14:06 +00:00
omegablast2002@yahoo.com
84234999af corrected diamond valley code 2011-04-01 10:57:31 +00:00
guzhenjie1@gmail.com
b27967170b Fixed Prismatic Lace 2011-03-31 22:45:54 +00:00
omegablast2002@yahoo.com
750f9c89cf removed un-need .c_str() call. 2011-03-31 17:24:49 +00:00
omegablast2002@yahoo.com
dba143983c fixed wall of root and found a engine limitation....if a mana producer needs to have a "limit:number" then you NEED to have "all(this)" before it as follows for example
auto={C(-0/-1,1)}:all(this) Add{G} limit:1
other wise it parsed as a non=activated ability, don't worry tho, i change activated manaproducers a long time ago so that they dont use the stack, so all this will do is enable using "limit:"...
2011-03-31 17:16:21 +00:00
omegablast2002@yahoo.com
2277e9906b updated the card creating this effect "it can attack as though it didn't have defender" to use "canattack" 2011-03-31 16:44:43 +00:00
omegablast2002@yahoo.com
dbc5376135 added "abilities=canattack"
Warmonger's Chariot
6/15/2010: The second ability doesn't cause the equipped creature to lose defender. It just lets it attack.
2011-03-31 16:39:28 +00:00
omegablast2002@yahoo.com
f5c3f76f0b updated soft codes for the hard coded cards removed from svn. 2011-03-31 16:17:11 +00:00
omegablast2002@yahoo.com
3789c947a3 had to update this test since the hard coded living artifact was actually incorrect. 2011-03-31 16:16:09 +00:00
omegablast2002@yahoo.com
476a74340a little bit of hard code clean up, soft coded the following cards and removed thier hard codes
Angelic Chorus
Lavaborn Muse
Pestilence
Living Artifact
Hypnotic Specter
there is test for each of these.
btw living artifact hard code was wrong, it was allowing you to remove counters at any phase, the soft code is actually correct. updated living artifact test to the correct version in next rev
also fixed a case where "thatmuch" was never set, i now also store the amount on the source of the trigger as well.
2011-03-31 16:15:30 +00:00
omegablast2002@yahoo.com
6572a11848 changed the way aliases set id.
the old method was fine when wagic only supported 200 cards, this is so far from the case now. this will avoid bugs being introduced when we add support for a card in soft code.
what this was essentially doing was it would load every set but the hardcode card as soft code, and if you used the card which was originally hard coded, you get a bug where soft and hard code are both loaded.
2011-03-31 14:50:44 +00:00
omegablast2002@yahoo.com
eb010093fe code change for life and limb,
auto=lord(*[saproling;forest]) transforms((saproling forest creature land,setpower=1,settoughness=1,newability[{t}:add{g}]))

this is close enough for me, its 99% correct in my books, you can declare either forest and saprolings as attackers, target them as thier respective new types, the only thing that is not correct about it is that they can tap for mana the turn they come into play, however they have summoning sickness and can not attack.

im am not going to change the attack/block rules or manaproducer reactToClick just to satisfy this bug in the only card in MTG that does this.
2011-03-31 13:50:48 +00:00
guzhenjie1@gmail.com
1b77a78cc7 Fixed a typo in Ronin Warclub and text of Sphere of the Suns. 2011-03-31 12:46:13 +00:00