Commit Graph

3108 Commits

Author SHA1 Message Date
omegablast2002@yahoo.com
0ac8cd4096 updated prismatic omen, tho im sure there are others. 2011-03-28 23:41:46 +00:00
omegablast2002@yahoo.com
c03a444525 corrected Prismatic omen issue,
added newability[whatever ability] to transforms classes.
this allows for transforms to also add activated or mtgabilities to cards it targets.
example Prismatic omen:
auto=lord(land|myBattlefield) transforms(plains forest mountain swamp island,newability[{t}:add{w}],newability[{t}:add{g}],newability[{t}:add{r}],newability[{t}:add{b}],newability[{t}:add{u}])
Issue: 573
2011-03-28 23:39:29 +00:00
omegablast2002@yahoo.com
b600b8c41a updated Isleback Spawn, i dont have time to hunt down the rest, my apologies. 2011-03-28 16:40:25 +00:00
omegablast2002@yahoo.com
565ee57372 it was reported to me that cards such as Isleback Spawn were not actually working correctly, to fix these i added a compareZone function to aslongas and a tag to use when you want to compare different like zones, example:
lets say in the case of Isleback Spawn you want to see if ANY player has less then 20 cards.

auto=aslongas(*|library) 4/8 <21 compare

this will check if either you or your opponent has less then 20 cards. rather then adding the total cards in both libraries.

over the last weeks ive seen this cards code change atleast 3 times. this should be the final version for it and any other cards like it.
2011-03-28 16:39:30 +00:00
guzhenjie1@gmail.com
33c12745b0 Fixed following cards:
Dragon Breath
Dragon Fangs
Dragon Scales
Dragon Shadow
Dragon Wings
Ghostly Wings
Questing Phelddagrif

Updated following cards:
Kaervek the Merciless
Thornbite Staff
2011-03-28 15:47:58 +00:00
omegablast2002@yahoo.com
8257fec1f2 changed the order of the aslongas tags so they can act more like manual over-rides. 2011-03-28 14:20:16 +00:00
guzhenjie1@gmail.com
3178fb96fa Fixed following cards:
Diviner's Wand
Guiltfeeder
Leyline of the Void

Updated following cards:
Academy Researchers
Addle
Amnesia
Angel's Feather
Demon's Horn
Distress
Dragon Mage
Dragon's Claw
Encroach
Extract
Golem's Heart
Hint of Insanity
Inquisition of Kozilek
Kor Firewalker
Kraken's Eye
Mindslicer
Paradise Plume
Psychic Spear
Thornbite Staff
Thoughtseize
Unmask
Venarian Glimmer
Wheel of Fortune
Wurm's Tooth

Fixed a typo of Reassembling Skeleton in M11 _cards.dat reported in forum.
2011-03-28 13:09:29 +00:00
omegablast2002@yahoo.com
2b952d73cf Marton Stromgald again...PLEASE remember to update your primitives before commiting anything. 2011-03-28 11:22:20 +00:00
omegablast2002@yahoo.com
289c57b6ea updated wheel of fate
auto=reject all(*|opponenthand)
auto=draw:7 opponent
auto=reject all(*|myhand)
auto=draw:7 controller
=====>
auto=reject all(*|hand)
auto=draw:7 opponent
auto=draw:7 controller
2011-03-27 20:35:46 +00:00
omegablast2002@yahoo.com
9107b2d8d4 it was reported to me that "|hand)" and "|library)" targetchoosing were only allowing you to target things in YOUR hand/library...
added parsing to correct this bug, 
cards which state "card from target players hand" should be coded "target(*|hand)" which allows targetting of any cards which are in a hand not just your hand.
|myhand)
|opponenthand)
|hand)
self explainitory.....
2011-03-27 20:19:33 +00:00
omegablast2002@yahoo.com
fdaab847b4 updated Emperor Crocodile to use the new "while" tag for aslongas effects. 2011-03-27 19:47:11 +00:00
omegablast2002@yahoo.com
32556ff5c7 added 2 test showing that the emperor crocodile is destroyed afterward (shows that the effect is not treated as a oneshot)
and another that shows that it is destroyed immediately when entering an empty battlefield.
2011-03-27 19:46:12 +00:00
omegablast2002@yahoo.com
7d98628355 added a "while " tag for aslongas effects which are not supposed to be treated as oneshot abilities. adding it as a tag allows for maximum flexibility in the code.
while i was at it reworked the aslongas class completely, i promised myself if another bug popped up with aslongas i would rewrite it. 20 hours later, we have an aslongas which does not care about when cards come or go.
aslongas should never have used the added/removed to determine the validity of its effect. i allow update to sort it out now in the update function of aslongas...also added a new function to it called sorterfunction tho it looks as it could be reduced in code i would appreciate that it remains as it is, simply because of the nightmare i went through fixing the previous 7 bugs or more reported for aslongas. the logic was far to jumbled up. this i hope is atleast cleaner and easier to understand for the future devs that might work on it.

