Commit Graph

3063 Commits

Author SHA1 Message Date
Eduardo MG
a371cef279 Blood macros, more kindred changes
Created a macros for blood token, tribal to kindred changes, typo in background on various files,

Bug fixes:
Fiendslayer Paladin
Dire Fleet Poisoner
Shapers of Nature
Raptor Hatchling
Emiel the Blessed
Path of Discovery
Departed Deckhand
2025-05-26 18:46:55 -06:00
Patrick Babb
17f0f59f38 Update GameStateAwards.cpp
Added a "Back to Main Menu" button to the Trophy Room for touch devices.
2025-05-05 23:09:10 -05:00
Eduardo MG
41f5aceac4 Tar Fiend rework. Sidisi, Regent of the Mire fix 2025-05-01 17:57:49 -06:00
Eduardo MG
a394397dc0 Update AIPlayerBaka.cpp
Remove the unused variable
2025-04-29 23:10:37 -06:00
Eduardo MG
f93bcb32ef Tarkir: Dragonstorm (TDM) update
Maccros for artifact tokens update
Added cards from TDM and TDC
Bug fixes on exert
Changelings have Every Creature Type but should esclude certain types present on creatures like Clue, Equipment, Food, and Treasure
Cards like Prized Unicorn with abilities=lure prevented the opponent from blocking even if Prized Unicorn was not attacking.
Fixed:
Lure stops from blocking even if the creature with lure is not attacking.
Exerted Creatures Can Be Untapped By Clicking On Them.
2025-04-29 22:05:54 -06:00
Eduardo MG
9b2f59d64f AIPlayerBaka
Changing how the AI selects attackers, considering creatures with evasion
2025-04-24 14:13:25 -06:00
Eduardo MG
06bd11b0be Revert "Revert "Revert "Update AIPlayerBaka.cpp"""
This reverts commit d892703902.
2025-04-23 19:25:24 -06:00
Eduardo MG
d892703902 Revert "Revert "Update AIPlayerBaka.cpp""
This reverts commit c0e2a1fe40.
2025-04-23 19:23:50 -06:00
Eduardo MG
c0e2a1fe40 Revert "Update AIPlayerBaka.cpp"
This reverts commit 3555ddba33.
2025-04-23 19:16:43 -06:00
Eduardo MG
3555ddba33 Update AIPlayerBaka.cpp
Changing how AI decides to attack with creatures that have some kind of evasion.
Experimenting with how AI decides to block
2025-04-23 18:51:05 -06:00
Eduardo MG
e2b9429b45 Variants, new macros, old type changed to Kindred
Cleaned extra spaces and bugs in primitives
Macros for Crew 2
Removed old obsolete card type and changed it to Kindred
New zone mybattlefieldhand for "Behold a Dragon"
2025-04-23 18:20:32 -06:00
Eduardo MG
786a252cf5 Mana symbols to uppercase, bug fixes
Lands that enter tapped unless a player has 13 or less life
Courier Bat
Demon of Death's Gate
Caldaia Guardian
2025-04-04 22:24:18 -06:00
Eduardo MG
671b3bae61 Improved riot, INR, MH3, macros. Bug fixes. New cards
Windbrisk Heights
Orchard Strider
Shefet Monitor
Merfolk Sovereign
Alibou, Ancient Witness
Flesh Allergy
Regal Sliver
name=Pilot token, condition to check if there's a vehicle in your battlefield
Painful Quandary needed a condition to check if the affected player has at least one card in hand
Serpentine Curve shouldn't count itself. Serpentine Curve itself is not yet in your graveyard when you determine the value of X.
Rowen was drawing with nonbasics
Thopter Spy Network
Teferi, Temporal Archmage -10 ability, create an emblem
Exert Influence
Dawnglade Regent effect persisted after dying
Molten Echoes
Undergrowth
Haze of Pollen
Oketra's Avenger
Heliod's Intervention
Aura Barbs
Gravestorm
Inspired Sphinx
Retrofitted Transmogrant
Echoing Assault
Citywide Bust
2025-03-28 17:12:41 -06:00
Eduardo MG
721f1bc269 set code Y22 has been updated to YMID
The set code Y22 has been updated to YMID, now reflecting its official name: Innistrad: Midnight Hunt. Additionally, this set now includes a multiverseid in the database, aligning it with official standards.

