Commit Graph

29213 Commits (master)

Author SHA1 Message Date
Zapeth 40cc5a3ea2 Fix some outdated card image links
All card image links from `scripts_missing` should be valid again

There are still about 135 invalid image links in `scripts`, those probably
need to be fixed manually (see
https://github.com/magarena/magarena/issues/1655#issuecomment-812603718)
2021-04-13 09:23:52 +08:00
Lucien Pereira 53d5fa8827 Correction of Temple Altisaur's script
The effect shouldn't apply on the card itself, the text says:
If a source would deal damage to another Dinosaur you control, prevent all but 1 of that damage.
2020-06-18 19:49:59 +08:00
Leandro Doctors b976afb965 Organize imports 2020-02-05 17:58:37 +08:00
Leandro Doctors 2e6fcc2629 refactor: Apply "Protected Variations" for deck extension name 2020-02-05 17:58:37 +08:00
Mike 648806f1d8 add AiStrCal tool to compare AI implementations 2020-01-17 08:26:14 +08:00
melvinzhang 4cc887c2bc use https to download maven libs 2020-01-16 10:03:07 +08:00
Leandro Doctors 2733516cb9 Organize imports 2020-01-16 08:21:24 +08:00
melvinzhang 617ac42211 replace tabs with spaces for consistency with rest of the file 2020-01-15 10:17:21 +08:00
Leandro Doctors 4d8a061212 Lib replacement: Jakarta Activation replaces JavaBeans Activation Framework
JAF is no longer part of OpenJDK since JDK 11.
Similar issue: https://youtrack.jetbrains.com/issue/IDEA-205600
2020-01-15 10:15:12 +08:00
Leandro Doctors 8ac91893ea Ignore builds 2020-01-15 10:15:12 +08:00
xin 2e4f72c7d0 Few improvements in French translation 2020-01-15 08:57:59 +08:00
melvinzhang 3e637eb402 format release notes for 1.96 2019-12-29 19:06:12 +08:00
melvinzhang e2a34b5b4e add list of new cards to release notes 2019-12-29 11:16:49 +08:00
melvinzhang 3fed8cbf3e bump version number to 1.96 2019-12-29 11:16:33 +08:00
melvinzhang 68815c9eea mark Lingering Phantom as not supported due to trigger-from-graveyard 2019-12-29 10:19:39 +08:00
melvinzhang 970115f1a8 add Dormant Gomazoa 2019-12-29 10:14:19 +08:00
melvinzhang a7de35c0cc add Attendant of Vraska 2019-12-29 10:11:42 +08:00
melvinzhang 3fae500fb7 copy commit message as initial draft of 1.96 release notes 2019-12-29 09:55:47 +08:00
melvinzhang 3b857dc133 add rule to run card test 2019-12-29 09:55:29 +08:00
Bilbo a6e97873fd Optimize mesage generation.
* Use faster stringbuilder for card token formatting instead of full-blown formatter.
* When SN/RN/PN and similar placeholders are expanded, calculate the replacement
  value only if the placeholder is present in the string.
   In a test with some random games:
    55.4M times replaceName was called
    39.2M times SN was present
     2.0M times PN was present
     0.2M times RN was present
     0.2M times X was present
* Generate event description on demand, instead on event construction.
   In a test with some random games:
   71.601M times description is generated
    0.258M time it is actually read or used
 By postponing generating the description to a point when it is actually needed,
 CPU time spent when going through possible actions is reduced to about 80%,
 so in given amount of time, MMAB AI and similar
 is able to examine larger part of the possible game states.
2019-12-13 05:25:23 +01:00
Bilbo d8fcafa0eb Print total time and time per card at end of the test. 2019-12-08 09:08:47 +01:00
Bilbo 10bfd0ddd9 Add ability to skip cards for the test. 2019-12-08 09:08:15 +01:00
Bilbo 120e019c95 Refactor Commandline parsing. 2019-12-08 09:08:15 +01:00
Bilbo 22a1471424 Add "card test" mode that tests all cards in a predefined scenario. 2019-12-06 23:04:39 +01:00
Bilbo 39f14b40c8 Fix exception when attempting to open file or directory
(mostly log directory, crash logs, etc ...) with default application on a system where this is not supported.
If opening fails, show a messagebox that also shows the file/directory name.
2019-12-03 07:02:09 +01:00
Bilbo f6ab949566 Fix exception when attempting to open URL on a system where this is not supported.
If opening URL fails, show a messagebox that also shows the URL.
2019-12-03 05:45:06 +01:00
Ada Joule 217bee1bc6 Make Riot grant Haste forever 2019-02-12 00:11:07 +07:00
melvinzhang f6de82bcda fix cost of ability for Slith Bloodletter as reported on forum 2019-02-03 08:53:39 +08:00
melvinzhang 09958cfd66 include password in curl for correction of release label 2019-01-16 19:58:21 +08:00
melvinzhang 8b8d590cd6 replace clunky comparison using getId with isFriend 2019-01-16 19:58:02 +08:00
Ada Joule 460a51da88 Merge branch 'spectacle' 2019-01-16 17:44:54 +07:00
Ada Joule 0b35c1d557 Add EntersSpectacleEffect to MagicAbility 2019-01-16 17:43:57 +07:00
Ada Joule 542cbb9c89 Change Spectacle cost to mana cost instead of just cost 2019-01-16 17:40:44 +07:00
Ada Joule f6e4a18cde Fix error 2019-01-16 17:36:11 +07:00
Ada Joule fcb38517b3 Add Addendum condition 2019-01-16 17:27:05 +07:00
Ada Joule e42b42c829 Add Adapt to effect script 2019-01-16 17:09:54 +07:00
Ada Joule 357eeb284b Add Spectacle mechanic 2019-01-16 03:58:06 +07:00
Ada Joule 50b97bd746 Add Afterlife [number] to ability script 2019-01-16 03:31:46 +07:00
Ada Joule be00f393ea Add imports 2019-01-16 03:31:32 +07:00
Ada Joule 866d374441 Add Afterlife trigger 2019-01-16 03:28:08 +07:00
Ada Joule 4b498c9ae0 Add Riot mechanic 2019-01-16 03:15:59 +07:00
Ada Joule 4690cbe4b8 Add Riot ability to script 2019-01-16 03:14:25 +07:00
Ada Joule 0efcab7f0d Add Riot trigger 2019-01-16 03:13:56 +07:00
melvinzhang 1e8b14d724 improve wording of 1.95 changelog 2018-12-31 16:23:19 +08:00
melvinzhang 5a45b8ee2c draft release notes for 1.95 2018-12-30 20:01:00 +08:00
Ada Joule 1f84ef595b Use addFirstEvent instead of addEvent for explore
This fixes the Jadelight Ranger bug
2018-11-28 03:55:05 +07:00
Ada Joule a1c559eba0 Revert "Fix Jadelight Ranger bug"
This reverts commit 0061f2fd77.
2018-11-28 03:54:41 +07:00
Ada Joule 0061f2fd77 Fix Jadelight Ranger bug
Jadelight Ranger adds the same explore event into the event queue twice.

Getting a land or sending the first card explored to the graveyard will not explore the next card.
2018-11-28 03:15:47 +07:00
Ada Joule ae1794fbfc Saga cards (#1636)
* Add The Flame of Keld

* Add The Mending of Dominaria

* Add Fall of the Thran

* Add Rite of Belzenlok and its tokens

* Add Song of Freyalise

* Add Phyrexian Scriptures

* Add Time of Ice

* Add accept only own upkeep in Song of Freyalise

* Change mana ability in Song of Freyalise

* Use new list to contain cards being shuffled into the library in The
Mending of Dominaria

* Use PutOntoBattlefieldAction in The Mending of Dominaria

* Use PutOntoBattlefieldAction in Fall of the Thran
2018-11-27 12:49:31 +08:00
Ada Joule 2ff0e11de6 Use getGameCost() instead of getCost() 2018-11-26 19:32:44 +08:00