note: all test passed, all manual testing also passed.

new while tag is used as follows.

[card]
name=Emperor Crocodile
auto=aslongas(other creature|myBattlefield) all(this) sacrifice while <1
text=When you control no other creatures, sacrifice Emperor Crocodile.
mana={3}{G}
type=Creature
subtype=Crocodile
power=5
toughness=5
[/card]

this will denote that the ability is NOT a oneshot ability and should remain effective for the entire time the card is in the field.
Issue: 613
2011-03-27 14:37:12 +00:00
guzhenjie1@gmail.com
45566ad5bd Fixed code of Isleback Spawn.
Removed one of the wolf token.
2011-03-27 13:02:07 +00:00
guzhenjie1@gmail.com
152a4dbe87 Changed Psychic Spear and Venarian Glimmer. 2011-03-27 10:26:05 +00:00
guzhenjie1@gmail.com
7a7034bf1b Changes following cards use this kind of code:
target=blah
auto=blah

Castigate
Distress
Encroach
Extract
Inquisition of Kozilek
Psychic Spear
Thoughtseize
Unmask
Venarian Glimmer
2011-03-27 04:21:20 +00:00
guzhenjie1@gmail.com
598e1b4521 Fixed Grizzly Fate and Eye of Ugin.
Updated following cards, they target card in your own hand now:
Addle
Distress
Encroach
Hint of Insanity
Inquisition of Kozilek
Psychic Spear
Thoughtseize
Unmask
Venarian Glimmer

Updated following cards:
Astrolabe
Barbed Sextant
Castigate
Catalog
Extract
Fallow Wurm
Plant Elemental
Rogue Elephant
Ruinous Minotaur
Scythe Tiger
Coral Atoll
Crosis's Catacombs
Darigaaz's Caldera
Demonic Appetite
Dormant Volcano
Dromar's Cavern
Everglades
Jungle Basin
Rith's Grove
Treva's Ruins

Added Amnesia.
2011-03-26 17:35:51 +00:00
guzhenjie1@gmail.com
bcb7e64dfd Updated all cards used code "token(-1924)" by "token(Saproling,Creature Saproling,1/1,green)".
Removed token card of them:
[card]
name=Saproling
type=Creature
subtype=Saproling
power=1
toughness=1
color=green
id=-1924
[/card]
2011-03-26 09:26:06 +00:00
guzhenjie1@gmail.com
eb81a10868 Updated all cards I found with discard effects by using "reject":
Addle
Apocalypse
Brainbite
Careful Study
Coercion
Distress
Doomsday Specter
Dragon Mage
Drekavac
Duress
Encroach
Exiled Boggart
He Who Hungers
Lion's Eye Diamond
Looter il-Kor
Manabond
Mercenary Knight
Merfolk Traders
Mind Slash
Mindslicer
Mox Diamond
Myojin of Night's Reach
Nicol Bolas
Null Brooch
One with Nothing
Ostracize
Owl Familiar
Psychic Spear
Screeching Drake
Shattered Dreams
Sift
Sky-Eel School
Slate of Ancestry
Talara's Bane
Thought Gorger
Thoughtseize
Thrull Surgeon
Thundering Wurm
Unmask
Vodalian Merchant
Volrath the Fallen
Wheel and Deal
Wheel of Fortune

Bazaar of Baghdad Discard
Bonded Fetch's Discard
Careful Studies 2nd Discard
Drowned Rusalkas Discard
Emmessi Tome's Discard
Enclave Cryptologist's Draw-Discard
Frontline Sage's Discard
Grixis Battlemage's Discard
Inspired Sprite's Discard
Jalum Tome's Discard
Magus of the Bazaar Discard
Merfolk Looter's Discard
Obelisk of Alara's Discard
Riddlesmith's Discard
Thought Courier's Discard
Treva's Charm's Discard
2011-03-26 09:13:33 +00:00
wagic.the.homebrew@gmail.com
8f4f884edb Adding Kaioshin's new Wallpapers 2011-03-26 02:20:15 +00:00
guzhenjie1@gmail.com
e0084c108b Fixed Powder Keg.
Updated following cards:
Body Snatcher
Greel, Mind Raker
Last Stand
Mesmeric Trance
Psychic Vortex
Spellbound Dragon
Venarian Glimmer