Bug fixes:
Astral Drift
Hulking Metamorph
Exorcise
Pain Distributor
Cleansing Wildfire
Jaya, Venerated Firemage
Great Whale
Jolting Merfolk
Sunbird's Invocation removed
Eerie Interlude
Old-Growth Dryads
Enigma Sphinx
All "God-Eternal" that return to deck
Sorin, Imperious Bloodlord
2025-03-06 19:36:12 -06:00
Eduardo MG
603d91885f Fix to offspring cards
Escaped Shapeshifter
Pyxis of Pandemonium
Silver-Fur Master
Nashi, Moon Sage's Scion
Barrow Ghoul
Circling Vultures
Collector's Vault
Heavenly Blademaster
Chaos Warp
Master's Rebuke
Diamond Pick-Axe
2024-08-28 00:29:08 -06:00
Eduardo MG
ddd589d3f6 Trying to fix compilation for PSP
Replace nullptr with NULL
2024-08-21 23:02:11 -06:00
Eduardo MG
8793f05cea Random Commander From File
Loads a player with a randomly selected commander from a specified file.

 * This function reads a file ('User/commander/commander.txt') that contains a list of potential commander IDs or names.
 * It selects one randomly to be used as the player's commander. If the file doesn't exist, or no valid commanders are found, a default commander ID (670972) is used.
* Can read the commander name and a multiverseID
* Lines that start with '#' are ignored
2024-08-21 22:33:31 -06:00
Eduardo MG
8ed4729d82 postcombat to second main, bug fixes in primitives
Had to use the treasure defined as primitive since the Fable of the Mirror-Breaker token won't create a treasure otherwise.

Changes:

Rat Colony
Shadow of the Second Sun
Sphinx of the Second Sun
Viashino is no longer a creature type. The postcombat main phase is now referred to as the second main phase.
Updated Rules.cpp to exclude the Viashino type from random kindred decks.
Bug Fixes:

Fable of the Mirror-Breaker
Rat Colony
Plumb the Forbidden
Oblivion Stone
2024-08-18 17:50:59 -06:00
Eduardo MG
57c59ee0dd Changed some conditions to simpler variables
newability[reach] changed to just reach
Bug fixes
Garruk, Unleashed
2024-08-13 00:13:13 -06:00
Eduardo MG
2c6c20358d Bug fixes, Adapt, Mentor, and Amass Orcs macros
I added a condition to energy activation to prevent the AI from hanging, trimmed excessive '9s' in 'infinite' conditions, fixed the Adapt, Mentor, and Amass Orcs macros, and implemented mercenary token macros.
Light of the Legion
Myriad Construct
Sheoldred
Neheb, the Eternal
Complete the Circuit
Return to Nature
Diffusion Sliver
Frost Titan
Death Match
Requiem Angel
Wildwood Scourge
Glasspool Mimic
2024-08-02 16:56:24 -06:00
Eduardo MG
067ae2790d opponenshroud changed to hexproof, new ability canplayenchantmentlibrarytop
New ability "canplayenchantmentlibrarytop" allow to play enchantments from top
sets now include tokens
you no longer draw conspiracy cards in the random
rules file revisions
commander bugs
Eutropia the Twice-Favored
Calculating Lich
Seismic Wave
Rank and File
Professional Face-Breaker
Realmwalker
2024-07-21 18:44:21 -06:00
Eduardo MG
4e4108f547 Bug Fixes, code cleanup, macros substitutions for tokens
Adding colorless to a token is redundant since by default is colorless.
"may pay" is redundant when the cost is mana, it's necessary when the cost is life.
Acolyte of Affliction
Ajani, Strength Of The Pride Shouldn't Be Double Triggers
Akiri, Fearless Voyager
Arena Rector
Arrogant Poet
Artificer's Hex just falls off, removed
Body Snatcher When You Have No Creatures In Hand
Bump In The Night
Cacophony Scamp
Captain Eberhart
Chandra, Hope's Beacon
Deem Worthy
Desecrate Reality
Destructive Tampering
Drake Haven
Dredge The Mire
Explosive Welcome
Fungal Rebirth
Giver of Runes
Glissa's Scorn
Gurgling Anointer
Haunted Angel
Hungry Flames
Hypnotic Cloud
Inniaz, the Gale Force
Jukai Naturalist
Lord Windgrace
Nature's Cloak
Nature's Spiral
Rashmi, Eternities Crafter
Rohgahh, Kher Keep Overlord
So Shiny
Sparktongue Dragon
Sprouting Goblin missing a )
Temple Thief
The Grey Havens
The Mending of Dominaria was shuffling itself
Tolarian Contempt, have to misspell "rejection" on the counter name
Two-Handed Axe // Sweeping Cleave
Urborg Panther
Urza's Sylex
Victory Chimes
Vraska, Swarm's Eminence
Warmonger
2024-07-06 17:36:58 -06:00
Eduardo MG
a0b3c00211 Fixes to commander damage, deathtouch, MAT card variants.
March of the Machine: The Aftermath (MAT) card variants.
The previous implementation of the deathtouch ability had a bug that destroyed planeswalkers even with any amount of damage. This has been fixed.
If a player has been dealt 21 points of combat damage by a particular Commander during the game, that player loses a game. The damage rule with commanders was incorrect in counting any type of damage, not only combat damage.

