Commit Graph

2908 Commits

Author SHA1 Message Date
Agetian
bbe04e61ea - Simplified the code for displaying the Remembered cards. Already takes care of face-down cards (only shows their hidden ID, not their ordinary ID), and does it in a better way, displaying the hidden ID so that it's possible to track effects of cards such as Windbrisk Heights to their remembered face-down card in exile. 2017-07-18 03:29:42 +00:00
Hanmac
45a262780c GameAction: reset manifested cards back to normal if they are prevented 2017-07-17 20:31:27 +00:00
Hanmac
3793398741 AbilityUtils: add Maxto param which does max the calculated variable to zero (X cant be below 0)
PumpEffect & PumpAllEffect: use the new param there
2017-07-16 15:12:35 +00:00
swordshine
bf072a831f - C17: Added 4 cards 2017-07-15 13:45:01 +00:00
Agetian
bbfa486cd7 - TargetRestrictions: correctly process validTgts definitions such as Zombie.attacking for the purpose of canTgtCreature. Fixes, for instance, the AI using Accursed Horde to give indestructible to opponent's attacking zombies. 2017-07-15 04:29:27 +00:00
Agetian
ea4f8b67f2 - Unfortunately, have to revert r34731 - breaks mobile Forge (at least when running on desktop, e.g. for debugging purposes, but quite possibly on Android itself as well) and does not allow to cast anything from hand at all, making the single click on a card function as a selection (but not allowing to actually cast the spell). 2017-07-13 20:08:47 +00:00
Hanmac
690dba8549 TokenEffect: make the Kalitas + Anointed Possession working 2017-07-13 17:07:20 +00:00
Hanmac
02ba6bc889 ReplaceMoved: add Cause into params for SA 2017-07-13 17:03:02 +00:00
Hanmac
d7a0e7c674 SpellAbility: add hasReplacingObject 2017-07-13 17:01:53 +00:00
Agetian
d7ea4cdf6a - NPE prevention for RememberMap in Card. 2017-07-13 06:32:29 +00:00
Hanmac
ce1e17acde Cost now has better canPay and cost Parts now can differ between activator and payer of the cost 2017-07-13 05:05:05 +00:00
Myrd
1d3f91fb9c Switch game thread executor to be a single-thread
executor instead, of a thread pool. This is needed
because when things need to execute on the game
thread, it's not thread safe so only one such thing
should be executing at a time.

This should fix ConcurrentModificationException
from CardAreaPanel.selectCard() on mobile.

