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
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
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.
2021-09-06 17:31:36 +02:00
Vittorio Alfieri
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").
2021-09-04 01:48:47 +02:00
Vittorio Alfieri
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.
2021-09-02 19:32:45 +02:00
Vittorio Alfieri
c7c2025fc9
Added/fixed primitives, improved "TurnSide", "Morph" and "Flip" abilities when dealing with Commanders, added "fresh" attribute to cards just put in Sideboard, added a put back rule when a Commander is put in Sideboard, allowed to cast a card with kicker or alternative or morph cost from the CommandZone: in case of Morphed or DoubleFace cards (e.g. "Tergrid, God of Fright"), they will be put in play but they won't be Commander, but when they will be put elsewhere (e.g. destroyed) they may be back to the CommandZone with the usual Commander put back rule.
2021-08-24 22:43:55 +02:00
Vittorio Alfieri
a82636b099
Fixed "Jolrael, Mwonvuli Recluse", fixed "Corrosive Ooze", added new keyword "all(myeqp)" in order to target all the equipments attached to a creature (e.g. Corrosive Ooze).
2021-08-07 13:42:28 +02:00
Vittorio Alfieri
9df5bb29ab
Added MH2 set, improved Android downloader, added/fixed primitives, improved coin flip event trigger, improved discarded attribute, improved castcard keyword (now it's possible to specify the x value in cost), improved add/remove/mod counter trigger, improved the "spent" and "converge" keyword for spell still in the stack.
2021-06-16 17:07:44 +02:00
Vittorio Alfieri
79716a4533
Added a new rule to flip back modal dual face card on each phase and after each action, fixed "Aladdin's Lamp" and "Turntimber Symbiosis" primitives, allowed the AI to play back side of modal dual face cards, improved the "doubleside" keyword to flip modal dual face cards, improved filters to target flipped cards using the "isflipped" keyword, fixed a crash when zone pointer was null in GameObserver::logAction method.
2021-04-28 17:03:29 +02:00
Vittorio Alfieri
e265dc3e7f
Completed STX set, fixed/added primitives, improved Android downloader, implemented the usage of ^ instead of , char (e.g. target multiple zones within transforms keyword), improved the code to avoid the multiple triggers in case of abilities gained from other cards (e.g. Kasmina, Enigma Sage).
2021-04-26 19:23:31 +02:00
Vittorio Alfieri
9da159a607
Added C21, STA and STX (still in progress) sets, improved Android downloader, added/fixed primitives, added a keyword to get if a card has "X" in its cost, fixed a crash while targeting a spell on stack, added a new option "nolegend" to clone keyword in order to create a token without legendary type and rule, improved "hascnt" keyword with "anycnt" option to count all counters on a card, added a new keyword "hasstorecard" to get if a card has a stored card or not(e.g. fizzlers), added a new keyword "pgmanainstantsorcery" to count the mana value of all instants and sorceries in player graveyard, added a new keyword "currentphase" to get the current game phase.
2021-04-20 23:34:30 +02:00
Vittorio Alfieri
783bcf1142
Added KHM and KHC sets, improved Android downloader, fixed/added primitives, improved "hascnt" keyword, added "myhandexilegrave" and "opponenthandexilegrave" zone targeters.
2021-01-31 00:59:15 +01:00
Vittorio Alfieri
dd844fc25e
Fixed Etchings of the Chosen (issue #1051 by @ranger7271), added primitives with choose card name, added two keywords "chooseaname" and "chooseanameopp" to choose a card name ("chosenname" and "lastchoosenname") between your cards or opponent cards, added a keyword "[attached]" to target equipment attached to a permanent.
2021-01-26 20:47:33 +01:00
Vittorio Alfieri
f6199719fd
Fixed issues #1049 and #1050 opened by @ranger7271, improved imprint keywords, improved boast ability, added a new "hasability" keyword to check if a card has an ability or not.
2021-01-24 15:53:49 +01:00
Vittorio Alfieri
5184132e8b
Fixed primitives, added "notshare!" keyword (e.g. to search cards with different names), improved decks selection according to chosen game mode (e.g. Game will show commander decks only in commander mode and it will hide them in other modes).
2021-01-22 14:15:43 +01:00
Vittorio Alfieri
77c48dc1d5
Fixed/refactored primitives after the parser has been improved in order to allow the usage of "^" instead of "," char in a lot of abilities (e.g. to use the token, flip, rampage, phasealter, becomes keywords inside transforms or to target a card with a "," char in its name).
2021-01-15 00:43:13 +01:00
Vittorio Alfieri
91d19e2852
Fixed WAR, C18, PAL00, UST set, added/fixed primitives, improved Android downloader, implemented Foretell ability, improved castcard keyword, improved "can play" restriction, improved primitives parsed in order to allow the nesting of transforms, ability$! reveal, scry, pay, grant keywords.
2021-01-14 17:51:13 +01:00
Vittorio Alfieri
eaaa4d783b
Fixed/added primitives, added keyword to alter devotion count, added keyword to target cards with flashback cost, added "duplicatecounters(single)" keyword to add a counter of a specific kind already present on a permanent or a player.
2021-01-07 18:56:47 +01:00
Vittorio Alfieri
0ca310da54
Added feature to allow some cards to copy and flip back at the end of turn, added feature to use type: keyword with chosentype and chosencolor combo, fixed crashes on "can play land" restriction, fixed land primitives with pay life or tap condition to avoid crashes.
2020-12-23 12:39:18 +01:00
Vittorio Alfieri
a801069a3a
Improved explores ability, added new trigger to handle the explores event from a card, added/fixed primitives from older sets, fixed RIX dat file.
2020-12-20 23:14:44 +01:00
valfieri
e67078355a
Improved target chooser to allow a multiple selection for player, creature and planeswalkers, now it's possible to use target(player,creature,planeswalkers) as well as target(<variable>player,creature,planeswalkers) and so on. Added abilities for giving exiledeath and handdeath to instant and sorceries (the previous were not working fine), Added ability to identify the cards with Cycling ability as a target, Updated all primitives with cycling ability, fixed all primitives with choose any target ability, Added/fixed primitives from RIX set.
2020-12-18 19:04:51 +01:00
valfieri
7c696ac213
Improved Commander format card selection rule, added new keyword
...
"autocommandzone=" to trigger abilities from Command Zone (e.g. Commander Ninjutsu), added/fixed some primitives, added a new GUI Button to show Player's Sideboard.
2020-12-08 20:48:11 +01:00
valfieri
ced2c85076
Implemented Commander mode and rules, added Command Zone to game, added/fixed primitives, increased the major release version.
2020-12-06 20:11:51 +01:00
valfieri
a99eaac35d
Improved kicker cards comparison criteria (now it's possible to search for a multi kicked card in stack), added a new castcard mode with multikicker option, added all Zendikar Risings primitives to borderline collection, changed in all primitives the restriction "kicker" with a new sintax "if paid(kicker) then" in order to fit with the new kicker logic comparison criteria and castcard option.
2020-10-10 02:44:57 +02:00
valfieri
bf6439db00
Improved Kicker cards, now it's possible to target a specific card with kicker cost and handle any event connected to a kicker casting cost.
2020-10-03 16:54:17 +02:00
Vittorio Alfieri
67c7102687
Fix !share!types! keyword
2020-06-11 00:10:41 +02:00
Vittorio Alfieri
6212af0f48
Fix !share!types! keyword
2020-06-11 00:09:32 +02:00
Vittorio Alfieri
5688b28981
Fix !share!types! problem for creatures with no subtypes
2020-06-10 23:50:07 +02:00
valfieri
c162eff8cf
Fix build error to_string
2020-06-10 23:36:49 +02:00
valfieri
60e6d314e0
Fixed some primitives and fixed a problem with share!types! keyword.
2020-06-10 23:13:18 +02:00
Anthony Calosa
b4e25838bd
update targetchooser
2017-03-14 09:15:14 +08:00
Anthony Calosa
0778b13e2b
Totem Armor
2017-03-14 03:40:29 +08:00
Anthony Calosa
bef1f6d8b8
aura parent
2017-03-13 18:16:22 +08:00
Anthony Calosa
b01c1455f5
Provoke
...
also add aicode for Amplify cards
2017-03-09 18:37:55 +08:00
Anthony Calosa
030dca051a
support for wish cards and deck sideboard
2017-03-07 23:42:34 +08:00
Anthony Calosa
0a68a056d8
refactor canproducemana
2017-02-16 16:55:13 +08:00
Anthony Calosa
01fdcfdfec
zpos and zone display
...
added zone position (adjust dynamically), also inverts the display of
the zone so we always get the top/recent one... the library zpos is
inverted so if we choose to target the top 5 zpos like
target(*[zpos>=5|mylibrary), it will do from top to bottom... this is
only for AI so we can add alternate code for them since they cant use
reveal atm, we can make them target within allowed range...
Also this commit disabled the new legend and planeswalker rule since it
conflicts with reveal ability, unless I/We figure it out, I recommend to
use the old one...
2017-02-14 22:30:50 +08:00
Anthony Calosa
5b23cc2e33
auto close
2017-02-07 13:10:58 +08:00
Anthony Calosa
94aefa6dba
notany attribute
...
anytypeofmana makes manacost colorless... wip
2017-01-23 18:32:58 +08:00
Anthony Calosa
f11cc41df8
revised "colorless" attribute in targetchooser
...
also fix worldly tutor
2016-09-04 13:14:19 +08:00
Anthony Calosa
9bcc54c56c
add "recent" & "raidcount"
...
the recent attribute is to parse new cards entered play, then turns
itself to 0 if some stuff happened since it's already in play...
2016-08-25 03:40:38 +08:00
Anthony Calosa
12426cf8a7
added nonplaynonexile
...
for use inside transforms since we cant use commas
2016-08-25 00:20:18 +08:00
Anthony Calosa
a63065b44f
try to fix
2016-08-20 03:04:58 +08:00
Anthony Calosa
cec4494ce6
fix can produce mana
...
limited for land...
2016-08-20 00:21:58 +08:00
Anthony Calosa
8d7b9293b5
change naming convention
...
to avoid confusion
2016-08-19 20:29:41 +08:00
Anthony Calosa
c90f357bff
added myzones & oppzones
2016-08-19 18:08:36 +08:00
Anthony Calosa
892ef6b1b3
Add CD Blocked & some cards
...
cd "blocked" should fix Smite , Tattermunge Witch
2016-08-18 17:57:14 +08:00
Anthony Calosa
763918e129
added CD geared attribute
2016-08-16 15:42:22 +08:00
Anthony Calosa
f1bc268f58
add mycastingzone & oppcastingzone
...
to simplify code
2016-08-13 10:55:58 +08:00