Commit Graph

1768 Commits

Author SHA1 Message Date
Hanmac
f4c3975e75 StaticAbilityContinuous: Player now can get StaticAblilities 2016-08-13 10:26:07 +00:00
Hanmac
c3b66dd8f2 GameAction: when Temporary Abilities are cleared, clear the Player ones too 2016-08-13 10:24:18 +00:00
Hanmac
6c27b0ed09 StaticAbility: fixed Layer, AddStaticAbility need to be Ability2 and IgnoreEffectCost need to be Rules 2016-08-13 10:23:07 +00:00
Hanmac
c67caaffa5 Player: add way to add StaticAbilities to Player over a hidden DetachedCardEffect 2016-08-13 10:21:43 +00:00
Hanmac
66e16ed6ae SpellAbilityRestriction: should fix problem with MayPlay and others 2016-08-12 18:52:47 +00:00
Hanmac
6fa7c5b291 CardFactoryUtil: add Presence to Count$ 2016-08-12 16:11:46 +00:00
Hanmac
b5d2e7a62e StaticAbility: add Presence condition too
StaticAbility should use Common checks from CardTraitBase
2016-08-12 15:57:28 +00:00
Hanmac
89d4c41267 CardTraitBase: add Presence for DragonPresence cards, coded flexible for type change 2016-08-12 15:53:59 +00:00
Hanmac
411d23a3a4 GameAction: reset CastSA when its moved somewhere else 2016-08-12 15:42:27 +00:00
Hanmac
597a705e0a AbilityUtils: use LastStateBattlefield instead of Soulshift 2016-08-12 15:41:30 +00:00
Hanmac
ac880166ce CardFactoryUtil: add Presence as Keyword, it now just is a special Kicker
add Count$LastStateBattlefield
2016-08-12 15:40:39 +00:00
Hanmac
23d628eac8 CardUtil: add Presence to modifiable Keywords 2016-08-12 15:38:18 +00:00
Hanmac
04db9ebce5 CardFactory: copy castSA 2016-08-12 15:37:08 +00:00
Hanmac
ea7255254d MagicStack: create a copy of the Battlefield when the Stack is empty 2016-08-12 15:35:41 +00:00
Hanmac
ca4d5adc5d Card: add CastSA that will be used to have infomation what SpellAbility was used to cast this card 2016-08-12 15:33:12 +00:00
Hanmac
46a17d3a7f Keyword: add DragonPresence as Keyword 2016-08-12 15:25:08 +00:00
Hanmac
2aba133c3c Cost: should not add Zero ManaCost 2016-08-12 09:00:46 +00:00
Hanmac
b2f1b012ea SpellAbilityRestriction: fixed MayPlay blocking other optional costs 2016-08-12 08:56:13 +00:00
Hanmac
26e9f880b4 Spell: the check if Bestow has Flash should only happed if the card is not already Bestowed 2016-08-12 07:18:35 +00:00
Hanmac
e2d9001b66 SpellAbility: add MayPlayOriginal, it does store the original SpellAbility
GameActionUtil: when creating MayPlay copies, set the original
MagicStack: when having a MayPlay copy, set the TotalManaSpent for the original too.
2016-08-12 06:54:00 +00:00
Hanmac
33e482584b CopySpellAbilityEffect: extend CopyForEachCanTarget that it can copy for players too 2016-08-11 15:21:29 +00:00
Hanmac
20af5a070a Player: add wasDealtCombatDamageThisCombatBy 2016-08-11 07:42:27 +00:00
Hanmac
c89505a372 Card: add dealtCombatDamageThisCombat 2016-08-11 07:40:41 +00:00
Hanmac
e3d1a2a580 CardDamageHistory: add getThisCombatDamaged 2016-08-11 07:39:53 +00:00
Hanmac
8fcfba9e03 Card: fixed notDealtCombatDamageThisTurn 2016-08-10 15:17:29 +00:00
Hanmac
ca72abc65c Card: add notDealtCombatDamageThisTurn as negation 2016-08-10 15:02:31 +00:00
Hanmac
a0678fc944 CardDamageHistory & Combat: add logic so it does register CombatDamage dealt between creatures
Card: add dealtCombatDamageThisTurn <valid> for better checking if Card dealt combat damage to something this turn
2016-08-10 14:11:43 +00:00
Hanmac
83d23fdabf CardFactoryUtil: Poisonous now doing as Keyword over factory
GameActionUtil: remove executeCombatDamageToPlayerEffects, because not needed anymore
2016-08-10 12:23:18 +00:00
Hanmac
04267311f1 CardDamageHistory: now has Damage history for GameEntity instead of only Player 2016-08-10 12:19:06 +00:00
Hanmac
afbb901236 AbilityUtils: add logic for xPaid in Spellabilities when OriginalHost is not null 2016-08-10 05:46:07 +00:00
Hanmac
0181b9c859 CloneEffect: setOriginalHost for SpellAbilities and ReplacementEffects 2016-08-10 05:38:39 +00:00
Hanmac
5a033d066f CardFactoryUtil: createETBReplacement mixed up parameters for secondary and intrinsic in ETBReplacement 2016-08-10 05:36:45 +00:00
Hanmac
4cb35e7754 TriggerHandler: corner the special case where the ChangesZone Trigger should be active
only if its a dies (Battlefield -> Graveyard) trigger.
2016-08-09 15:23:52 +00:00
Hanmac
d2a7a4c025 Combat: dealAssignedDamage: add copyLastStateBattlefield before the assignedDamage is dealt 2016-08-09 14:41:40 +00:00
Hanmac
84c4725c9d CardFactoryUtil: update code for Soulshift,
also fixed Kodama of the Center Tree
2016-08-09 14:39:47 +00:00
Hanmac
a7ddddb817 AbilityUtils: add special Soulshift for xCount similar than Valid but, it does check the LastStateBattlefield
(might be named more generic)
2016-08-09 14:36:53 +00:00
Hanmac
8f2648afe0 TriggerHandler: SpellAbility and WrappedAbility gets LastStateBattlefield set
also for the check if a Trigger is active:
if it's a ChangeZone Trigger only valid on the Battlefield and the card was on the battlefield before,
but now its not, the trigger is still active for the moment
2016-08-09 14:33:40 +00:00
Hanmac
bc8dc7f2b1 SpellAbility: add LastStateBattlefield to get the info of the battlefield before this was put on the stack 2016-08-09 14:30:27 +00:00
Hanmac
7cf1700218 MagicStack: before ability resolves, copyLastStateBattlefield 2016-08-09 14:26:33 +00:00
Hanmac
99a69107ba Game: add getLastStateBattlefield it does store the cards which where on the battlefield for a given moment 2016-08-09 14:24:06 +00:00
Hanmac
5d322f1bd7 TriggerReplacementBase: add getActiveZone to make it visible 2016-08-09 14:21:51 +00:00
Hanmac
27b5eb2103 SpellAbilityStackInstance: don't save SVars for wrapped abilities 2016-08-09 14:12:35 +00:00
Hanmac
4e37501912 SpellAbility & WrappedAbility: overwride getSVar for WrappedAbility to access it later 2016-08-09 10:03:40 +00:00
Hanmac
577784040b Zone: add getLKICopy to get a copy of that zone 2016-08-09 09:58:05 +00:00
Hanmac
2567ed40fe KeywordWithAmount: fixed adding extra to string 2016-08-09 09:57:03 +00:00
Hanmac
e52b6c065a CardFactory: fixed RollPlanarDice with unorthodox way 2016-08-07 15:43:12 +00:00
Hanmac
3c823ffa4a CardFactory: use PlanarDiceCostX because it does colide with other cards 2016-08-07 15:00:23 +00:00
Hanmac
1af0477d1d Spell: remove unused Includes 2016-08-07 10:21:09 +00:00
Hanmac
781150c5cd Spell: Bestow only with Flash if the Aura Part has Flash instead of only the Creature 2016-08-07 10:20:13 +00:00
Hanmac
3119deefa2 Spell: apply special ruling that you can cast a Bestow spell if you can cast an Aura for Flash 2016-08-07 09:27:04 +00:00