f3bb5ccef9
Merge branch 'master' into cmake
fogobogo
2022-01-11 19:19:09 +01:00
8e551bb287
Added/fixed primitives, updated the "missing_cards_by_sets" folder, moved AI avatar images to main graphics folder.
wagic-v0.23.1
Vittorio Alfieri
2021-12-21 14:14:38 +01:00
fa7a0daae1
Added Y22 set, improved Android downloader for Y22 set, added new restriction "librarycast" to check if a card has been casted from library, added new keyword "startingplayer" to retrieve who was the starting player, added a new ability "nodamageremoved" to avoid damage is removed from a card (e.g. "Patient Zero"), fixed a possbile crash when using "andability" option in "moverandom" ability (e.g. cards with seek abilites), added "myname" option to conjure "ability" to refer the orginal source card name (e.g. "Clone Crafter"), added new zone definitions "myhandlibrary" and "opponenthandlibrary" to refer same time hand and library zone of a player, added new ability "nonight" to avoid it can become night (e.g. "Angel of Eternal Dawn"), improved all cards with "it becomes night" ability.
Vittorio Alfieri
2021-12-20 18:55:54 +01:00
7fa03e620d
Fixed several primitives, added a new Commander Deck for AI, Fixed an issue on "blink" return ability (e.g. "Otherworldly Journey"), improved "exerted" trigger adding "turnlimited" option, added a new keyword "losesatype" to remove a specific type from a card (e.g. "Conversion"), improved "vanishing", "fading" and "bloodthirst" keywords in order to allow the usage of variables (e.g. "Tidewalker"), added new triggers "poisonedof" and "poisonedfoeof" to handle the event when a player gets a poison counter, added new keywords "countershroud" to avoid a card can get any kind of counter, added new keywords "expshroud" and "energyshroud" to avoid a player can get one of those counters, added new option "uent" for "transforms" keyword ability to allow transformation effects end at the end of your next turn, fixed an issue on "swap" keyword when a non-creature card is firstly transformed into a creature (e.g. "Wandering Fumarole").
Vittorio Alfieri
2021-12-18 13:45:58 +01:00
8551f55636
Fixes to primitives
Eduardo
2021-12-08 23:16:00 -06:00
68e08783c6
Fixes to primitives
Eduardo
2021-12-03 01:38:06 -06:00
6c0740c78c
Fixed primitives, avoided a crash when destroying "transforms" ability for cards in library, added random deck selection to Stone Hewer Basic mode, fixed random deck selection from Commander mode, improved exclusive color filter to include monocolored artifacts, added PSP_LARGE_MEMORY define to Makefile to allow more RAM for PSP version.
Vittorio Alfieri
2021-12-02 18:55:53 +01:00
d969b6ce7a
Bug fixes and Egg creature type update
Eduardo
2021-11-30 16:30:48 -06:00
e47f3f5471
Improved zones management for commandzone and sideboard (e.g. now the game consider those zone as all the others for every ability such as "lord" and "aslongas").
Vittorio Alfieri
2021-11-22 16:17:10 +01:00
d11facd7d4
Fixed primitives, added a new keyword "eval()" in ManaCost parser to allow the usage of a variable in the manacost (e.g. "{eval(evictmc)}" in primitive "Prototype Portal").
Vittorio Alfieri
2021-11-21 13:38:09 +01:00
6ca5291790
Updated the changelog.
Vittorio Alfieri
2021-11-19 16:17:18 +01:00
14103a840d
Bug fixes on primitives
Eduardo
2021-11-18 20:06:17 -06:00
31b3a7e785
Fixed typos in primitives text, improved Deck Editor menu' commands (now select button toggle the Sideboard/Commanders/Dungeons view while the Note Button open the quick filter), added a new menu' option in Deck Editor to toggle Grid/Carousel view (useful on PSP/PSVita).
Vittorio Alfieri
2021-11-18 20:42:21 +01:00
152dafc90f
Fixed primitives, fixed a commander deck for AI, improved all cards with partner ability, added a "partner=" key to associate the partner to a primitive, added new keywords "withpartner", "partname" and "haspartner" to improve the Target Chooser for cards with partner, improved the Commander rules to allow double commander just with specifc partner, improved background images management for game settings, deck selection, deck editor background, post-match credits, deck editor selection and trophies room (now it's possibile to randomly use up to 10 background images).
Vittorio Alfieri
2021-11-18 11:48:27 +01:00
477ffa6a0c
Fixed primitives, updated italian lang file, added a new setting to sort decks by creation date (by default they will be sorted by name), added new filters to match cards that don't contain a particular color or that are multicolored, fixed an issue when the transformation with uynt is triggered by instant/sorcery or by card that left the battlefield before the ability ending turn, fixed a rendering overlap on mana symbols in deck editor, fixed some crashes on ManaCost parser (e.g. Filter by mana producer).
Vittorio Alfieri
2021-11-15 21:38:04 +01:00
2eed51dea6
Fixed "Mana Hellkite" and added its token primitive, fixed token in VOW set.
Vittorio Alfieri
2021-11-14 19:13:25 +01:00
c55c9c2507
Fixed primitives, improved background images management for game settings, deck selection, deck editor background, post-match credits, deck editor selection and trophies room (now it's possibile to randomly use up to 3 background images and if the chosen image is not available, it will be rendered the default one).
Vittorio Alfieri
2021-11-14 14:24:27 +01:00
96f7072a77
fixed primitives, several bugs and crashes
Eduardo
2021-11-13 22:40:07 -06:00
9957719e0c
Fixed VOW set, added new AI deck, improved Android downloader for VOC and VOW sets.
Vittorio Alfieri
2021-11-13 20:25:10 +01:00
8b91048d12
Fixed VOW and VOC sets, improved Android downloader for VOC and VOW sets.
Vittorio Alfieri
2021-11-11 19:36:16 +01:00
6d46467861
Added/fixed primitives, added VOW and VOC sets, fixed order index of CC2 set, updated the "missing_cards_by_sets" folder, added new keyword "findlasttype" to find the index of latest card with specified type in target player graveyard (e.g. "Timothar, Baron of Bats"), improved Android downloader.
Vittorio Alfieri
2021-11-10 18:25:47 +01:00
8012672a70
Fixed primitives, fixed a problem on "flip" ability for some backside cards (e.g. "Edgar Markov's Coffin"), added new keywords "pnumcreswp" and "onumcreswp" to calculate the number of creatures that have toughness greater than their power.
Vittorio Alfieri
2021-11-07 22:13:39 +01:00
f371295f24
Fixed a bug related to the "turnlimited" option on several ability triggers (e.g. Vampired, Discarded, etc.), restored some test of regression suite after this bug resolution.
Vittorio Alfieri
2021-11-03 23:52:55 +01:00
79e560e2b2
Fixed primitives, added new ability "exploits" to sacrifice a creature, added new trigger "exploited" and improved all primitives with Exploit ability, improved "tokencreated" and "sacrificed" triggers to allow "turnlimited" option, improved "flip" ability in order to keep track of current zone before flip.
Vittorio Alfieri
2021-11-03 22:17:18 +01:00
3baa6acaaf
Fixed primitives, added new macro "_TRAINING_" for new ability "Training", added new trigger "trained", added "trainer" restriction to check if player controls an attacking creature with greater power than the current one, improved "ninjutsu" ability when the targeted card is already in play (e.g. "Olivia, Crimson Bride"), improved "flip" ability in order to add the "andability" option and in ordeer to prevent flipped auras go to graveyard, improved "andability" option for "imprint", "haunt" and "conjure" ability, improved "retarget" and "newtarget" keywords with "fromplay" option (to use with flipped auras e.g. "Vengeful Strangler"), replaced old "praidcount" and "oraidcount" with new keywords "pattackedcount" and "oattackedcount".
Vittorio Alfieri
2021-10-31 21:40:37 +01:00
0824ea3984
Fixed a Bug in MusicExist method of GameStateDuel class when filename parameter was empty (this could lead to a wrong check on which soundtrack has to be played).
Vittorio Alfieri
2021-10-23 21:44:28 +02:00
63c5ff2789
Renamed some decks for AI.
Vittorio Alfieri
2021-10-23 11:58:00 +02:00
31530215a5
Renamed a deck for AI, fixed test suite (one test seems to randomly fail on AI choice without a real bug).
Vittorio Alfieri
2021-10-21 10:51:30 +02:00
78658a6a9e
Added/fixed primitives, updated the "missing_cards_by_sets" folder, renamed several decks for AI, added "noentertrg" and "nodietrg" keywords to allow creatures enter the battlefield or die without causing abilities to trigger (e.g. "Hushbringer").
Vittorio Alfieri
2021-10-21 09:53:39 +02:00
3130049c63
Added Q06 set, improved Android downloader, fixed bug for indestructible creatures that have to go different zone after death (e.g. if they have exiledeath ability), fixed a bug when indestructible creatures have toughness = 0 (e.g. "March of the Machines" with manacost = 0 artifacts).
Vittorio Alfieri
2021-10-20 14:52:15 +02:00
fcb073ccd6
Fixed "Krenko Commander" and "Plane of the Apes" decks for AI, added a commandline trace to check which soundtrack file is currently playing.
Vittorio Alfieri
2021-10-18 11:33:15 +02:00
5bf5e1dfba
Added a new deck named "Krenko Commander" for AI (credits to Bob).
Vittorio Alfieri
2021-10-17 11:39:07 +02:00
984aac51f4
Fixed all primitives with damage modifier, improved "damaged" trigger for Planeswalkers.
Vittorio Alfieri
2021-10-15 13:36:31 +02:00
eb35e3589b
Fixed primitives, improved Aftermath casting rule: now the casted card becomes instant or sorcery in the stack according to the casted half, fixed a bug with the previous zone of cards casted using the "putinplay" option of "castcard" keyword.
Vittorio Alfieri
2021-10-14 15:39:58 +02:00
9c2eee7d7e
Fixed primitives, added new ability "hasaftermath" to implement Aftermath cost with Flashback and refactored all cards with Aftermath cost (now they use a special version of Flashback but they don't count as flashback spell), added a new ability "spellmover" to implement all cards that have to target a spell on stack to move to some other zone (they are not real counters so they don't care about "nofizzle" or "nofizzlealternative" abilites of their target), fixed all primitives with "spellmover" ability, added a new keyword "storedname" to target card with a specifc previously stored name, improved "fizzleto" ability in order to allow to move the fizzled card on second place from the top or to exile and imprint the target name.
Vittorio Alfieri
2021-10-13 23:42:45 +02:00
fbcb1feb88
Fixed primitives, fixed "proliferate" target chooser, improved "cycled" and "discarded" triggers, added new keywords "pcycledcount" and "ocycledcount" to calculate how may cards have been cycled this turn from a specific player, added new menu choices to instantly select/deselect and confirm all the possible targets (in any zone) during the target selection of an ability (e.g. Proliferation ability can target a lot of permanents and players so using that menu choice all the targets will be instantly chosen and then the current player will be able to remove any of them or confirm the entire selection).
Vittorio Alfieri
2021-10-13 17:39:48 +02:00
371d4c9f85
Fixed and improved the Deck Importer (from MTGO) in Android application.
Vittorio Alfieri
2021-10-12 16:32:26 +02:00
c1f3913295
Added a new menu choice to instantly choose all the possible targets (on battlefield) of an ability during its target selection (e.g. Proliferation ability can target a lot of permanents and players so using that menu choice all the targets will be instantly chosen and then the current player will be able to remove any of them or confirm the entire selection).
Vittorio Alfieri
2021-10-12 15:51:12 +02:00
4623167b0f
Fixed the Proliferation and Damageable target chooser in order to avoid targeting permanents or players without counters and/or with some protections (e.g. hexproof, shroud and similar), fixed a Travis build toolchain error.
Vittorio Alfieri
2021-10-09 13:31:30 +02:00
4e18b6d799
Fixed the Proliferation and Damageable target chooser in order to avoid targeting permanents or players without counters and/or with some protections (e.g. hexproof, shroud and similar).
Vittorio Alfieri
2021-10-09 13:03:14 +02:00
45b077e930
Fixed "Tergrid, God of Fright" primitive.
Vittorio Alfieri
2021-10-09 00:50:05 +02:00
1f6db30277
Fixed "Force of Vigor" and "Slogurk, the Overslime" primitives.
Vittorio Alfieri
2021-10-09 00:14:29 +02:00
fd76775923
Fixed a bug on deck choosing menu when an AI deck has no avatar image (it will be used "baka.jpg"), added new default avatar images for AI decks (up to 200), fixed "_PROLIFERATE_" macro and fixed all primitives with "proliferate" ability, improved the "proliferation" keyword for target chooser in order to avoid targeting permanents or players without counters and/or with some protections (e.g. hexproof, shroud and similar).
Vittorio Alfieri
2021-10-08 23:01:37 +02:00
aafaadb76f
Removed the previous limit of 99 avatars images, if "avatarXX.jpg" image is not present, for deckXX.txt of AI it will be used "baka.jpg" image instead.
Vittorio Alfieri
2021-10-07 15:07:00 +02:00
99b501105d
Fixed primitive "Armament Master" (issue #1075 opened by @remigiusz-suwalski).
Vittorio Alfieri
2021-10-06 10:34:27 +02:00
b84745e063
Added "--no-check-certificate" option to download the PSP SDK.
Vittorio Alfieri
2021-10-01 18:01:19 +02:00
c60ffba70d
Added/fixed primitives, updated the "missing_cards_by_sets" folder, added missing Conspicacy cards and tokens in CNS set, added Conspicacy cards management, added new ability "isconspiracy" to identify the Conspicacy cards into the Sideboard, added "Conspiracy" type in "Subtypes.h" enum definition, added a fix in "GameObserver::Affinity()" method in order to avoid a crash when the card is a Conspiracy in the commandzone.
Vittorio Alfieri
2021-09-28 16:22:13 +02:00
d3fad48367
Fixed typos on "Teferi, Who Slows the Sunset" primitive.
Vittorio Alfieri
2021-09-27 15:01:10 +02:00
79d353d3ee
Fixed a bug on game achievements percentage calculation.
Vittorio Alfieri
2021-09-27 11:33:35 +02:00
9e3caa635d
Added new decks for AI, improved "genrand", "altercost" and "changecost" keywords in order to allow the usage of a variable instead of a simple number (e.g. "altercost(colorless, -phandcount)").
Vittorio Alfieri
2021-09-26 12:22:28 +02:00
6538f1625e
Fixed primitives, fixed MIC set, improved Android downloader, added "Dungeon" and "Emblem" types in "Subtypes.h" enum definition, added a fix in "GameObserver::Affinity()" method in order to avoid a crash when the card is null or if it's a Dungeon in the commandzone.
Vittorio Alfieri
2021-09-24 23:03:54 +02:00
5810a36610
Upgrade AI decks 3, 30-36, 38 to modern frames
Remigiusz Suwalski
2021-09-24 19:17:34 +02:00
cd677111b7
Fixed primitives, improved "@discarded", "@counteradded" and "@counterremoved" triggers in order to user "all(trigger)" target.
Vittorio Alfieri
2021-09-22 18:56:43 +02:00
6be219f586
Added/fixed primitives, replaced all occurrences of "AEther" with "Aether" in each ".txt" and ".dat" file according to the new naming convention (pull request #1072 by @remigiusz-suwalski).
Vittorio Alfieri
2021-09-22 14:33:54 +02:00
e2ac10be95
Fixed primitives, fixed STA set, fixed a bug in new background images management.
Vittorio Alfieri
2021-09-21 09:24:38 +02:00
832d033488
Fixed primitives, improved background images management, now it's possbile to add a different background for opponent deck choosing (menupanel2.jpg) and added a new sub-folder "background" for custom themes where it will be possbile to store up to six new background images for battlefield (from "backdrop1.jpg" to "backdrop6.jpg") that will be randomly choosen when match starts.
Vittorio Alfieri
2021-09-20 15:36:42 +02:00
e2a1705b3f
Fixed a bug on sound tracks for PSP/PSVita devices, removed a test on vampired trigger due to a fake error on test suite.
Vittorio Alfieri
2021-09-19 18:17:12 +02:00
ff47c0dd44
Fixed typos in several primitives, updated the "missing_cards_by_sets" folder, fixed MID, MIC and CC2 sets.
Vittorio Alfieri
2021-09-19 16:54:43 +02:00
c2482a50f5
Added/fixed primitives, updated the "missing_cards_by_sets" folder, added MID, MIC and CC2 sets, improved Android downloader for new added sets.
Vittorio Alfieri
2021-09-19 15:54:37 +02:00
ddda01dd86
Added/fixed primitives, added MID, MIC and CC2 sets, improved Andorid downloader for new added sets.
Vittorio Alfieri
2021-09-19 14:30:56 +02:00
06923a0824
Upgrade AI decks 7, 9, 10 to modern frames
Remigiusz Suwalski
2021-09-17 21:47:31 +02:00
f671f61713
Fixed primitives, improved sound tracks management, now it's possbile to add a custom tracks for Shop section (Track2.mp3), Option window (Track3.mp3) and Awards section (Track4.mp3) and it's also possible to add two subfolders "MainMenu" and "Battlefield" within "suound" folder where it's possbile to add twenty custom songs ("TrackMenuXX.mp3" and "TrackDuelXX.mp3") that will be played randomly in main menu windows and when match starts.
Vittorio Alfieri
2021-09-16 22:11:43 +02:00
2af470e42b
Fixed AFR, STA, STX and J21 sets, fixed "_PROLIFERATE_" macro and fixed primitives with "proliferate" ability, fixed all primitives with "mutate" ability, improved "proliferate" and "duplicatecounters" keywords, added a new target "permanent" to target togheter a player and permanents on battlefield (e.g. cards with "proliferate").
Vittorio Alfieri
2021-09-13 18:56:16 +02:00
04a6a4bfe2
Added/Fixed primitives, updated the "missing_cards_by_sets" folder, added a new option "keepname" to keep the original name after the copy (e.g. Olag, Ludevic's Hubris), implemented a fix to avoid triggering of oneshot abilities when "flip" ability is used to return from a copy, fixed an issue with colors and "transforms" keyword, implemented a fix to avoid crashes when the card paying extracost has also a cost alteration (e.g. combo with "Pirate's Pillage" and "Ruby Medallion"), added a new keyword "totmanaspent" to return the real amount of mana spent to cast a card (e.g. Memory Deluge), added new keywords "pnumofidentitycols" and "onumofidentitycols" to return the total amount of commander identity colors for controller or opponent (e.g. War Room), improved "totcnt" keyword, added new keywords "totalcololorsinplay" and "oppototalcololorsinplay" to return the total amount of colors on controller or opponent battlefield (e.g. Moonveil Regent), added new keywords "pcoven" and "ocoven" to return if a player controls three or more creatures with different powers (e.g. Augur of Autumn).
Vittorio Alfieri
2021-09-12 21:18:43 +02:00
9aa15766d4
Added/fixed primitives, updated the "missing_cards_by_sets" folder, added new ability "hasstrive" to implement Strive cost with multikicker and refactored all cards with Strive cost (now they use a special version of multikicker but they don't count as kicked spell), improved "targeted" and "vampired" trigger to allow the "turnlimited" option, improved Android gesture to emulate "option menu" button pressure (slide down) and emulate "back" button pressure (slide up).
Vittorio Alfieri
2021-09-07 21:41:24 +02:00
9dabf121d3
Fixed primitives, changed type of "isFlipped" card variable from bool to int and fixed a related bug on targeting cards with "isFlipped" attribute, improved "disturb" ability (now fi you counter a card casted with disturb it correctly goes to exile), added "decayed" ability, added two new zone alias "mycommandplay" and "opponentcommandplay" for targeting Battlefield and CommandZone at the same time.
Vittorio Alfieri
2021-09-06 17:31:36 +02:00
ccae9673e6
Fixed bug that was not correctly showing the full Commander decks list in the deck choosing menu page, added a new gesture for Android to emulate back button pressure: now sliding from down to up for almost all screen size will trigger the back button in game (e.g. pause match in gameplay, going back from shop, and so on).
Vittorio Alfieri
2021-09-05 01:15:01 +02:00
c211b2eaa4
Fixed several primitives with "castcard" ability, fixed a bug when using "noevent" and "copied" options togheter with "namedcard" option in "castcard" ability, allowed the usage of "and!()!" ability with "namedcard" option in "castcard" ability for permanents, added "daybound" and "nightbound" abilities.
Vittorio Alfieri
2021-09-04 21:14:05 +02:00
cc16db7256
Added/fixed primitives, refactored and improved almost all transforming human cards (included all the Werewolves), improved "flip ability and "doubleside" ability adding a new "backside" option, fixed a bug on "doubleside" ability for planeswalkers, added "backside=" key to CardPrimitive in order to specify the other side of double-faced cards, added "hasbackside" option to target chooser in order to find cards which have a back side, added "dualfaced" that return 1 if a card has a backside card, fixed loyalty counter ability on planeswalker flip (is was not resolving correctly), changed type of damageToController, damageToOpponent, damageToCreature, wasDealtDamage, combatdamageToOpponent from bool to int in order to retrieve those values if needed, added "totaldmg" keyword that returns the total amount of damage dealt by a creature in the current turn, added new restriction "coven in order to check if a player controls three or more creatures with different powers, added new ability "hasdisturb" when the Retrace cost of a card is a disturb cost (e.g. "Beloved Beggar").
Vittorio Alfieri
2021-09-04 01:48:47 +02:00
236f677f2a
Fixed primitives, fixed some possible crashes on Commander Format.
Vittorio Alfieri
2021-09-03 00:33:53 +02:00
001cea95bd
Added/fixed primitives, updated the "missing_cards_by_sets" folder, fixed several crash on Commander Format, fixed a possible crash using "and!()!" with "imprint", added a new macros "_REBOUND_" and "_GOAD_" related to rebound and goad abilities and refactored all cards using them, implemented a new keywords "haunt", "hasprey", "preyname" and "isprey" related the haunting ability and improved all cards using it, Added "commander" and "\*" to HINT castpriority for AI decks in order to allow the user to give a cast priority to commanders.
Vittorio Alfieri
2021-09-02 19:32:45 +02:00
54d0c32035
Added/fixed primitives, updated the "missing_cards_by_sets" folder, improved all cards with replicate (now they use a special version of multikicker but they don't count as kicked spell), improved all cards with "fizzle" and "fizzleto" ability and improved engine for "fizzle" and "nofizzle" ability (e.g. now it's possible to grant a card the nofizzle ability on stack), added new keyword "mycolnum" to count the number colors of a card.
Vittorio Alfieri
2021-08-31 20:06:33 +02:00
45de20c8d3
Added/fixed primitives, updated the "missing_cards_by_sets" folder, added a new trigger when a player shuffles his/her library, added new keywords "plastshlturn" and "olastshlturn" to retrieve the last turn a player shuffled his/her library, refactoring of some source files.
Vittorio Alfieri
2021-08-30 23:02:54 +02:00
e1f91a50f6
Fixed dat file for J21 set, improved Android downloader for J21 set.
Vittorio Alfieri
2021-08-30 12:15:43 +02:00
790f02905a
Fixed dat file for MB1, PRM and PSAL sets.
Vittorio Alfieri
2021-08-29 23:54:35 +02:00