Bug fixes:
Athreos, Shroud-Veiled
Endless Atlas
Natural State
Savage Gorger
Kytheon's Irregulars
Lion Sash
Pyrophobia
Minas Tirith
Sakashima of a Thousand Faces
2024-02-16 12:46:41 -06:00
Eduardo MG
667adfadce Bug fixes, Changes to Random Commander
You can now get non-basic lands in random commander, adds more diversity to the mode.
Bug fixes to "Choose one or both" cards
Helm of Kaldra AI just keeps activating the ability
Katsumasa, the Animator
Yidris, Maelstrom Wielder
Prismatic Omen
Retreat to Hagra
Condescend
Unnatural Aggression
Second Breakfast
Kitesail Skirmisher
Ezuri's Predation
Rohgahh, Kher Keep Overlord
Blight-Breath Catoblepas
2024-02-09 20:04:12 -06:00
Eduardo MG
f0cbff2f91 Added buttons to display menus, new token macros.
Newer Android devices dont have phisical buttons, so added buttons to display menus that have the same behaviour of pressing the back button.
Bug fixes in primitives.
Created macros for Eldrazi Scion and Eldrazi Spawn tokens.
2024-01-20 11:47:28 -06:00
Vittorio Alfieri
ac197179fb Fixed a crash on Shop when buying a new booster. 2023-08-11 12:25:24 +02:00
Vittorio Alfieri
332f0542f7 Fixed some primitives from issue #1085, fixed _BLINK_UEOT_ macro, improved several abilities to allow the usage og "and" option. 2023-07-27 18:18:49 +02:00
Vittorio Alfieri
816c42b63b Fixed some primitives from issue #1085, fixed some primitives from Discord Channel, fixed "except" keyword for triggers, added "nocost" option for "totalcounteradded" event to avoid to trigger in case of counter cost (e.g. "Doubling Season"), added "removeallcolors" and "removeallsubtypes" options for "transforms" ability. 2023-07-25 17:38:25 +02:00
Vittorio Alfieri
751fda6521 Fixed some primitives from issue #1085, fixed some primitived from Discord channel, updated some AI decks, added new ability "canloyaltyasinst" to allow a planeswalker to activate loyalty abilities as instant (e.g. "The Wandering Emperor"), fixed a possible crash when a card change zone with different card types than its original version (e.g. morphed cards). 2023-07-24 19:08:20 +02:00
Vittorio Alfieri
6625907180 Fixed some primitives from issue #1085, improved some cards for AI combo (from Discord channel), added "isattacker" keyword to check if creature is attacking, added "couldattack" keyword to check if creature can attack, improved some triggers to add turnlimit option. 2023-07-21 21:12:38 +02:00
Vittorio Alfieri
fbfcb7d3ac Fixed some primitives from issue #1085 and from Discord channel, fixed all curses primitives and targets, added new keywords "oppotgt" and "ctrltgt" to check wich player has been targeted from a card, fixed an issue on "chooseaname" ability. 2023-07-13 17:24:11 +02:00
Vittorio Alfieri
2ed35bcaa2 Fixed all primitives that should target any target instead of player and creatures using the new implemented target "anytarget", added new target "propagation" for "propagate" ability, removed the duplicated "unsacrificable" basic ability to use the previous "cantbesacrified" one. 2023-07-08 19:19:17 +02:00
Vittorio Alfieri
b791da0786 Added new primitives from LTC set, improved "_GOAD_" macro, updated missing card by set list, added new keyword "permanent" to target permanents and nonpermanents, added "flashback" option to "castcard" ability, added new ability "unsacrificable" to forbid a player to sacrifice a card. 2023-07-07 18:22:58 +02:00
Vittorio Alfieri
5da42e53be Added new primitives from LTR set, fixed primitives, updated missing cards by set list, updated Card image urls list, fixed LTR dat file, added new ability "eqpasinst" to allow usage of "equip" ability as an instant. 2023-07-04 17:40:17 +02:00
Vittorio Alfieri
eaef6a588d Added new primitives from LTR set, fixed a possible crash on "transforms" deletion from emblems and "ability$", fix source card for token creation inside ability$!!$ keyword. 2023-07-03 18:11:17 +02:00
Vittorio Alfieri
617ce45dbc Improved implementation for isCommander and RingBearer card status (now they are no longer basic abilities but inner card properties in order to avoid conflicts with abilitiy modificators), added a white border on commanders to highlight them during match in the various game zones. 2023-07-01 16:28:19 +02:00
Vittorio Alfieri
1ab4e4ebfd Added new primitives from LTR set, added notrigger option for special tokens such as "The Monarch" and "The Ring" and "The Initiative", fixed LTR dat file, updated missing cards by sets list, added "untp" option for "rehook" and "retarget" ability to untap the equipped creature, added new restriction "oppoattacked" to check if your opponent has attacked during the current turn. 2023-06-28 17:07:09 +02:00
Vittorio Alfieri
9760ab39b7 Added new primitives from LTR set, improved "steal" ability with "and" option, printed the nember of ring temptations on "The Ring" card, improved "hasdead" restriction to calculate if a card of a specific type has died during the current turn. 2023-06-27 18:17:22 +02:00
Vittorio Alfieri
edc0aebf04 Fixed LTC and SIR dat files, added new primitives from LTR set, implemented the new abilities and trigers related to ring bearer and ring temptations for LTR and LTC sets. 2023-06-26 22:27:29 +02:00
Vittorio Alfieri
9a23c4b83b Fixed some primitives with conjure and phyrexian mana, fixed a bug on "conjure" ability, improved getCardbyName method for castcard with namedcard option, for meld and for flip/turnside ability. 2023-06-24 23:01:25 +02:00
Vittorio Alfieri
df1a6c10a0 Added / fixed primitives from NEO set, improved Android downloader, updated missing cards by sets list, added SIR and SIS sets, updated card image url links, fixed MUL dat file, fixed a possible crash on "transforms" ability, added new trigger for ninjutsu ability, added new ability readytofight to set a creature tapped and attacking without being a ninja. 2023-06-23 17:25:04 +02:00
Vittorio Alfieri
c2d78db724 Added / fixed primitives from NEO set, added "mytgtforced" target for equipments and auras, added "numofactivation" keyword to give PT according to how many time an ability has triggred (e.g. "Bronze Cudgels"). 2023-06-22 18:39:11 +02:00
Vittorio Alfieri
797514521e Added / fixed primitives from NEO set, updated missing cards by sets list, improved "removesinglecountertype" ability (added "all" option to remove a specific amount of each kind of counter on a target). 2023-06-21 18:31:50 +02:00
Vittorio Alfieri
f9bcaf53c2 Added / fixed primitives from NEO set, improved Android downloader for token images, fixed a problem with castcard copied option for permanents, fixed a bug on colorless mana calculation for AI during combo. 2023-06-20 17:29:44 +02:00
Vittorio Alfieri
3b05932a8b Added / fixed primitives from ONE set, fixed Treasure name in all sets and primitives, updated missing cards by sets list, improved token creator ability by trying to retrieve the token id from the same set of source card (e.g. Urza's Saga), improved toxic ability adding a new target chooser "hastoxic" and adding a new keyword "toxicity" to retrieve the toxic amount of card. 2023-06-18 23:23:51 +02:00
Vittorio Alfieri
8a440d5d09 Added / fixed primitives from ONE set, updated missing card by sets list, improved triggers and added new trigger for proliferation effect. 2023-06-15 19:15:44 +02:00
Vittorio Alfieri
a5487311c4 Fixed several errors on primitives, fixed a bug on "mofified" target, restore a previous test on regenerate ability. 2023-06-10 22:52:49 +02:00
Vittorio Alfieri
0f607b2cbe Added/fixed primitives from NEC set, added new keyword "modified" to target creatures that are enchanted or geared or with counters, updated missing card by set list. 2023-06-09 22:45:08 +02:00
Vittorio Alfieri
2831ac12ae Added/fixed some primitives from J22 and NEC sets, fixed J22 and NEC dat file, updated card image url from NEC and J22 sets, fixed a bug on token copy, improved flip ability for tokens. 2023-06-05 17:55:11 +02:00
Vittorio Alfieri
f8fc173e86 Added / fixed some primitives, updated missing cards by set list, added new "reconfigure" ability based on "equip" one. 2023-06-04 20:11:40 +02:00