Commit Graph

3060 Commits

Author SHA1 Message Date
Hanmac
e9c02edfae DamageMap: use DamageMap for RepeatEach cards and similar 2018-03-14 07:15:02 +01:00
Luke Way
572ecef291 Tabs to spaces 2018-03-12 21:06:05 -04:00
Luke Way
ce99b1093a -- Statically initialize value lookup map. This avoids problems when running simulations in multiple threads.
-- Replace Maps.newTreeMap with new HashMap<>().  newTreeMap is not necessary in Java 7+, and there's no need for a tree map here.
2018-03-12 13:38:46 -04:00
Luke Way
7be473f99d Convert sysout to game log 2018-03-12 12:58:29 -04:00
swordshine
2120d4493e - DOM: Added Tiana, Ship's Caretaker 2018-03-12 09:51:14 +08:00
swordshine
57c9c2fe90 - Fixed Firesong and Sunspeaker: the trigger should check the root spellability
- FIXME: forge.game.card.CardDamageMap.triggerDamageDoneOnce(boolean) should add the source spellability to fix spells with Lifelink
2018-03-12 09:32:39 +08:00
swordshine
0251d5776e - DOM: Fixed Firesong and Sunspeaker so cycling Renewed Faith wouldn't trigger it 2018-03-12 09:10:18 +08:00
swordshine
7b837b4468 - DOM: Added a few cards 2018-03-11 23:23:29 +08:00
swordshine
67064b3275 - DOM: Added Oath of Teferi 2018-03-11 20:16:13 +08:00
swordshine
b560df49a3 - DOM: Added Firesong and Sunspeaker 2018-03-11 18:23:47 +08:00
swordshine
23fcaaf5d0 - DOM: Added Darigaaz Reincarnated 2018-03-11 13:19:46 +08:00
swordshine
cd9702fd03 - DOM: Added Karn, Scion of Urza, Jhoira's Familiar, Jodah, Archmage Eternal, Mishra's Self-Replicator, and Mox Amber 2018-03-11 11:59:27 +08:00
swordshine
c249ed5f9f - DOM: Added "Legendary Sorcery" Urza's Ruinous Blast 2018-03-10 22:29:26 +08:00
swordshine
795c071e64 - DOM: Added Evra, Halcyon Witness 2018-03-10 18:05:40 +08:00
swordshine
2f57a39fcc - DOM: added "Historic" and Jhoira, Weatherlight Captain 2018-03-10 15:04:31 +08:00
Agetian
50a551f875 - A quick fix for ReplacementEffect hasRun on copied REs. 2018-03-08 22:21:12 +03:00
Hanmac
d9df1243b6 mark effect as final 2018-03-07 07:04:57 +01:00
Hanmac
b88365e475 SpellAbility fixed some changes 2018-03-07 07:04:00 +01:00
Hanmac
c5c3591471 TokenEffect: use sa instead of root 2018-03-06 22:11:35 +01:00
Hanmac
a47c3cf004 SetStateEffect: check for StoredTransform svar 2018-03-06 22:11:22 +01:00
Hanmac
59063bc194 CardTraitBase: use GameObject so it works with SpellAbility too 2018-03-06 22:08:27 +01:00
Hanmac
2e33b3162c AbilityUtils: fixed getSpellAbilities if sa is null 2018-03-06 22:07:53 +01:00
Hanmac
1e7755b877 CloneEffect: setOriginalHost instead of setHostCard 2018-03-06 22:06:44 +01:00
Hanmac
7b8e92ace2 CardFactoryUtil: use AdditionalAbilityList with better check for Fabricate 2018-03-06 22:06:24 +01:00
Hanmac
e25247d0e5 SpellAbility: add IsTargeting property, fixed additional abilities for clone 2018-03-06 22:03:00 +01:00
Hanmac
93dc3338c1 SpellAbility: isValid check for root 2018-03-06 22:01:51 +01:00
Sol
90d9c45134 Merge branch 'multiplayer' into 'master'
Multiplayer

