Vittorio Alfieri
2c68ea91f7
Fix Travis and reverted Rules.cpp due to many compilation error for pointers.
2023-05-09 01:01:39 +02:00
Vittorio Alfieri
94d1267abf
Fixed compilation issue on PSP/PSVITA after 76f5a6b commit.
2023-05-07 15:13:22 +02:00
Vittorio Alfieri
ab6f80c242
Fixed tab with blank spaces.
2023-05-06 23:13:45 +02:00
Eduardo MG
76f5a6b851
Update Rules.cpp
...
Replaces the use of raw pointers with std::unique_ptr smart pointers, which will automatically manage the memory deallocation for you. It also uses the release() method to transfer ownership of the tempDeck pointer to the Player object. Overall, these changes should help ensure that the code is safer and less prone to memory leaks.
2023-05-06 14:04:07 -06:00
Vittorio Alfieri
16ba96b2f0
Fix initiative trigger.
2023-05-04 15:51:55 +02:00
Vittorio Alfieri
6af7acce0b
Fix take the initiative ability and triggers.
2023-05-04 15:42:03 +02:00
Vittorio Alfieri
0efc61fda7
Coded the initiative ability from CLB set, added some condition to test if a card has been casted from exile or sideboard or commandzone.
2023-05-04 14:56:04 +02:00
Eduardo MG
8ca0eaaf40
Fixed _SCAVENGE_, other bug fixes, macros for _ETERNALIZE_
...
Typo in successful
Lux Cannon so that the AI can use the destroy ability
Throatseeker
Icingdeath, Frost Tyrant you don't "cast" the token
Insubordination
Infectious Curse
Igneous Elemental
Abu Jafar both?
_ETERNALIZE_
2023-04-29 23:54:41 -06:00
Vittorio Alfieri
24337d8e66
Fixed background partner ability, added some new cards from CLB set.
2023-04-27 09:19:34 +02:00
Vittorio Alfieri
8027ed4bdf
Added Background partner ability for CLB commanders, fixed some tab with spaces
2023-04-26 13:05:07 +02:00
Vittorio Alfieri
f9da0c3a1e
Fixed a crash on random avatar AI selection.
2023-04-20 13:28:44 +02:00
Eduardo MG
fd59b376e6
Bug fixes in primitives
...
Berserk Murlodont
Urborg Justice
Beledros Witherbloom
Mirror-Mad Phantasm
Phyrexian Metamorph
Mannichi, the Fevered Dream
The Circle of Loyalty
Riot Ringleader
Rionya, Fire Dancer
Etrata, the Silencer
Natural State
squallmonger
Steward of Solidarity
2022-11-11 12:07:53 -06:00
Eduardo MG
51ede6a37f
Added a new Random Commander game mode and fix to special rarity filter
...
You get a random legendary creature and get a 99 cards deck at random in the commander colors.
Some limitations by the engine makes you only get cards based on the mana cost of the card, not the full color identity.
Also sometimes you get fewer than 99 cards. Possible that you are getting repeated cards and end up with less than the desired 99?
Special rarity no longer shows basic land types.
2022-10-26 15:49:57 -05:00
Vittorio Alfieri
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.
2021-12-20 18:55:54 +01:00
Vittorio Alfieri
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").
2021-12-18 13:45:58 +01:00
Vittorio Alfieri
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.
2021-12-02 18:55:53 +01:00
Vittorio Alfieri
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").
2021-11-22 16:17:10 +01:00
Vittorio Alfieri
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").
2021-11-21 13:38:09 +01:00
Vittorio Alfieri
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).
2021-11-18 20:42:21 +01:00
Vittorio Alfieri
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).
2021-11-18 11:48:27 +01:00
Vittorio Alfieri
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).
2021-11-15 21:38:04 +01:00
Vittorio Alfieri
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).
2021-11-14 14:24:27 +01:00
Vittorio Alfieri
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.
2021-11-10 18:25:47 +01:00
Vittorio Alfieri
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.
2021-11-07 22:13:39 +01:00
Vittorio Alfieri
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.
2021-11-03 22:17:18 +01:00
Vittorio Alfieri
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".
2021-10-31 21:40:37 +01:00
Vittorio Alfieri
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).
2021-10-23 21:44:28 +02:00
Vittorio Alfieri
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").
2021-10-21 09:53:39 +02:00
Vittorio Alfieri
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).
2021-10-20 14:52:15 +02:00
Vittorio Alfieri
fcb073ccd6
Fixed "Krenko Commander" and "Plane of the Apes" decks for AI, added a commandline trace to check which soundtrack file is currently playing.
2021-10-18 11:33:15 +02:00
Vittorio Alfieri
984aac51f4
Fixed all primitives with damage modifier, improved "damaged" trigger for Planeswalkers.
2021-10-15 13:36:31 +02:00
Vittorio Alfieri
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.
2021-10-14 15:39:58 +02:00
Vittorio Alfieri
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.
2021-10-13 23:42:45 +02:00
Vittorio Alfieri
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).
2021-10-13 17:39:48 +02:00
Vittorio Alfieri
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).
2021-10-12 15:51:12 +02:00
Vittorio Alfieri
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.
2021-10-09 13:31:30 +02:00
Vittorio Alfieri
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).
2021-10-09 13:03:14 +02:00
Vittorio Alfieri
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).
2021-10-08 23:01:37 +02:00
Vittorio Alfieri
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.
2021-10-07 15:07:00 +02:00
Vittorio Alfieri
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.
2021-09-28 16:22:13 +02:00
Vittorio Alfieri
79d353d3ee
Fixed a bug on game achievements percentage calculation.
2021-09-27 11:33:35 +02:00
Vittorio Alfieri
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)").
2021-09-26 12:22:28 +02:00
Vittorio Alfieri
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.
2021-09-24 23:03:54 +02:00
Vittorio Alfieri
cd677111b7
Fixed primitives, improved "@discarded", "@counteradded" and "@counterremoved" triggers in order to user "all(trigger)" target.
2021-09-22 18:56:43 +02:00
Vittorio Alfieri
e2ac10be95
Fixed primitives, fixed STA set, fixed a bug in new background images management.
2021-09-21 09:24:38 +02:00
Vittorio Alfieri
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.
2021-09-20 15:36:42 +02:00
Vittorio Alfieri
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.
2021-09-19 18:17:12 +02:00
Vittorio Alfieri
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.
2021-09-16 22:11:43 +02:00
Vittorio Alfieri
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").
2021-09-13 18:56:16 +02:00
Vittorio Alfieri
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).
2021-09-12 21:18:43 +02:00