Added Hint of Insanity and Persecute.
2011-03-25 17:11:15 +00:00
omegablast2002@yahoo.com
142ae40133 updated thallid test to look for the correct token id...this is why you should not add multiple tokens for the same creature as entries in card.dat...thallid looks for -1924...the original id....-11492115 is a new card.dat info which was added and i complained about the constant fails in the test suite from these types of additions.
this was intruduced as a workaround to force a card to be able to display muliple types of tokens, which wagic can support with this workaround but causes fails in test suite....

Sarpadian Empires, Vol. VII

this is the card that created this fail.

in the future we need to be careful about adding tokens to card.dat...there are 2 different systems for getting a token to appear for a card. lets use what we have.
2011-03-24 19:07:45 +00:00
guzhenjie1@gmail.com
3d50eba421 Fixed following cards:
Echoing Ruin
Eradicate
Extirpate
Incite Hysteria
Leave No Trace
Neurok Commando
Retraced Image
Scour
Sowing Salt
Splinter
Surge of Zeal
Wojek Siren

Updated following cards:
Cleansing Beam
Lobotomy
Rally the Righteous
Wake of Destruction
2011-03-24 13:04:02 +00:00
wagic.the.homebrew@gmail.com
500abec9e6 Erwan
- Updating version number for upcoming revision
- Note: test Thallid.txt fails, we need to investigate when this happened and fix asap, will open a ticket.
2011-03-24 12:36:32 +00:00
omegablast2002@yahoo.com
ff97eed3f1 life and limb. the becomes was removing type "forest land" 2011-03-24 03:49:15 +00:00
guzhenjie1@gmail.com
a739d02b4a Fixed Ashnod's Transmogrant, Mercadian Lift and Thumbscrews. 2011-03-23 15:35:44 +00:00
guzhenjie1@gmail.com
88ed260540 Updated Admonition Angel and Mortuary.
Fixed typo of following cards was reported in forum:
Dawnglare Invoker
Dryad Arbor
Reinforced Bulwark
Sword of the Paruns
Totem-Guide Hartebeest
2011-03-23 11:33:40 +00:00
guzhenjie1@gmail.com
dbe7a1c5b5 Added Inquisition of Kozilek. 2011-03-22 13:21:41 +00:00
omegablast2002@yahoo.com
966d8b453d reworked landhome ability, to fix a reported bug where it simply becomes tapped on opponents turn for no reason. 2011-03-22 10:46:32 +00:00
omegablast2002@yahoo.com
06ca82929b removed clockwork beast alias and hard code. it is no longer needed as i added a soft coding method that was far more generic and leaving this is was causing conflicts with the new code. players reported that using the 4th edition clockworks beast was loading the card with the alias even tho i removed the alais in the primitives. 2011-03-22 03:44:54 +00:00
omegablast2002@yahoo.com
65f2706f1e fixed a bug where cards with vanishing (new vanishing) were given "vanishing as a menu item during combat. 2011-03-22 03:41:45 +00:00
omegablast2002@yahoo.com
cb1b1d3054 updated the foelost cards, added Sygg, River Cutthroat. 2011-03-22 03:27:56 +00:00
omegablast2002@yahoo.com
0fb914c0c3 fixed a reported bug where the foelost restrictions for triggers were not activating correctly, also updated the code by making it more flexiable...you can now do foelost(number) instead. 2011-03-22 03:20:17 +00:00
omegablast2002@yahoo.com
55d58b6425 fixed a reported bug where blinking cards with "nonbattlezone" code was not activating triggers. :( accidently forgot to add the MY_EXILE to the list of non-battle. :) all good now. 2011-03-22 02:49:49 +00:00
omegablast2002@yahoo.com
aeb4a839b2 fixed a report crash with auras that "teach(" an activated ability to a creature which can phaseout. 2011-03-22 02:25:02 +00:00
omegablast2002@yahoo.com
43711786fd fixed a reported bug where a player would respond to a targeted ability by phasing out a creature and the targeted ability would still resolve on the phased card. 2011-03-22 02:15:10 +00:00
omegablast2002@yahoo.com
a866adb8ea updated the altercost cards to remove the "resetcost" code. 2011-03-22 01:20:07 +00:00
omegablast2002@yahoo.com
f2c905225b cleaned up resetting cost for altercost code, its *almost* where i want it to be, removed the need to have "resetcost" coding on card code. removed "resetcost" keyword.
i was not 100% successful in getting the correct cost on altercost which reduced the amounts. however altercost which increased the amounts are now clean code. so the reducers are still using a dirty method of putting the card from the hand back into the hand to get the correct amounts.