Closes #157

See merge request core-developers/forge!262
2018-03-01 03:12:26 +00:00
Chris H
9a6f407a6d Fix NPE for Tokens created by Liliana the Last Hope 2018-02-28 21:09:27 -05:00
Jamin W. Collins
26c0df6e05 network play: fix for Commander and Tiny Leaders variants
This method is called numerous times, many before the Commander data has
been populated on the PlayerView objects.  This is reflected a few lines
above where similar logic is applied to the current PlayerView.  This
simply applies similar logic to the player's opponents.

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
2018-02-28 18:24:19 -07:00
austinio7116
d05e1e59dc Merge branch 'token_scripts' into 'master'
Allow scripts to be written for Tokens

See merge request core-developers/forge!236
2018-02-27 22:14:13 +00:00
Hanmac
6bb9dd1028 CardState: fixed copy with keywordcache 2018-02-26 07:20:51 +01:00
Blacksmith
d6278541dd Clear out release files in preparation for next release 2018-02-25 22:55:10 +00:00
Blacksmith
5977598c71 [maven-release-plugin] prepare for next development iteration 2018-02-25 22:49:44 +00:00
Blacksmith
35706d71f7 [maven-release-plugin] prepare release forge-1.6.7 2018-02-25 22:49:41 +00:00
Blacksmith
c38f0900d1 Update README.txt for release 2018-02-25 22:48:23 +00:00
Jamin W. Collins
9fb556f180 add Serialization to Cost objects
Resolves forge/#160

Signed-off-by: Jamin W. Collins <jamin.collins@gmail.com>
2018-02-24 14:02:09 -07:00
Hanmac
b25bc72f3e CardFactory: fixed keywords for SplitCards 2018-02-19 21:37:16 +01:00
tehdiplomat
6ca1269261 Add ability to load tokens via scripts before 2018-02-19 13:15:12 -05:00
Chris H
d374da0481 Refactor TokenEffect to be easier to add in TokenScripts 2018-02-19 13:15:12 -05:00
Hanmac
96d1777132 ChangeZoneEffect: it should Fizzle when removing to Command zone too 2018-02-18 20:58:12 +01:00
Michael Kamensky
dd7e2d933f Merge branch 'DumpTurn' into 'master'
Dump/Setup game state will now save current game turn.

See merge request core-developers/forge!209
2018-02-18 19:39:22 +00:00
Michael Kamensky
275e1be6be Revert "Merge branch 'Guavafix' into 'master'"
This reverts merge request !217
2018-02-18 18:54:20 +00:00
Seravy
c18924a350 Removed the newline. :( 2018-02-18 19:41:26 +01:00
Hanmac
0c005bb3ff Commander: CommanderTax now is on the Player who casted the Commander 2018-02-18 18:47:59 +01:00
Hanmac
57b9a1b4c7 SpellAbility: copy manaPart 2018-02-18 18:07:41 +01:00
Hanmac
b29b1b3630 CardState: fixed copyState and LKI 2018-02-18 18:06:38 +01:00
Michael Kamensky
f5e095f345 Merge branch 'cantblock' into 'master'
CantBlockBy as Static Ability

See merge request core-developers/forge!218
2018-02-18 08:05:59 +00:00
Michael Kamensky
a9e15c2d33 Merge branch 'Guavafix' into 'master'
The guava fix

See merge request core-developers/forge!217
2018-02-18 07:17:15 +00:00
Seravy
4cb140512a AI and autopayments now work correctly with Reflecting Pool.
When the player has to pick colors, it'll always use the menu for consistency, instead of using the side panel for choices between 2 colors and the menu for 3+.
2018-02-17 19:53:23 +01:00
Seravy
bb27eab819 Merge branch 'Guavafix' 2018-02-17 16:53:49 +01:00