Commit Graph

3673 Commits

Author SHA1 Message Date
Xawotihs
07ca0c19c3 Fixed postbuild event when path contains spaces 2011-05-23 20:28:18 +00:00
Xawotihs
00aa339a1b Fixed linking problem 2011-05-23 18:14:04 +00:00
omegablast2002@yahoo.com
69d6b6d5a8 removed the flying text from stonehewer... 2011-05-23 15:21:36 +00:00
omegablast2002@yahoo.com
868b8b186b changing one line 2011-05-23 14:47:11 +00:00
omegablast2002@yahoo.com
50439ed458 updated rules.txt 2011-05-23 11:47:13 +00:00
omegablast2002@yahoo.com
0727343ebe first moved the def of handsize for a game into the rules.txt as discussed with wololo...
this update requires you to update your rules folder files!!!

2nd
added 2 new vanguard game modes.
Stone Hewer Basic - when ever a creature enters play, a random equipment with a converted mana cost less than or equal to that creature is put into play and attached to it.
this mode is unlockable, requirement = win a match where 10 or more equipment were in the battlefeild at the moment you won.

Hermit Druid basic- in this game mode, during each of the players upkeeps, a random land card from their deck is placed into the battlefield, these do not count against your 1 land per turn limit.
to unlock this, win any match with less then 10 lands.
2011-05-23 11:46:04 +00:00
guzhenjie1@gmail.com
a863b68a30 Corrected Golem-Skin Gauntlets. 2011-05-23 11:02:55 +00:00
Xawotihs
7ba1ef14bb - Modified the windows project to use SDL as DLL, so that we all get mouse support now.
- I think I fixed issue 664, it's funny how the problem is visible on Windows and on some HTC devices but totally absent on Linux and some Samsung devices
- The SDL fullscreen is not working that good, it would need to be improved.
2011-05-22 21:47:31 +00:00
Xawotihs
3b0f47c420 Added SDL VS 2010 project and fixed some compilations and small resize bug 2011-05-22 21:35:19 +00:00
guzhenjie1@gmail.com
c399262f30 Corrected following cards:
AEther Membrane
Abomination
Basalt Golem
Cockatrice
Contempt
Deathgazer
Defiant Vanguard
Dread Specter
Dread Wight
Goblin Sappers
Greater Werewolf
Heat Stroke
Infernal Medusa
Ohran Viper
Sawtooth Ogre
Serpentine Basilisk
Silent Assassin
Sosuke, Son of Seshiro
Tangle Asp
Thicket Basilisk
Time Elemental
Tolarian Entrancer
Venom
Wall of Tears

[combatends]
 ==> 