the issue i ran into is how to get the correct amount in this situation.
target cost {5} 
have 3 reducers that - {2}
thats {1} of overkill reduce...
heres the issue. now remove all the reducers from play. the cost returns to {6} instead of 5. 
you would think, will have it track the over kill. which leads to another. have the 3rd card which would contain the overkill removed first, i factor the overkill and increase the amount by what was reduced, but that would not be correct. since the reduce was {2} the increase of removing the overkill card should increase the targets cost by {2} not the amount it actually reduced. as you can see, it is extremely complex. so for now im leaving it dirty, but removing the resetcost code.
2011-03-22 01:12:33 +00:00
omegablast2002@yahoo.com
e9eaef430e unable to repro but i recieved reports of code using "thatmuch" producing massive numbers in edge cases. I realized i never int'ed it to 0, so im hoping that this was the reason for the massive positive and negitives it would produce. 2011-03-21 23:16:59 +00:00
guzhenjie1@gmail.com
096add2236 Fixed Green Sun's Zenith. 2011-03-20 08:58:39 +00:00
guzhenjie1@gmail.com
df7b8283d5 Fixed Prismatic Omen. 2011-03-19 13:31:41 +00:00
Xawotihs
29e9ea62c3 Fixed the build problem with VS2008 and actived multithreaded build while I was at it ... you guys liked to wait ? =) 2011-03-19 08:35:57 +00:00
guzhenjie1@gmail.com
58c556741e Fixed following cards reported in forum:
AEthertow
Balduvian Dead
Barkshell Blessing
Disturbed Burial
Disturbing Plot
Giantbaiting
Gleeful Sabotage
Hornet
Hunted Dragon
Hunted Horror
Hunted Lammasu
Hunted Phantasm
Hunted Troll
Memory Sluice
Pyrohemia
Tetsuo Umezawa
Urborg Emissary
Vampire Hexmage

Updated following cards:
Bazaar of Baghdad
Brood Birthing
Dark Depths
Gemstone Mine
Hickory Woodlot
Icatian Crier
Kulrath Knight
Oblivion Stone
Peat Bog
Plague Boiler
Remote Farm
Sandstone Needle
Saprazzan Skerry

Changed the code of Tidal Wave:
Tidal Wave
auto=token(-3371)
 ==> 
auto=token(Wall,Creature Wall,5/5,defender,treason,blue)

Removed the token card of it in mtg and card.dat:
[card]
name=Wave
power=5
toughness=5
abilities=defender
auto=@next end:moveTo(mygraveyard)
text=Defender
type=Creature
suptype=Wall
color=blue
[/card]

MIR
[card]
primitive=Wave
id=-3371
rarity=T
[/card]
2011-03-17 11:12:53 +00:00
guzhenjie1@gmail.com
2d8a1d0aa0 Fixed following cards:
Archon of Redemption
Avenger en-Dal
Death Watch
Gristleback
Heal the Scars
Rashida Scalebane
Stalking Vengeance
Wave of Reckoning

Corrected text of Chronozoa.
2011-03-15 11:17:34 +00:00
guzhenjie1@gmail.com
0eaaac1500 Fixed Venerated Teacher. 2011-03-14 13:26:24 +00:00
guzhenjie1@gmail.com
a20e0a41c8 Corrected Shaper Parasite and Sword of Vengeance was reported in forum. 2011-03-14 11:05:37 +00:00
Xawotihs
f9be0a6341 - reworked completly the JNetwork, JSocket interface (had to ifdef out the PSP socket code)
- added 2 menus to wait for connection and wait for deck selection
- tested compilation on Qt Linux, Qt Windows and PSP
- deactivated everywhere (NETWORK_SUPPORT to activate).
2011-03-13 21:19:02 +00:00
guzhenjie1@gmail.com
3220f94e00 Corrected code of Unscythe, Killer of Kings. 2011-03-13 08:35:57 +00:00
guzhenjie1@gmail.com
573004dccd Updated Helldozer. 2011-03-12 13:32:40 +00:00
guzhenjie1@gmail.com
4272fe83e9 Updated Mine Layer. 2011-03-12 12:59:17 +00:00