Commit Graph

4168 Commits

Author SHA1 Message Date
GitHub Actions
0b6e5f9983 [maven-release-plugin] prepare for next development iteration 2023-07-26 22:00:13 -04:00
GitHub Actions
294b8c445b [maven-release-plugin] prepare release forge-1.6.57 2023-07-26 22:00:13 -04:00
tool4ever
3b832e02fc Clean up (#3536) 2023-07-26 19:21:04 +02:00
Chris H
abb2ff3cdf Ring tempts you (#3453)
* Ring tempts you WIP

* add ring triggers

* Update RingTemptsYouEffect.java

* Add files via upload

* Update TriggerRingbearerChosen.java

* Update token-images.txt

* Update TrackableProperty.java

* Update CardView.java

* Update CardRenderer.java

* Update RingTemptsYouEffect.java

fix crash

* Update Card.java

* Update CardView.java

* Update TrackableProperty.java

* Update StaticAbilityContinuous.java

* Update StaticEffect.java

* Update RingTemptsYouEffect.java

* update sprite_manaicons.png

* Update FSkinProp.java

* Update FSkinImage.java

* Update CardFaceSymbols.java

* Update CardRenderer.java

* update trigger

* update desktop symbol, add aragorn company leader

* update cleanup, add bilbo, add birthday escape

* update cleanup

* add 3 cards

* add five cards

* add two cards

* update aragorn,update bombadil, add two cards

* add ten cards

* Update horses_of_the_bruinen.txt

* add dunedain rangers + cleanup

* Update gollums_bite.txt

* update cleanup

* add six cards

* delete unnecessary file

* Update rangers_firebrand.txt

* add two cards, add RingTemptedYou playerproperty

* update frodo, add three cards

* update sauron, samwise, add two cards

* Update sauron_the_dark_lord.txt

* update validplayer

* add six cards

* update smeagol

* update sauron ransom two piles

* add four cards

* add three cards

* update card scripts

* Update war_of_the_last_alliance.txt

* update scripts, update ringbearer

* update CardDetailUtil

* remove unused param

* Update affected

* remove unnecesary variables

* update

* update scripts

* update RingTemptsYouEffect

* fix cantblockby RingTemptsYouEffect.java

* The Ring: use numTemptYou for RingLevel

* Update dunedain_rangers.txt

* Update jaces_defeat.txt

* update lord of the nazgul

* fix theRing CardView

* update ringEffect, update translation

* update translation

* update gamestate

* replace switch with if else

* fix effect

* update gamestate, translation

* update restartgameeffect, remove unneeded clearRingBearer

---------

Co-authored-by: Anthony Calosa <anthonycalosa@gmail.com>
Co-authored-by: tool4ever <therealtoolkit@hotmail.com>
Co-authored-by: Hans Mackowiak <hanmac@gmx.de>
2023-07-26 20:07:41 +03:00
tool4ever
8f1d8ce265 Remove special case of StackInstances sharing the same SpellAbility object (#3490)
* Each activated ability needs its own instance

* Don't need LKI since each SA is unique

* Clean default param

* Fix Dawnglow Infusion

* Fix ability counting

* Avoid color words

* Fix AI

* Be a bit smarter with copying

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-07-24 10:19:15 +03:00
Hans Mackowiak
c96af2b590 Card: Wither damage as property, use Static for Everlasting Torment (#3502)
* Card: Wither damage as property, use Static for Everlasting Torment

* Update Card.java
2023-07-21 09:57:25 +03:00
tool4ever
5b65fc8232 Goldberry support (#3354)
* Goldberry support

* Logic fix

* Create goldberry_river_daughter.txt

* Clean up

* Clean up

* Fix any+any counter

* Support Chandra, Legacy of Fire

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
Co-authored-by: Simisays <67333662+Simisays@users.noreply.github.com>
2023-07-20 06:11:27 +03:00
Anthony Calosa
638c8f2965 Merge pull request #3467 from tool4ever/dcfix
Fix Doubling Cube producing C out of nothing if floating colors have gap
2023-07-12 19:18:07 +08:00
tool4EvEr
40c93acbaa Fix Doubling Cube producing C out of nothing if floating colors have gap 2023-07-12 12:05:22 +02:00
tool4ever
7075a3e720 Banding fix (#3464)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-07-12 06:28:25 +03:00
Anthony Calosa
e5a09f72c3 Merge pull request #3462 from kevlahnota/newmaster2
update Card.java getPaperCard
2023-07-11 20:52:05 +08:00
Anthony Calosa
2771668131 update AIDeckStatistics 2023-07-11 20:36:20 +08:00
tool4EvEr
03cdbb0ef7 Clean up 2023-07-10 20:38:41 +02:00
tool4EvEr
927c3f619d Some fixes 2023-07-10 20:35:36 +02:00
Agetian
66af38b81a Basic AI for Chalice of the Void, minor DamageDealAi improvement (#3438)
* - Basic AI for Chalice of the Void.

* - Improved card filter for Chalice of the Void.

* - DamageDealAi: improve decision to deal damage when able to target an opponent

* - DamageDealAi: get rid of a redundant call, remove obsolete planeswalker redirection code

* - Fix imports

* - Update logic
2023-07-10 13:39:34 +03:00
tool4ever
491ccd1719 Fix missing reorder (#3435)
* Fix missing reorder

* Fix Ward check for all subs
2023-07-09 11:09:37 +00:00
Agetian
62e3472d6a Implement AI for Arena (#3434)
* - AI: Shouldn't miss Grothama's triggers even when it doesn't want to activate them.

* - Consolidate the logic in FightAi

* - Clean up

* - Fix imports

* - Clean up

* - Implement AI for Arena.

* - Hook up the AI for Magus of the Arena
- Simplify implementation for the relevant cards
2023-07-09 13:04:44 +03:00
tool4ever
054a885b33 Fix effect getting cleaned up directly if source was exiling (#3426)
Co-authored-by: TRT <>
2023-07-07 12:41:10 +03:00
Agetian
a2dd864047 AI shouldn't miss Grothama's triggers even when it doesn't want to activate them (#3424)
* - AI: Shouldn't miss Grothama's triggers even when it doesn't want to activate them.

* - Consolidate the logic in FightAi

* - Clean up

* - Fix imports

* - Clean up
2023-07-07 11:05:18 +03:00
tool4ever
449e456843 Clean up (#3422)
Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-07-07 07:09:11 +03:00
Agetian
dbc2a5b5eb AI: Various logic fixes and improvements (#3416)
* - Fix logic for Elderscale Wurm damage prediction

* - AI logic hint for Tempting Wurm
- Several related AI hint fixes (cards in hand don't have a controller set)

* - Implement AI logic for Grothama, All-Devouring.

* - AI shouldn't fight its own Grothama for card draw (leads to silly results).

* - Attempt two at fixing Elderscale Wurm damage preditions.

* - Improve banding AI so that the AI knows how to tank damage from Trample when the other possibility is multiple chump blockers.

* - Clean up

* - Attempt to defer checking for "...as if it were unblocked" static until after the Banding blocker(s) are assigned.
- Clean up

* - Clean up
2023-07-06 18:01:59 +03:00
Anthony Calosa
bfd93368be Merge pull request #3394 from Agetian/ai-banding
Basic AI logic for Banding / Bands with Other
2023-07-06 05:33:17 +08:00
Agetian
bac3b7751d - Restore the NPE guard for bestAttacker 2023-07-05 20:30:54 +03:00
TRT
0f61fb97c6 Clean up 2023-07-05 10:55:21 +02:00
Anthony Calosa
1ad21f0e1a Merge pull request #3386 from tool4ever/exileobject2
Exiled card becomes new object when it's exiled
2023-07-05 16:16:19 +08:00
Agetian
8cd9d9d79b - Remove unused parameter 2023-07-05 07:51:20 +03:00
tool4ever
3d64308d31 Fix cheating when paying hybrid shards with combo abilities (#3402)
* Clean up

* Fix cheating when paying hybrid shards with combo abilities

* Fix script

---------

Co-authored-by: tool4EvEr <tool4EvEr@192.168.0.59>
2023-07-05 07:09:10 +03:00
Agetian
05b33448a4 - Unnecessary null check 2023-07-05 07:06:32 +03:00
tool4EvEr
ddecc4226d Only return subset of potential attackers based on current declaration 2023-07-04 23:29:49 +02:00
Agetian
ee65cb64e6 - Implemented suggested optimizations. 2023-07-04 22:35:05 +03:00
Agetian
25323941e0 - Do not try to add Banding to something that will attack by itself, the AI is poor at predicting that (will miss the Banding opportunity).
- Curse prop not needed on AF Debuff.
2023-07-04 22:28:09 +03:00
Agetian
6aa3938144 - Enable more Banding cards for the AI. 2023-07-04 20:22:04 +03:00
Agetian
54acfaff2c - Add AI support for Banding-granting cards 2023-07-04 20:07:54 +03:00
Agetian
75c43fd0f7 - Slightly more sensible banding for 0-power creatures when attacking. 2023-07-04 13:00:30 +03:00
Agetian
435dfd1486 - Some tweaks. Banding with Protection is actually a good thing (the AI correctly dumps damage into protected creatures). 2023-07-04 12:29:13 +03:00
Anthony Calosa
60d79b4374 prevent NPE 2023-07-04 06:43:04 +08:00
Agetian
13a19a1749 - Fix NPE.
- Switch isValidBand to using a CardCollection(View).
2023-07-03 17:41:45 +03:00
Agetian
a033353167 - Grab a sublist instead of using a cast. 2023-07-03 14:03:39 +03:00
Agetian
d74cb11d47 - Fix imports. 2023-07-03 13:52:57 +03:00
Agetian
67fa8afdba - Minor style fix. 2023-07-03 13:51:23 +03:00
Agetian
9a97545161 - Minor style fix. 2023-07-03 13:50:01 +03:00
Agetian
60e9f9f814 - Minor style fix. 2023-07-03 13:49:11 +03:00
Agetian
a4cfddd3c4 - Convert to isValidBand to avoid code duplication 2023-07-03 13:46:45 +03:00
Agetian
5f16f658a9 - Don't assign more damage than possible 2023-07-03 13:34:55 +03:00
Agetian
e3735d2df3 - Comment tweak 2023-07-03 09:35:21 +03:00
Agetian
b3f6c3c427 - Remove a TODO. 2023-07-03 09:25:51 +03:00
Agetian
823f317b28 - Better variable name. 2023-07-03 08:26:50 +03:00
Agetian
f7f4106518 - Improved check for whether a banding attacker can attack the specified defender.
- Implement distribution of damage when the AI's band is blocked.
2023-07-03 08:24:12 +03:00
Agetian
de64bbc245 - Minor optimization. 2023-07-03 07:46:07 +03:00
Agetian
eb814b91e0 - Respect global attack constraints. 2023-07-03 07:38:17 +03:00