[combatends once]
2011-05-22 13:42:48 +00:00
solo81@web.de
17efa1c5d1 Fixed Undiscovered Paradise. 2011-05-22 11:53:14 +00:00
guzhenjie1@gmail.com
b52c5ae45c Corrected Azorius Herald, Shoreline Ranger and Tolarian Entrancer. 2011-05-22 09:47:57 +00:00
guzhenjie1@gmail.com
b282691c13 Corrected Vengeful Dead and Entrails Feaster. 2011-05-21 14:15:20 +00:00
guzhenjie1@gmail.com
eaf129a490 Corrected Decree of Savagery and Sunfire Balm. 2011-05-20 11:20:33 +00:00
omegablast2002@yahoo.com
24049d3da4 fixed a reported bug with blood chief accession, the cause was a goof up in logic, in the refactor to this section, foelost( parsing was changed to be its bool for lifelost....however since it was changed and we now didn't declare that "foelost(" was "found"...found was a null variable when we tried to atoi it.... 2011-05-19 12:35:35 +00:00
omegablast2002@yahoo.com
426cc68950 fixed a bug where "becomes(" was no longer giving more the a single ability to a card, example, inkmoth nexus would only gain flying, and not gain infect, this i imagine was due in part to a goof up...we split the string at the top by comma, in the refactor for this section it was changed to be either "" or becomesblah[2] <--this is incorrect, becuase what if a card would gain 2 abilities or more ...the we need to append the rest of the split portions back into the abilities string for adding.
also a piece that didn't get in my last commit, nothing big just 2 lines...not sure why on earth it didn't commit them before...
2011-05-19 12:17:53 +00:00
guzhenjie1@gmail.com
4a4066d145 Corrected Moltensteel Dragon, Tormentor Exarch and Whipflare. 2011-05-19 10:52:02 +00:00
solo81@web.de
135aba6d03 Fixed Myojin of Cleansing Fire. 2011-05-17 20:45:27 +00:00
guzhenjie1@gmail.com
2110b7e972 Added text of Glimmerpost. 2011-05-17 15:23:12 +00:00
omegablast2002@yahoo.com
4793ba76bb taught ai how to use ability fizzlers such as Glen Elendra Archmage...reworked fizzle to cover both cases of ai trying to target a card on the stack. 2011-05-17 13:58:28 +00:00
wagic.the.homebrew
9b63553c3e - Minor code cleanup (removed AABanishCard class and unused banishmentType variables) 2011-05-16 23:41:52 +00:00
wagic.the.homebrew
480875d57a - Subtypes "getValuesById" now returns a reference
- Minor cleanup of Transformer per one of my comments a few days ago.
2011-05-16 23:19:08 +00:00
omegablast2002@yahoo.com
39420a911f 3 fixes,
first you are not allowed to mulligen the opponents hand.

second persist was using the stack on its returning effect, this is incorrect as per MTG rules for persist, the card is supposed to go from the grave directly to inplay(grave -> temp -> inplay, in our case).

third, tokens models don't have names, so i make it check now for a name size on the model before clearing and resetting in tranformer.
2011-05-16 18:36:47 +00:00
guzhenjie1@gmail.com
60e9736ef3 Removed code "from(hand)" in following cards:
AEther Sting
Angel's Feather
Angelic Arbiter
Argothian Enchantress
Aurora Eidolon
Baku Altar
Balefire Liege
Ballynock Trapper
Battlegate Mimic
Battlewand Oak
Belligerent Hatchling
Blademane Baku
Blind Creeper
Bog Gnarr
Bounteous Kirin
Briarknit Kami
Celestial Ancient
Celestial Kirin
Chimeric Egg
Cinder Pyromancer
Cloudhoof Kirin
Contemplation
Deathbringer Liege
Deep-Sea Kraken
Demon's Horn
Desecration Elemental
Dragon's Claw
Dreamcatcher
Drooling Ogre
Dwarven Patrol
Earthshaker
Ebon Drake
Elvish Handservant
Emberstrike Duo
Enchantress's Presence
Enigma Eidolon
Entropic Eidolon
Fable of Wolf and Owl
Fiddlehead Kami
Forced Fruition
Forgotten Ancient
Furious Assault
Gelectrode
Gilt-Leaf Archdruid
Glade Gnarr
Glimpse of Nature's Draw
Gloryscale Viashino
Goblin Cohort
Golem Foundry
Golem's Heart
Gravelgill Duo
Guardian of Solitude
Halcyon Glaze
Hand of the Praetors
Haru-Onna
Havoc
Heartwood Storyteller
Hidden Ancients
Hidden Gibbons
Hidden Guerrillas
Hidden Predators
Hidden Spider
Hikari, Twilight Guardian
Horizon Seed
Illusory Demon
Innocence Kami
Insight
Inspired Sprite
Ishi-Ishi, Akki Crackshot
Jackalope Herd
Jade Idol
Kaervek the Merciless
Kami of Fire's Roar
Kami of Tattered Shoji
Kami of the Hunt
Kami of the Painted Road
Kami of the Waning Moon
Kiln Fiend
Kiri-Onna
Kodama of the South Tree
Kor Firewalker
Kor Spiritdancer
Kraken's Eye
Kurgadon
Leering Emblem
Leonin Battlemage
Loam Dweller
Loyal Gyrfalcon
Lys Alana Bowmaster
Lys Alana Huntmaster
Manaplasm
Memory Erosion
Merrow Levitator
Mesa Enchantress
Mirran Spy
Mogg Conscripts
Mogg Sentry
Mold Adder
Nettle Sentinel
Nightsky Mimic
Nikko-Onna
Norin the Wary
Noxious Hatchling
Ogre Recluse
Onslaught
Opal Archangel
Opal Caryatid
Opal Champion
Opal Gargoyle
Opal Guardian
Orbweaver Kumo
Ore Gorger
Oyobi, Who Split the Heavens
Painsmith
Pangosaur
Paradise Plume
Predatory Hunger
Presence of the Master
Primordial Sage
Pristine Angel
Pyrostatic Pillar
Quill-Slinger Boggart
Quillmane Baku
Quirion Dryad
Reki, the History of Kamigawa
Riddlesmith
Riverfall Mimic
Safehold Duo
Sandstorm Eidolon
Scaled Hulk
Shorecrasher Mimic
Sigil of the Empty Throne
Sire of the Storm
Skittering Horror
Skittering Monstrosity
Skittering Skirge
Skullmane Baku
Snake Pit
Soilshaper
Sol'kanar the Swamp King
Soot Imp
Soul of Magma
Spellshock
Sphinx-Bone Wand
Straw Golem
Sturdy Hatchling
Surrakar Spellblade
Tangleroot
Tattermunge Duo
Taurean Mauler
Teller of Tales
Thief of Hope
Thistledown Duo
Thorntooth Witch
Tibor and Lumia
Tidespout Tyrant
Titania's Chosen
Vedalken Archmage
Veil of Birds
Veiled Serpent
Veilstone Amulet
Verdant Eidolon
Verduran Enchantress
Voracious Hatchling
Warmth
Wee Dragonauts
Witch-Maw Nephilim
Woodlurker Mimic
Wurm's Tooth
Yawgmoth's Edict
Yuki-Onna
2011-05-16 11:37:42 +00:00
techdragon.nguyen@gmail.com
a66dc389e2 fixed logic bug for length of src variable in filter. When src is modified the local var representing
its length should also be updated.
2011-05-15 18:41:40 +00:00
wagic.the.homebrew
2f3e6b56e5 - Fix for issue 660 (changelings have become slower)
-- I removed the string comparison, which was expensive (the test is not necessary anymore, since it was "shielding" us from fake types (names), which are not creature subtypes, and therefore do not go through). I also moved one function call outside of the loop, just in case that wasn't optimized by the compiler.
- Removed unused Subtypes.cpp function (I don't really want people to use it, it can be quite expensive if used incorrectly)
- moved a test for issue 501 that has been fixed a while ago (we forgot to add the test to the test suite)
2011-05-15 14:38:41 +00:00
omegablast2002@yahoo.com
2ab3d27cd1 changed wild growth back to its original state...doc be more careful please :) 2011-05-15 13:37:07 +00:00
solo81@web.de
2cf412ed98 Fixed Lavalanche and Spitting Spider. 2011-05-15 07:42:56 +00:00
guzhenjie1@gmail.com
d8dfcb0f0c Corrected rarity of Kiln Walker. 2011-05-13 15:06:45 +00:00
guzhenjie1@gmail.com
67dd911c94 Corrected following cards:
Beast Within
Sword of Body and Mind
Sword of Fire and Ice
Sword of Light and Shadow
Sword of War and Peace
2011-05-13 11:12:40 +00:00
techdragon.nguyen@gmail.com
ff6d6e56fe related to issue 655. The change to bitwise representation of mana required some changes in the deck output methods. 2011-05-13 03:40:38 +00:00
techdragon.nguyen@gmail.com
28cd4acaf8 In the most recent update of the basic abilites this iterator was changed to a standard for loop. However, the condition of when to stop was never written, thus when you saved as AI deck, you either ran into an out of bounds error or some other exception.
This seems to have fixed the bug.  
Issue: 655
2011-05-13 03:28:59 +00:00
guzhenjie1@gmail.com
f6d18eb3e3 Corrected following cards:
Alabaster Dragon
Angel of Fury
Aurification
Dripping-Tongue Zubera
Dusk Urchins
Ember-Fist Zubera
Floating-Dream Zubera
Silent-Chant Zubera
2011-05-12 12:54:08 +00:00
techdragon.nguyen@gmail.com
0a2af52545 Issue 656: game will now work out of the Documents directory. All settings and changes are saved and read from that directory now. TODO: Need to find a mechanism to allow updates to code without having to delete the app entirely. (hence the player data as well) Perhaps implement an option ingame to allow player to download images to the repository. Perhaps a front-end that allows users to first update the app with card images before starting the game. 2011-05-12 00:45:17 +00:00
solo81@web.de
efd857e314 Recoded Essence Sliver. Should be the final version.
auto=lord(sliver) transforms((,newability[spiritlink]))
2011-05-11 11:23:05 +00:00
solo81@web.de
b4ddecb16b Fixed Muddle the Mixture and Essence Sliver. 2011-05-11 08:39:36 +00:00
wagic.the.homebrew@gmail.com
1ee3c9eccc - revert r3645
- fix memory leak in GenericInstantAbility
2011-05-11 08:06:53 +00:00
wagic.the.homebrew@gmail.com
413926515f removing VC2008 solution file, to avoid further confusion by VC2010 owners 2011-05-11 01:00:00 +00:00
omegablast2002@yahoo.com
2c9d029bdc fixed a memleak introduced in r3639..
i also changed the logic behind wololo "ueot " instant ability creator...instead of sending it directly to genericinstantability i created a new class called AGenericInstantWrapper...which handles the adding, cloning, removel ect, exactly how we have always handled "instant abilities"...this should correct any further "odd edge case" issues with the new "ueot " code...

later i will varify if it works with every single ability we current build with a wrapper class...and see if i cant remove them all and convert "ueot " into the NEW until end of turn handling method....lets cross our fingers as it would remove ALOT of extra code if successful....
2011-05-10 18:52:51 +00:00
omegablast2002@yahoo.com
5a1540e0a1 added line
offerinterruptonphase=draw

to MTG.txt, which is included in the other modes by default...to recreate our "chance to do stuff on ais turn...
it will say you are interrupting "draw"...but i will clarify that you are intterupting the MOVE TO phase "draw"...not the action of drawing a card...
this is even better then our previous method to do stuff on ai's turn, becuase now we can play cards that prevent ais draw ect :) becuase before we were interrupting the action of drawing for the turn...
2011-05-10 17:11:52 +00:00
omegablast2002@yahoo.com
e275a599b7 ok this may, or may not get me yelled at...but i can explain why i do it in rules...so don't kill me :(
added 
"offerinterruptonphase=blah"
to the parsing of the rules.txt files...the reason i want to handle it inside the rules.txt....
originally i was going to use the options variable for this, then i realized that if i use that variable, it would apply it to every game mode and peoples custom games...so instead i added the parsing in the actual rules.txt files, this way, if we want to offer interrupt on phase blah to MTG, but NOT have this interrupt offered in a mod or different mode, or if the different mod or mode should offer you a chance to interrupt ai in a different phase ...you can set each rule to interrupt in the phase you want...

now for the reason i added it in the first place...previously we were allowed an interrupt when the opponent drew a card in the draw step, this gave us a chance to do stuff on opponents turn....
recently wololo i beleave made draw actions not use the stack anymore(which was a good change, since as per MTG rules the actions of drawing is not a stack action)...but as a side-effect, we lose our chance to interrupt ai and do stuff on ais turn....

also, changed the ingame bonus thing, to start recording stuff towards bonuses on turn 2+...this solves reported issues with story mode "setting up" causing massive bonuses to be gained for doing nothing.....
2011-05-10 17:08:08 +00:00
omegablast2002@yahoo.com
e9a2b2f495 added a guard against removing aloseabilities from a card which already has an active aloseabilities, we generally dont want these to remove each other...this also fixes a mem leak i created in the previous fix for an infinate loop this was creating, i left that fix in place just in case some crazy edge case would add it to a card again. 2011-05-10 14:40:54 +00:00
omegablast2002@yahoo.com
8c2c0ae8de made it an else transformer removetypes...reason, you are either
removing the types, removing all types, or adding a type...not ever doing them all in a single transforms.
2011-05-10 14:34:49 +00:00
techdragon.nguyen@gmail.com
ac6fd6bbf8 setting default orientation for iPhone and iPad.
restricted iPhone to landscape mode only.
2011-05-10 12:37:41 +00:00
wagic.the.homebrew
aed68a2cd9 Fix for issue 652 (Use Tidal warrior several times causes a crash) 2011-05-10 11:37:46 +00:00
omegablast2002@yahoo.com
da1ec8eed3 moved the readding of types below the removel of abilities incase a becomes would be used as a newability.
2nd, found a infinate loop is created when you cast a loseabilities on a card which has loseabilities, when the 2 effect ends it readds the first one, before it is removed, making the first one remove the 2nd one and repeat forever....

this is only a half fix, it created a memleak in the place of the loop :/ so wololo please review!!!
2011-05-09 19:42:30 +00:00
omegablast2002@yahoo.com
8737aec005 couple tweaks to transforms to it doesn't add subkeywords as types....
2nd, removed a peice of code which was originally added i imagine before list mentioner was created which added cards whos names ended in "s" to the subtypes list, this is completely unrelated to the "s" charector added to targetchooser. this was actually a really nasty hack....
previous subtypes list contained 1200 variables...the new one after this removel is about 237ish....

this does not impact foreach, or any targetchoosers ability to target a card by name, targetchooser is coded to add card names to the subtypes list as it needs them, so using foreach(arbor elf) will add this to subtypes list for targeting purposes, in the future we might want to have this kind of check done and handled outside of the subtypes list, adding card names to that list for the purpose of targeting is just dirty.

this fixes a ugly lag spike introduced with the change to subtypes...for now...we need to consider a better way to sort these in the future to avoid this returning as subtypeslist gets bigger.
2011-05-09 18:10:10 +00:00
omegablast2002@yahoo.com
6d4f0c024c updated "removesubtypes" with "removecreaturesubtypes" 2011-05-09 16:35:44 +00:00
omegablast2002@yahoo.com
01cfbf5a02 couple bug fixes, changed a subkeyword of transforms "removesubtypes" to "removealltypes" remove all the types of the card, added "removecreaturesubtypes" to maintain previous support it was used for. 2011-05-09 15:55:34 +00:00
wagic.the.homebrew
b1ea63cd79 changed Subtypes map into a vector, hoping for some speed improvements. 2011-05-09 13:56:22 +00:00