Commit Graph

2240 Commits

Author SHA1 Message Date
Hanmac
a2af4ced63 CardFactoryUtil: abilityMorphDown fixed ability for Morph cards 2016-08-25 13:59:12 +00:00
Hanmac
453c1e7f9f add Goad Effect, add it to AttackRequirement and CombatUtil
also add it to Ai logic
2016-08-25 12:15:54 +00:00
Hanmac
41735176f6 CardFactoryUtil: add Melee as Keyword 2016-08-23 16:56:19 +00:00
Hanmac
317e9d3a4f AbilityUtils: add TriggeredPlayers to work with a List of Player objects 2016-08-23 16:54:21 +00:00
Hanmac
8f75c1070f CombatUtil & TriggerAttacks: add all Defenders as Triggered Object 2016-08-23 16:52:57 +00:00
Hanmac
d4f31e10dd CardFactoryUtil: move Provoke to addTriggerAbility 2016-08-22 14:44:29 +00:00
swordshine
78b6e11ec2 - CN2: Fix Monarch's draw trigger 2016-08-21 14:24:49 +00:00
Hanmac
2fb4a314cf Game & GameAction & Player: add Monarch into Forge
that add a new BecomeMonarchEffect and a TriggerBecomeMonarch
Player has a new Property "isMonarch"
2016-08-21 09:23:15 +00:00
Hanmac
8050bfe391 CardFactoryUtil: "Alternative Cost" only works for non-Lands 2016-08-20 08:24:02 +00:00
Hanmac
638f50d160 ChangeZoneEffect: add only if OriginZone is not null 2016-08-18 15:52:49 +00:00
Hanmac
b65a16acf2 ChooseName now uses ICardFaces for selecting a CardName.
that now makes it working for naming an alternate state of a card.
2016-08-18 08:29:11 +00:00
Hanmac
157c20a82b Card: extended logic for sharesNameWith to be used with Strings to use it with NamedCard 2016-08-18 08:22:07 +00:00
swordshine
1cfdb0aa0c - CN2: Added Kaya, Ghost Assassin and Capital Punishment 2016-08-16 12:20:00 +00:00
Hanmac
8cc647bb93 TriggerSacrificed & Player: add Player Param because it might differ from the (original) controller of the card,
while copying does not seems to copy control effects too.
2016-08-16 10:30:11 +00:00
Hanmac
7b8563516c TriggerHandler & TriggerWaiting: updated trigger for subabilities and waiting Trigger should look for the events they should trigger.
that does fix the problem with subabilities and changeZone Triggers (no need to check for LastStateBattlefield)
2016-08-15 08:03:33 +00:00
Hanmac
7ab1812ea8 AbilityUtils: add LastStateGraveyard and add both to CardFactoryUtil to work without SpellAbility 2016-08-14 09:02:07 +00:00
Hanmac
97d05b830c Game: update copyLastStateBattlefield to copyLastState 2016-08-14 09:00:03 +00:00
Hanmac
db520bd7eb SpellAbility: add LastStateGraveyard
updated TriggerHandler and MagicStack
add it to ReplacementHandler too
2016-08-14 08:59:17 +00:00
Hanmac
444b01ce8f Player: fixed BloodThrist also counting LostPlayers
also make Ferocious shorter using filterPower
2016-08-14 08:51:41 +00:00
Hanmac
1c00fdb204 PhaseHandler: clearAssignedDamage for LostPlayers too 2016-08-14 08:47:39 +00:00
Hanmac
f1b5502649 Game: add LastStateGraveyard (that is for something when its returned from the graveyard while counting itself)
also add getLostPlayers to clearup Damage of them after they lost
2016-08-14 08:46:21 +00:00
Hanmac
5af5cb61c0 Player: fixed Name of StaticAbility Effect 2016-08-13 10:27:40 +00:00
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