This is a reland of r34680 with a fix for being able
to run tasks on the game thread while waiting for input
from the user. Specifically, tested paying costs and
using the dev panel, but should work with anything that
schedules tasks via GameAction.invoke().
2017-07-13 05:03:34 +00:00
Hanmac
7bc6761502 CardPredicates: add sharesCreatureTypeWith 2017-07-13 05:00:53 +00:00
Hanmac
a5a2d646f4 CardPredicates: add canReceiveCounters 2017-07-13 04:52:52 +00:00
Agetian
6f7546eedf - Use TextUtil.join instead of String.join for Monstrosity (breaks on Android with the current API we're targeting). 2017-07-11 17:59:55 +00:00
Agetian
3a477ae24b - FightEffect: damage should be dealt simultaneously (e.g. Hero of Iroas vs. Cystbearer fighting via Dromoka's Command giving a +1/+1 counter to Iroas should still make Hero of Iroas deal 4 damage). 2017-07-10 18:04:31 +00:00
Agetian
c7eb8359e0 - Only face down split cards should have an alternate state to show via the "transform arrows". 2017-07-10 12:30:46 +00:00
Hanmac
779ef1e0d1 fix CostAdjustment 2017-07-09 12:43:56 +00:00
Hanmac
4d1805fb27 CardFactory: Monstrosity: add ReduceCost param 2017-07-09 08:49:28 +00:00
Hanmac
c24476db9c CostAdjustment: add RaiseCost and ReduceCost also add ValidSpell 2017-07-09 08:48:20 +00:00
Hanmac
4c9f84602e SpellAbility: hasProperty add more properties 2017-07-09 08:46:59 +00:00
Blacksmith
ffb1cddff4 [maven-release-plugin] prepare for next development iteration 2017-07-08 18:41:58 +00:00
Blacksmith
95bd589291 [maven-release-plugin] prepare release forge-1.6.0 2017-07-08 18:41:48 +00:00
Hanmac
829a9eccde Card: hasProperty: extend some Ctrl properties to work with Own too 2017-07-08 15:57:20 +00:00
Hanmac
5b1c9d6de4 ReplaceMoved: add Cause and NotCause parameter 2017-07-08 04:48:12 +00:00
Hanmac
a80902ae4d SpellAbility: add Cycling to hasProperty 2017-07-08 04:38:49 +00:00
Hanmac
0db00666d1 Card: fixed addEtbCounter 2017-07-08 04:14:40 +00:00
Hanmac
c04bae00d0 Card: EtbCounters now use a Table to store what the cause of the etb counter was, for something which does care about that 2017-07-07 18:30:29 +00:00
Agetian
3b47418826 - Imports fix. 2017-07-07 16:34:34 +00:00
Agetian
4c2b35c488 - Added a runtime parameter to TriggerCountered that contains the spell ability that was countered (for use in cards that care whether the countered SA is a spell or an ability). 2017-07-07 16:33:10 +00:00
Hanmac
eaadc8e09c ChangeZoneEffect: WithCounters should be go throuh etbCounter function 2017-07-07 16:25:37 +00:00
Hanmac
458642977c CardFactoryUtil: allow FullCost to have Param for AILogic 2017-07-07 05:46:27 +00:00
Hanmac
ff071e1374 Card: add Extra Cost into getAbilityText for Permanent 2017-07-06 18:04:15 +00:00
Hanmac
c581531cff GameAction: fix ETB counters with Solemnity 2017-07-06 08:45:07 +00:00
Hanmac
506a15f839 MeldEffect: add the Exile parts into MeldEffect 2017-07-05 21:16:36 +00:00
Hanmac
b5514c014f Card: add MeldWith info into getAbilityText 2017-07-05 21:13:51 +00:00
Agetian
e6b762b6b7 - Added code support for shared keywords to AF Pump (needed for Majestic Myriarch). 2017-07-05 04:40:39 +00:00
Hanmac
ee0845ab3c CardFactory: fixed makeToken and Keywords 2017-07-04 15:20:07 +00:00
Hanmac
f338aa1f80 Card: for MayEffectFromOpeningHand, look for the SpellDescription directly 2017-07-04 09:08:10 +00:00
Hanmac
8802eea032 GameAction: fixed unlikey equals 2017-07-04 08:57:16 +00:00
Agetian
54e3d48d47 - NPE prevention in SacrificeEffect. 2017-07-03 19:04:20 +00:00
Agetian
8bedbfa853 - Fixed ReplaceDyingCondition mistype causing Scorching Lava not to work correctly. 2017-07-03 03:57:11 +00:00
Agetian
ae1f9d9ca8 - NPE prevention when trying to add KW Alternative Cost to a card with no spell abilities (e.g. a Vanguard avatar). 2017-07-02 12:49:04 +00:00
Agetian
9fe7ee457a - Removed an extra empty line. 2017-07-02 04:30:51 +00:00
Agetian
14d2b8ae61 - Fixed Unequip triggers triggering twice. 2017-07-02 04:30:15 +00:00
swordshine
6c104d2751 - Fixed Vizier of the Anointed 2017-07-01 09:39:36 +00:00
swordshine
497b8cb215 - Crew triggers when it's activated 2017-07-01 05:43:36 +00:00
swordshine
538df24c9b - HOU: Added Overwhelming Splendor 2017-06-30 11:17:36 +00:00
Agetian
70df2d2d97 - Removing a temporary experimental check in Spell.java that does nothing. 2017-06-30 07:12:31 +00:00
Agetian
986f95b46b - Attempting to fix Suspend by making it exempt from the canPlay() check in HumanPlay.
- Better place for IsCastFromPlayEffect SVar assignment + cleanup
- Adding some previously missed card fixes from Marek.
2017-06-30 07:11:56 +00:00