a84eb8dc22
-Fix for issue 583 (fireball crash) -- converted an array into a vector to avoid weird edge cases -- fixed bugs with array "backupTargets"
wagic.the.homebrew
2011-05-26 12:27:44 +00:00
ffda1d0548
style formatting, some warning cleanup.
wrenczes
2011-05-25 06:59:44 +00:00
3152f69088
Corrected a typo in Llawan, Cephalid Empress.
guzhenjie1@gmail.com
2011-05-24 14:16:02 +00:00
0727343ebe
first moved the def of handsize for a game into the rules.txt as discussed with wololo...
omegablast2002@yahoo.com
2011-05-23 11:46:04 +00:00
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.
Xawotihs
2011-05-22 21:47:31 +00:00
3b0f47c420
Added SDL VS 2010 project and fixed some compilations and small resize bug
Xawotihs
2011-05-22 21:35:19 +00:00
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
guzhenjie1@gmail.com
2011-05-22 13:42:48 +00:00
b282691c13
Corrected Vengeful Dead and Entrails Feaster.
guzhenjie1@gmail.com
2011-05-21 14:15:20 +00:00
eaf129a490
Corrected Decree of Savagery and Sunfire Balm.
guzhenjie1@gmail.com
2011-05-20 11:20:33 +00:00
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....
omegablast2002@yahoo.com
2011-05-19 12:35:35 +00:00
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.
omegablast2002@yahoo.com
2011-05-19 12:17:53 +00:00
135aba6d03
Fixed Myojin of Cleansing Fire.
solo81@web.de
2011-05-17 20:45:27 +00:00
2110b7e972
Added text of Glimmerpost.
guzhenjie1@gmail.com
2011-05-17 15:23:12 +00:00
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.
omegablast2002@yahoo.com
2011-05-17 13:58:28 +00:00
9b63553c3e
- Minor code cleanup (removed AABanishCard class and unused banishmentType variables)
wagic.the.homebrew
2011-05-16 23:41:52 +00:00
480875d57a
- Subtypes "getValuesById" now returns a reference - Minor cleanup of Transformer per one of my comments a few days ago.
wagic.the.homebrew
2011-05-16 23:19:08 +00:00
39420a911f
3 fixes, first you are not allowed to mulligen the opponents hand.
omegablast2002@yahoo.com
2011-05-16 18:36:47 +00:00
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
guzhenjie1@gmail.com
2011-05-16 11:37:42 +00:00
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.
techdragon.nguyen@gmail.com
2011-05-15 18:41:40 +00:00
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)
wagic.the.homebrew
2011-05-15 14:38:41 +00:00
2ab3d27cd1
changed wild growth back to its original state...doc be more careful please :)
omegablast2002@yahoo.com
2011-05-15 13:37:07 +00:00
2cf412ed98
Fixed Lavalanche and Spitting Spider.
solo81@web.de
2011-05-15 07:42:56 +00:00
d8dfcb0f0c
Corrected rarity of Kiln Walker.
guzhenjie1@gmail.com
2011-05-13 15:06:45 +00:00
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
guzhenjie1@gmail.com
2011-05-13 11:12:40 +00:00
ff6d6e56fe
related to issue 655. The change to bitwise representation of mana required some changes in the deck output methods.
techdragon.nguyen@gmail.com
2011-05-13 03:40:38 +00:00
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
techdragon.nguyen@gmail.com
2011-05-13 03:28:59 +00:00
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.
techdragon.nguyen@gmail.com
2011-05-12 00:45:17 +00:00
efd857e314
Recoded Essence Sliver. Should be the final version.
solo81@web.de
2011-05-11 11:23:05 +00:00
b4ddecb16b
Fixed Muddle the Mixture and Essence Sliver.
solo81@web.de
2011-05-11 08:39:36 +00:00
413926515f
removing VC2008 solution file, to avoid further confusion by VC2010 owners
wagic.the.homebrew@gmail.com
2011-05-11 01:00:00 +00:00
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...
omegablast2002@yahoo.com
2011-05-10 18:52:51 +00:00
5a1540e0a1
added line offerinterruptonphase=draw
omegablast2002@yahoo.com
2011-05-10 17:11:52 +00:00
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 :(
omegablast2002@yahoo.com
2011-05-10 17:08:08 +00:00
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.
omegablast2002@yahoo.com
2011-05-10 14:40:54 +00:00
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.
omegablast2002@yahoo.com
2011-05-10 14:34:49 +00:00
ac6fd6bbf8
setting default orientation for iPhone and iPad. restricted iPhone to landscape mode only.
techdragon.nguyen@gmail.com
2011-05-10 12:37:41 +00:00
aed68a2cd9
Fix for issue 652 (Use Tidal warrior several times causes a crash)
wagic.the.homebrew
2011-05-10 11:37:46 +00:00
da1ec8eed3
moved the readding of types below the removel of abilities incase a becomes would be used as a newability.
omegablast2002@yahoo.com
2011-05-09 19:42:30 +00:00
8737aec005
couple tweaks to transforms to it doesn't add subkeywords as types....
omegablast2002@yahoo.com
2011-05-09 18:10:10 +00:00
6d4f0c024c
updated "removesubtypes" with "removecreaturesubtypes"
omegablast2002@yahoo.com
2011-05-09 16:35:44 +00:00
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.
omegablast2002@yahoo.com
2011-05-09 15:55:34 +00:00
b1ea63cd79
changed Subtypes map into a vector, hoping for some speed improvements.
wagic.the.homebrew
2011-05-09 13:56:22 +00:00
7447a451eb
Corrected a typo in Urborg, Tomb of Yawgmoth.
guzhenjie1@gmail.com
2011-05-09 11:40:29 +00:00
465163cf3b
Added a test for Celestial Sword, representing a small card group with complex "newability" structures.
solo81@web.de
2011-05-08 13:51:30 +00:00
f8406e9de2
fix for maxcast...the currentPlayer is not always the game->currentlyActionPlayer...in the cast of maxcast and play, we want to check restrictions vs the currentAction player....
omegablast2002@yahoo.com
2011-05-08 13:38:12 +00:00
0f4656453f
added mtg.txt to project for easy reference
techdragon.nguyen@gmail.com
2011-05-08 13:06:19 +00:00
96c636643a
it was reported to me that the new phrexian mana should add to the cards converted mana cost...so a card which cost {b}{p(r)}{p(r)} should be 3 converted...
omegablast2002@yahoo.com
2011-05-08 12:49:39 +00:00
27df1e9172
removed a check that was causing gem hide sliver lorded manaproducer to not reacttoclick...i moved the check for extra cost to activatedability, so this became obsolete....
omegablast2002@yahoo.com
2011-05-08 11:59:08 +00:00
82058e97c5
* fixed some formatting * pruned out unused local variables. ---- There's no need to define something if it isn't going to be referenced. It consumes extra memory temporarily and more than anything is a potential cause for confusion down the road.
techdragon.nguyen@gmail.com
2011-05-08 11:56:25 +00:00
2c34aaf8a5
fixed a bug intruduced by a refactor to the parsing of transforms ability with caused "newability" to be split incorrectly...im sure it was a mistake, or maybe rushed? at the point this code is "parsing between" the abilities have already been split up...all we do here is erase the "newability[" and last of "]" from the string....
omegablast2002@yahoo.com
2011-05-08 09:32:07 +00:00
ab33d29682
- Fixed a bug where the AI would block its own attacking creatures (I reintroduced that bug recently when I removed a safeguard Zethfox had added a while ago) - Added a way to specify "no interrupt" in modrules.xml (I need to write a doc about this file) for a given game. This does not mean the stack does not show up (the stack is interesting to see what the opponent does), but that it only offers to continue.
wagic.the.homebrew
2011-05-07 11:58:37 +00:00
fe276ca330
Minor code cleanup in ActionStack
wagic.the.homebrew
2011-05-07 10:12:45 +00:00
d652f754d8
Moved "static" mana render a bit to the right for opponent, to avoid rendering it over the opponent's avatar
wagic.the.homebrew
2011-05-07 08:44:07 +00:00
3e4dc43c1c
Adding License information for Wagic and its resources, please review (should the main LICENSE file made much more complete, and copy the contents of the subfolders' LICENSE files ?)
wagic.the.homebrew
2011-05-07 08:37:12 +00:00
472d593563
remove "cleanup" phase being automatically added to custom phase ring. People who want it should add it manually in their custom ring.
wagic.the.homebrew
2011-05-07 04:48:56 +00:00
f96635541d
- Fix for issue 650 (tidal Warrior effect doesn't end at end of turn) - Fix PSP compilation
wagic.the.homebrew
2011-05-07 04:10:47 +00:00
062d5f9485
Fix issue 650 (Deck Editor doesn't count basic land types as mana producers anymore, Filters can't find basic mana ability producers anymore)
wagic.the.homebrew
2011-05-07 02:42:49 +00:00
b26bfb09bd
Fix Build error on psp
wagic.the.homebrew
2011-05-06 13:46:20 +00:00
2f498780a2
Fix: Mana Producers don't use the stack (there already was a partial fix I believe, this one fixes issues with triggered abilities)
wagic.the.homebrew
2011-05-06 09:01:27 +00:00
7beb958067
Adding a way to mark decks as "locked" based on options requirements (option on or off). Can be used for example to lock a deck until a specific set is not unlocked. Works for both player decks (could be used for premade?) and AI decks.
wagic.the.homebrew
2011-05-06 06:40:00 +00:00
efad3f652f
Minor refactor of menu text for "move" abilities. Zeth, Dr.Solomat, please let me know if something goes wrong.
wagic.the.homebrew
2011-05-06 04:43:27 +00:00
12228b51a0
- Minor refactor of "transforms" ability - Updated changeling and transforms to only get creature types (as initially intended by the code), removed hardcoded list of "types to avoid"
wagic.the.homebrew
2011-05-06 03:52:35 +00:00
691a1e1b91
- Fixed a Bug where AI would not block any attacker in Demo mode (bug introduced in r2759) - Fixed a Bug where AI would not correctly assign blockers if the first attacker is super strong. - Added a hack to prevent AI from an infinite loop while choosing a target. There are edge cases where the AI gets to choose the targets for a TargetChooser that doesn't belong to it. I couldn't dig too long for the root cause, so I added a "return 0" when the case happens. Should probably open a ticket - Added a "Hint" System in AI decks, to help the AI with its strategy. This is not really usable yet, it only works with abilities (not cards to play), and I only added some basic code for counters and tokens. This can probably be extended, but let's wait until we see it working on that other game I'm working on, before rushing into adding hints to all AI decks... - minor cleanup of AI Code
wagic.the.homebrew
2011-05-05 14:27:46 +00:00
f0820697f8
Corrected following cards:
guzhenjie1@gmail.com
2011-05-05 12:01:10 +00:00
748af5b461
- Adding a generic "ueot" effect. This will be initially confusing, but the ultimate goal is to get rid of all the particular cases we handled with "until end of turn" effects. this "ueot " works like "may " and "choice ", it has to be at the very beginning of the ability(ies) it targets. The reason is to avoid conflicts with the existing "ueot" we have all over the place. I have only tested it with transforms and loseabilities for now (see "ovinize") but hopefully this will become the new norm. This should also reduce the code inside the parser, long term. - Adding "Ovinize" as an example of this new keyword. - moved "parseBetween" in utils as I am using it in other files for wome work in Progress.
wagic.the.homebrew
2011-05-05 06:18:50 +00:00
4c572a1ffa
Fixes for Boosters in the Shop. Fixes issue 644 and issue 621
wagic.the.homebrew
2011-05-05 05:51:50 +00:00
9902b1c74b
Corrected a typo in text of Palladium Myr.
guzhenjie1@gmail.com
2011-05-04 15:34:38 +00:00
5041916fdd
Fixed the psp build breakage in r3595. Erwan, pls review - I think that the subtypesToType map probably should be unsigned ints instead of signed, but I wasn't about to sweep through the file right now.
wrenczes
2011-05-04 10:27:18 +00:00
bfffb169cf
Fixed the psp side - darned implicit casts...
wrenczes
2011-05-04 10:15:38 +00:00
0cb8c50b39
Replaced ManaCost's int array with int8_t. Shrinks ManaCost by another 24 bytes, which in turn lowers CardPrimitive's footprint by the same amount.
wrenczes
2011-05-04 10:02:47 +00:00
d922d4fe06
- Added "loseSubtypesOf(type)" ability. For example, loseSubtypesOf(land) means "target loses all its land subtypes" - Added Evil Presence, as an example of the new keywords loseabilities and losesubtypes. It's quite experimental but I added 3 tests that cover the basics. Please report if you find bugs. - moved the "lands produce mana" rules outside of the primitives, and into the external rules. This was a necessary step to create cards such as Evil Presence. - real support for subtypes. Needs some more testing, but there are now functions in Subtypes.cpp to know if a given subtype is a creature subtype, or a land subtype, etc... - minor refactor of MTGDeck.cpp
wagic.the.homebrew
2011-05-04 04:04:03 +00:00
494bcf3315
Adding a "loseAbilities" keyword per Dr.Solomat's request. The Goal was to code Evil Presence, but I think there is still some work to do to achieve this. The main concern is that (according to the Miki), neither transforms(( nor "becomes(" allow to lose some subtypes. A land enchanted with Evil Presence is supposed to lose its land subtypes. Since we don't support subtypes that good, I don't think this is possible. Additionally, Evil PResence would require to move "{T}:Add{X}" from the basic lands primitives into the rules (which sounds quite easy to do). I've nevertheless tested this on Gaea's Cradle, and it works. (Gaea's Cradle loses its abilities)
wagic.the.homebrew
2011-05-04 01:33:34 +00:00
810548d816
Minor GameObserver refactor, should have no impact on the game.
wagic.the.homebrew
2011-05-03 13:46:50 +00:00
0b9ff076e6
Please update your rules folder - "Manapool empties at the end of each step" becomes an ability, and was moved into the external rules file. "removemana(*) to remove all, removemana(*{G}) to remove all green, removemana(*{G}{B}{R}) to remove all green black red, removemana({G}{G}{B}{U}) (no "*") to remove a specific value. - Added a possibility to make abilities non interruptible. With little work, this could be added to the parser if needed. Please use with care, let's discuss what is an acceptable usage of this now functionality, if needed.
wagic.the.homebrew
2011-05-03 11:59:27 +00:00