Commit Graph

3292 Commits

Author SHA1 Message Date
Hans Mackowiak
d8f010d54a DestroyAI: better logic for Pongify also Update for X 2020-12-25 23:23:06 +01:00
Michael Kamensky
e02b6b7264 Merge branch '1659-npe-at-forge-game-ability-abilityutils-getdefinedplayers-abilityutils-java-1084' into 'master'
CostRemoveCounter + CostRemoveAnyCounter: refactor remove X counters from something you control

Closes #1385 and #1660

See merge request core-developers/forge!3506
2020-12-23 08:05:26 +00:00
Hans Mackowiak
bbf788594f CostRemoveCounter + CostRemoveAnyCounter: refactor remove X counters from something you control 2020-12-23 08:05:26 +00:00
Hans Mackowiak
e801ff94e5 AnimateAi: fix mandatory needs to use getTargetableCards 2020-12-19 08:50:21 +01:00
Hans Mackowiak
cb6f4c1431 IHasSVars interface to connect CardTraitBase -> Card -> CardState 2020-12-18 21:36:59 +01:00
Michael Kamensky
04ccb1d106 - Fix imports. 2020-12-08 10:57:34 +03:00
Michael Kamensky
63beb045f9 - Basic AI logic components for Raiding Party. 2020-12-08 10:51:39 +03:00
Hans Mackowiak
1da617424f ChangeZoneAi: fix AI if no Origin Zone, use zones from TargetRestrictions 2020-12-05 17:25:08 +01:00
Hans Mackowiak
f8996d8853 AiController: only temporally set LastState for checking, and reset later 2020-12-02 18:26:50 +01:00
Hans Mackowiak
b74bbf1801 SpellAbility: remove the need to store mayPlayOriginal 2020-12-02 11:17:22 +01:00
Sol
6c9f9a4d6c Merge branch 'playerControllerGameMemory' into 'master'
GameView: do not store Game anymore, get it from Match

Closes #1650

See merge request core-developers/forge!3457
2020-12-01 01:40:04 +00:00
Hans Mackowiak
0b262ef773 SpellAbility: fix SpellAbilityPickerTest 2020-11-30 13:50:28 +01:00
Anthony Calosa
e3e047d0b2 Unused import 2020-11-30 20:01:56 +08:00
Hans Mackowiak
49e7f20a41 WithFlash: refactor into Static 2020-11-30 10:50:15 +00:00
Michael Kamensky
aecd72b2d1 - Fix a logic error causing the AI to bounce lands like Dimir Aqueduct back to hand. 2020-11-30 08:24:46 +03:00
Hans Mackowiak
88c017f962 GameView: do not store Game anymore, get it from Match 2020-11-29 11:18:58 +01:00
Hans Mackowiak
70e75bde91 PlayerControllerAI: fix trigger shouldn't be added to stack if target is invalid 2020-11-29 09:47:03 +01:00
Hans Mackowiak
ab0331cd6e SpellAbility: moved ManaSpent from Card into CastSA 2020-11-28 11:44:24 +01:00
Northmoc
8abb8e784d Double agenda - Summoner's Bond! 2020-11-27 15:53:12 -05:00
Anthony Calosa
6810e7bc04 Prevent NPE 2020-11-27 12:44:33 +08:00
Michael Kamensky
b90a377fef Merge branch 'pako-haldan' into 'master'
C20: Pako & Haldan play fetch!!

Closes #1365

