Agetian
4bae4c7491
- Basic AI for Torgaar (currently won't sac anything as a part of cost payment)
...
- Fixed references in the script for Torgaar.
2018-04-18 09:25:58 +03:00
Michael Kamensky
e186356591
Merge branch 'torgaar' into 'master'
...
Add Torgaar (DOM)
See merge request core-developers/forge!424
2018-04-18 04:23:00 +00:00
Chris H
f3afaf9c51
Add Torgaar (DOM)
2018-04-17 23:08:53 -04:00
Meerkov
6efd631fd8
Declares a serialVersionUID.
...
Lots of classes here are serializable, but warn due to missing UID. Serializables are supposed to have a UID for version compatability. Fixes a bunch of compiler warnings.
Also adds in "default:" branch to a few switches which were warning due to missing cases.
2018-04-17 16:48:18 -07:00
Meerkov
0aea9ce153
Fix imports.
...
Woops, commited too fast. Adding imports for MyRandom.
2018-04-17 16:28:27 -07:00
Meerkov
4925db1b66
Remove Math.Random in favor of MyRandom.
...
This is a continuation of the RNG updates. Math.Random is an insecure PRNG which is actually different than java.util.Random as well.
2018-04-17 16:25:43 -07:00
Meerkov
72baafe4f2
Deletes 5 year old, unused JQuery code.
...
It seems like the developer planned to do something with it, but never did. Removing it seems like the only reasonable action.
2018-04-17 16:14:35 -07:00
Meerkov
64b98a84f5
Fix memory leak in FServerManager.
2018-04-17 16:11:25 -07:00
Meerkov
db3e4d9e83
Fixes ~50 compiler warnings for unused libraries.
2018-04-17 16:06:00 -07:00
Meerkov
338ba5afdc
Fixes some compile errors in Eclipse due to empty folders.
2018-04-17 15:50:53 -07:00
maustin
f2ae137947
Merge branch 'master' into historicformats
...
# Conflicts:
# forge-game/src/main/java/forge/game/GameFormat.java
2018-04-17 21:29:03 +01:00
maustin
c035636e94
Merge branch 'ai-give-lands-to-opp' of https://git.cardforge.org/Agetian/forge
2018-04-17 20:52:41 +01:00
Michael Kamensky
f51b80739a
Merge branch 'master' into 'master'
...
Re-merge request for RNG Changes etc
See merge request core-developers/forge!422
2018-04-17 15:35:05 +00:00
Michael Kamensky
d1eea7e7ba
Merge branch 'mayPlayLand' into 'master'
...
May play land
See merge request core-developers/forge!415
2018-04-17 14:54:04 +00:00
Michael Kamensky
a225cf0f92
Merge branch 'frostwielder' into 'master'
...
cards: Replace Moved that does check on damaged by need to use ValidLKI
Closes #406
See merge request core-developers/forge!421
2018-04-17 14:41:14 +00:00
Hanmac
ae5f85352e
cards: Replace Moved that does check on damaged by need to use ValidLKI
...
Closes #406
2018-04-17 15:44:32 +02:00
Michael Kamensky
ffc414062b
Merge branch 'patch-AnimateAllAI-mandatory' into 'master'
...
AnimateAllAi: fixed doTriggerAi for mandatory
See merge request core-developers/forge!420
2018-04-17 11:50:30 +00:00
Hans Mackowiak
da50071765
AnimateAllAi: fixed doTriggerAi for mandatory
2018-04-17 11:28:08 +00:00
Hanmac
3b9ea37907
Player: add playLandNoCheck to be used by LandAbility
2018-04-17 09:04:50 +02:00
Michael Kamensky
1a5710c564
Merge branch 'ai-better-pw-damage' into 'master'
...
Better ranking system for damaging planeswalkers directly
See merge request core-developers/forge!414
2018-04-17 07:01:47 +00:00
Agetian
9650014506
- Pay costs for ultimate SA shouldn't be null, but better safe than sorry.
2018-04-17 09:59:22 +03:00
Hanmac
eda7fee2c6
AiController: fixed MayPlay for Land
2018-04-17 08:07:11 +02:00
Hanmac
79c9c914e2
LandAbility: do extra ability class, so it can use mayPlay
2018-04-17 08:07:11 +02:00
Hanmac
190db26ebd
MayPlay: fixed Bestow and MorphDown Effects
2018-04-17 08:07:11 +02:00
Meerkov
857f45f9ec
Updates AI code to use MyRandom directly.
...
This removes java.util.Random from lots of AI code, futher making it unlikely that developers will accidentally use "new Random()" instead of MyRandom class. This will make running AI experiments easier, because there will be exactly one class that controls the randomness.
2018-04-16 21:31:52 -07:00
Meerkov
5c9a27c930
Update lots of code to use MyRandom directly.
...
Some parts of the code were using the normal random, instead of going through the MyRandom class. This makes it much harder to change the RNG method later. For example, you may want to change the RNG to always be seeded with the same number, for running AI experiments. This change makes that easier.
2018-04-16 21:26:12 -07:00
Meerkov
645d70e6ce
Fixes inefficient shuffle algorithm.
...
Note that shuffling 13 times in a row is not necessary. Collections.shuffle will produce every possible shuffle with equal probability already.
2018-04-16 20:40:20 -07:00
Meerkov
130fc4ee18
Complete update to Java 8.
2018-04-16 20:38:20 -07:00
swordshine
ea32363144
Merge branch 'master' into 'master'
...
Updated the oracle text of Blackblade Reforged
See merge request core-developers/forge!418
2018-04-17 02:50:45 +00:00
swordshine
077eb106e3
Merge branch 'master' into 'master'
...
Updates the project for Java 8.
See merge request core-developers/forge!416
2018-04-17 02:48:14 +00:00
swordshine
3070dddf96
- Updated the oracle text of Blackblade Reforged
2018-04-17 10:45:30 +08:00
swordshine
708668df3f
Merge branch 'migrate_upcoming' into 'master'
...
Migrate upcoming DOM files
See merge request core-developers/forge!417
2018-04-17 02:42:44 +00:00
Chris H
ea1770b1a7
Migrate upcoming DOM files
2018-04-16 21:32:59 -04:00
Meerkov
1cfb937490
Updates the project for Java 8.
...
Maps.newHashMap() was replaced with null in numerous locations. A null check is performed in the locations that read this value. This prevents unnecessary allocation of memory and fixes compiler errors.
"final" keyword added to RepeatEachEffect, which used local variables in non-local scope.
2018-04-16 18:26:15 -07:00
austinio7116
41e1997d73
Deactivate the choose format button if a quest world is selected
2018-04-16 22:00:55 +01:00
austinio7116
e359042766
New quest screen format selector now updates button text when a format is selected
2018-04-16 20:33:38 +01:00
Agetian
ae05e58a13
- Somewhat more explicit method name.
2018-04-16 22:18:33 +03:00
austinio7116
ad6f26f6a9
Separated the historic format selector UI for android from the filter class so that it can also be used to select any format for quest pools
2018-04-16 20:17:19 +01:00
Agetian
2c9b23fc6d
- Better ranking system for damaging planeswalkers directly (accounts for loyalty and closeness to ultimate for now).
2018-04-16 21:31:49 +03:00
maustin
defaebd064
Merge branch 'master' into historicformats
2018-04-16 06:48:08 +01:00
Agetian
1fb559aedb
- Experimental: DigAi prefers to give lands to the opponent instead of functional cards e.g. for Karn, Scion of Urza.
2018-04-16 07:36:44 +03:00
Michael Kamensky
29292956b6
Merge branch 'assorted-fixes' into 'master'
...
A better implementation of reckless attack prevention in AiAttackController.
See merge request core-developers/forge!412
2018-04-16 04:32:14 +00:00
Agetian
ffaf0eb8d5
- A better implementation of reckless attack prevention in AiAttackController.
2018-04-16 07:30:40 +03:00
swordshine
3344453253
Merge branch 'ai-careful-attack-effect' into 'master'
...
Cautiously configured AI should not chump attack recklessly with creatures that have AttackEffect/CombatEffect trying purely to trigger their effect.
See merge request core-developers/forge!411
2018-04-16 00:51:55 +00:00
swordshine
b60d0e057d
Merge branch 'ai-haste-detection' into 'master'
...
Improve the AI Haste detection from Command zone and opponent's Battlefield
See merge request core-developers/forge!410
2018-04-16 00:51:09 +00:00
swordshine
9d0ffaddc5
Merge branch 'assorted-fixes' into 'master'
...
Improve the AI timing for Indestructible pump abilities.
Closes #507
See merge request core-developers/forge!409
2018-04-16 00:49:51 +00:00
austinio7116
e1ed1ae69c
Grouped formats by historic subtype as well as type in android scroll selector
2018-04-15 19:53:30 +01:00
Agetian
1bb5f10fad
- Better place for the defPower count.
2018-04-15 21:32:33 +03:00
Agetian
c0d65afde4
- Fixing an inadvertent comment change.
2018-04-15 21:12:58 +03:00
Agetian
e37ac89b88
- A somewhat better logic correction for attacking into dangerous blocks.
2018-04-15 21:11:05 +03:00