Commit Graph

3271 Commits

Author SHA1 Message Date
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
guzhenjie1@gmail.com
d153403b37 Fixed Day of the Dragons. 2011-03-10 11:44:34 +00:00
guzhenjie1@gmail.com
f13a2c8555 Updated Slagstorm. 2011-03-09 15:16:19 +00:00
guzhenjie1@gmail.com
871ef2ba9e Fixed Boros Fury-Shield, Fend Off and Murderous Redcap. 2011-03-09 11:14:21 +00:00
guzhenjie1@gmail.com
7794f01b94 Corrected typo in Dragonskull Summit, Drowned Catacomb and Glacial Fortress. 2011-03-08 11:30:20 +00:00
guzhenjie1@gmail.com
477422a34e Corrected a typo in Lightmine Field's text. 2011-03-07 11:29:49 +00:00
omegablast2002@yahoo.com
f771ceb459 Gempalm Incinerator was allowing the targetting of players with its cycling ability.... 2011-03-06 17:26:26 +00:00
omegablast2002@yahoo.com
e8bbbb45de fixed a reported issue, find it a bit strange tho, as everything else can be adressed in this method without being so specific ie: using hasColor(blah) as in the way "fear" was added in here without addressing "this"....just to be on the safe side im going to specify "this->" becuase doing it without it was returning as tho it could not block even tho the creature did not have "weak"
i suspect this could be true with the intemidate and fear...
2011-03-06 16:23:23 +00:00
guzhenjie1@gmail.com
86dedaa48a Fixed Beastmaster's Magemark, Heart of Bogardan and Shield of the Righteous. 2011-03-06 10:52:26 +00:00
guzhenjie1@gmail.com
956093dab3 Fixed Hoofprints of the Stag, Wall of Resistance and Wall of Reverence. 2011-03-06 07:58:25 +00:00
guzhenjie1@gmail.com
e346a545fd Fixed Dead-Iron Sledge, Defiant Vanguard and Wall of Nets. 2011-03-06 04:13:20 +00:00
guzhenjie1@gmail.com
ab4a0d0657 Added missing text of Mox Opal. 2011-03-05 05:24:00 +00:00
guzhenjie1@gmail.com
cfa1bd21c4 Fixed Boon Reflection, Pious Warrior and Victory's Herald. 2011-03-04 14:29:28 +00:00