See merge request core-developers/forge!2729
2020-11-22 12:29:57 +00:00
Tim Mocny
757c9208d9 C20: Pako & Haldan play fetch!! 2020-11-22 12:29:56 +00:00
Hans Mackowiak
ba37bf2312 PlayerController: fix copy activated abilities 2020-11-22 12:18:13 +01:00
Hans Mackowiak
3ee6dae070 fix missmatching equals type 2020-11-19 11:51:58 +01:00
Hans Mackowiak
f4df565e55 CombatUtil: turn 'can attack as if Haste' into Static Ability check 2020-11-16 21:16:44 +01:00
Northmoc
8f4fbcf805 HighestLoseLife AI support 2020-11-13 10:35:49 -05:00
Hans Mackowiak
5a8429351b RunChaos: better effect for Pools of Becoming 2020-11-09 08:43:05 +01:00
Hans Mackowiak
460960123e AnimateEffect: combine into the BaseEffect, remove not needed RemoveIntrinsicAbilities 2020-11-08 15:50:09 +00:00
Hans Mackowiak
71348b7317 TargetChoices extend ForwardingList 2020-11-08 10:48:01 +01:00
Hans Mackowiak
386260ea0d fix spell ability copies only on stack when spells 2020-11-05 20:22:32 +01:00
Hans Mackowiak
9b040b063b - DelayedTriggerAi: port over AILogic NarsetRebound and SpellCopy (the latter doesn't quite work yet and the spell somehow magically fizzles with no trace). 2020-11-04 08:56:41 +00:00
Michael Kamensky
b702819baf - Add an AI property to get rid of opposing curse auras with Hexproof/Shroud/Protection 2020-11-01 12:01:48 +03:00
Michael Kamensky
a0a909d04c - Don't add a null card to target in animateTgtAi 2020-10-14 23:18:36 +03:00
Michael Kamensky
0ba785bf11 - Fix a NPE in AnimateAi and CardFactoryUtil. 2020-10-14 07:27:41 +03:00
Michael Kamensky
e715b666f3 Merge branch 'witchs-vengenance' into 'master'
Improved AnimateAI for Clan Guildmage

See merge request core-developers/forge!3234
2020-10-06 06:17:53 +00:00
Michael Kamensky
b1080d8e4d - Improve AnimateAi for Clan Guildmage. 2020-10-06 09:14:56 +03:00
Michael Kamensky
fb16232c9f Merge branch '1605-6-broken-tests-as-of-10-04-2020' into 'master'
Resolve "6 Broken Tests as of 10/04/2020"

Closes #1605

See merge request core-developers/forge!3231
2020-10-05 06:46:22 +00:00
Hans Mackowiak
011a5dddeb CardType: add flag to show when its used incomplete in Animate Effects 2020-10-05 08:07:18 +02:00
Michael Kamensky
5af2bbbc81 - Remove unused imports. 2020-10-05 07:32:40 +03:00
Michael Kamensky
3ce3d70c62 - Basic Witch's Vengeance AI, some refactoring in ChooseTypeAi. 2020-10-05 07:30:57 +03:00
Hans Mackowiak
5854a2ff36 GUI: make many call getChoices and not order 2020-10-03 08:29:57 +02:00
Michael Kamensky
b2adfd4a02 Merge branch '1577-znr-charm-effect-tweaks' into 'master'
Resolve "ZNR: Charm Effect tweaks"

Closes #1562, #1570, and #1577

See merge request core-developers/forge!3197
2020-10-01 05:02:41 +00:00
Hans Mackowiak
daf70f7e60 Resolve "ZNR: Charm Effect tweaks" 2020-10-01 05:02:41 +00:00
Anthony Calosa
5be73af7e9 Fix GenericChoice UI 2020-09-30 21:26:06 +08:00
Hans Mackowiak
c8d69cbbb9 Resolve "ZNR: Modal Double Faced Cards" 2020-09-14 19:13:54 +00:00
Michael Kamensky
3bc2cde046 - Fix the AI killing itself with Mystic Forge.
- The AI shouldn't miss the NameCard trigger. However, there's no meaningful AI logic yet, so the AI will just name a random thing for now.
2020-08-27 07:38:49 +03:00
Michael Kamensky
f9e86bbe8c - Handle AI equipping creatures in Main 2 by way of prioritizing spells instead of hard-locking it. 2020-08-19 09:53:58 +03:00
Michael Kamensky
9630786fa6 - Basic Balan, Wandering Knight AI logic 2020-08-14 20:20:31 +03:00
Michael Kamensky
5fd74c53c9 - Various AI flags and improvements. 2020-08-13 13:34:03 +03:00
Michael Kamensky
4a97e593e9 - Fix NPE in the Unless cost AI. 2020-08-04 21:09:09 +03:00