Commit graph

1146 commits

Author SHA1 Message Date
magenoxx
15527b8984 fixed fizzle for multi targets 2012-05-18 18:08:00 +04:00
magenoxx
cf6d9d8ac4 upkeep ability targeting fix 2012-05-18 16:00:40 +04:00
magenoxx
275142a143 [AVR] 32 cards. Tests. Common effects. Fixes. 2012-05-18 00:19:43 +04:00
magenoxx
8759b6de33 [AVR] 13 cards with Soulbond 2012-05-17 15:20:21 +04:00
magenoxx
36c2b240fb effect fix 2012-05-17 09:53:19 +04:00
magenoxx
3822e0d09b Soulbond keyword 2012-05-17 09:51:08 +04:00
magenoxx
407f10fa86 critical core fix for failing test 2012-05-15 07:21:51 +04:00
magenoxx
e003b43214 [AVR] Homicidal Seclusion + several tests 2012-05-15 07:21:11 +04:00
magenoxx
a40a1bb3f5 Support for null rule texts in effects 2012-05-15 07:20:18 +04:00
Loki
943555cebf [AVR] Moonsilver Spear, extract common ability 2012-05-14 12:48:07 +03:00
magenoxx
519e136431 More failing tests based on bug reports 2012-05-11 20:25:58 +04:00
magenoxx
d819774cc6 Added required flag to TargetCreaturePermanent constructor 2012-05-11 12:02:39 +04:00
magenoxx
55bf5714a0 [AVR] Harvester Of Souls + test. 2012-05-09 10:04:11 +04:00
magenoxx
419acfeabb [AVR] 5 cards 2012-05-09 09:33:53 +04:00
magenoxx
87c111a253 [AVR] 5 cards. Various fixes. 2012-05-08 18:41:39 +04:00
magenoxx
6cdce1be7c Removed unused common effect 2012-05-08 17:35:25 +04:00
magenoxx
a19c591311 Extracted DiesThisOrAnotherCreatureTriggeredAbility. Refactored some cards. 2012-05-08 17:16:39 +04:00
magenoxx
be7f01b0ba Enhanced card-by-text searching in deck editor 2012-05-08 14:28:06 +04:00
North
67cc42c637 [refactoring][minor] unused imports and formatting 2012-05-07 19:14:04 +03:00
magenoxx
108dec5a4f Reimplemented EverflowingChalice 2012-05-07 09:08:58 +04:00
magenoxx
d75af7c14e NPE fix for no deck loaded 2012-05-07 08:40:41 +04:00
magenoxx
fa0e623120 changed version from 0.8.4 to 0.8.5 2012-05-07 07:50:07 +04:00
Loki
cb945d997e Added looking at card and revealing it for Miracle keyword 2012-05-06 23:40:45 +03:00
Loki
9de37bea5a Fixed memory leak 2012-05-06 23:40:44 +03:00
Loki
f8af7202ef Some fixes for Miracle keyword. Added displaying spell in the stack 2012-05-06 23:40:41 +03:00
Loki
ca56f3b498 Extrace 'Take extra turn' to common effect 2012-05-06 23:40:40 +03:00
Loki
160504ef42 Support for multi X in variable cost 2012-05-06 23:40:39 +03:00
magenoxx
80a25377b5 GatekeeperOfMalakir kicker test. Fails. 2012-05-03 18:21:30 +04:00
magenoxx
9fa5d58174 Removed flying blocking restriction effect duplication 2012-05-03 08:32:27 +04:00
magenoxx
41a5bb7496 Fixed bug with PrimevalTitan and all cards with SearchLibraryPutInPlayEffect. 2012-05-03 05:39:45 +04:00
magenoxx
f39d5dbca1 New implementation for LevelUpAbility. All tests ok. 2012-05-02 20:20:01 +04:00
magenoxx
c2ea8246d2 Tests for LevelUpAbility 2012-05-02 19:21:29 +04:00
magenoxx
e17afdedc3 changed LevelUpAbility rule text 2012-05-02 17:16:16 +04:00
magenoxx
40ff3dd498 Tests reproducing bug in Mage.Core with creature CopyEffect for triggered abilities 2012-05-02 16:48:11 +04:00
magenoxx
b10e385221 formatting 2012-05-02 00:02:03 +04:00
magenoxx
0f950dbc50 [AVR] Miracle keyword 2012-05-01 23:59:36 +04:00
North
236a84cbcb Fixed potential NPE in SacrificeTargetEffect.getText 2012-05-01 22:28:21 +03:00
magenoxx
933f094f69 More careful fix for PlayerImpl.canPlay. Moved ThaliaGuardianOfThrabenTest to another package. 2012-05-01 12:33:51 +04:00
magenoxx
4526d50e43 Added tests for cost modification effects based on Arcane Melee card. One test fails because of bug in core. 2012-05-01 12:07:06 +04:00
magenoxx
26ac9d1967 Fixed PlayerImpl.canPlay - didn't take cost modification effects into account 2012-05-01 11:53:58 +04:00
magenoxx
1bf788a4e1 [AVR] 5 cards 2012-05-01 09:39:07 +04:00
magenoxx
537c326789 [load] loading testing: added simple test for starting game by two players 2012-04-30 18:56:36 +04:00
magenoxx
42108ef59c fixed downloading images from flip cards according to changes on magiccards.info site 2012-04-28 03:27:36 +04:00
North
15759532cf [minor] removed unused imports 2012-04-24 23:03:09 +03:00
North
fa0445b544 Added support for player searching another players library
Fixed Haunting Echoes and Sadistic Sacrament to use this feature
2012-04-24 23:03:09 +03:00
jeffwadsworth
b6f1cba7fa - Added text to PreventCombatDamageSourceEffect class. 2012-04-19 16:18:13 -05:00
jeffwadsworth
c41c9c1f94 - Added Guard Gomazoa. <ROE> 2012-04-19 16:12:19 -05:00
North
93018628df AuraReplacementEffect fix - changed source id to the Aura's ID and not the ability source ID. 2012-04-15 20:23:39 +03:00
North
9632a3297d Added AuraReplacementEffect; cards with the Aura subtype don't change the zone they are in if there is no valid target on the battlefield. Also, when entering the Battlefield and it was not cast this effect gets the target to witch to attach it.
Updated Aura Enchantment cards affected by the AuraReplacementEffect.
2012-04-13 22:18:37 +03:00
North
6f57351096 Fixed Cryptoplasm copy effect. 2012-04-08 21:24:42 +03:00
magenoxx
f0be9c35d7 Moved skipping initial shuffling to game options. 2012-04-07 11:52:31 +04:00
magenoxx
53b2893a81 Fix for issue with Mul Daya Channelers. All tests pass. 2012-04-07 11:09:20 +04:00
magenoxx
89cec1c2b2 not shuffling library for tests 2012-04-07 11:08:49 +04:00
magenoxx
3348a29b1a [ROE] Mul Daya Channelers (by jeffwadsworth2010) 2012-04-07 11:06:02 +04:00
jeffwadsworth
39fcd5648f - Added optional flag for BecomesTargetControllerSpellTriggeredAbility. Fixes Dormant Gomazoa. 2012-04-06 20:41:20 -05:00
jeffwadsworth
26084cc184 - Added Dormant Gomazoa <ROE> 2012-04-06 20:34:10 -05:00
jeffwadsworth
8d6766b011 - Added Champion's Drake <ROE> 2012-04-05 21:04:33 -05:00
jeffwadsworth
e92d3e146f Merge branch 'master' of ssh://109.200.159.85/var/lib/git/mage.git 2012-04-04 19:59:36 -05:00
jeffwadsworth
56665e580d - Added <ROE> Totem-Guide Hartebeest. 2012-04-04 19:57:16 -05:00
North
a7faf62c81 Fixed AI NPE from ReboundAbility. 2012-04-01 19:37:27 +03:00
North
46cbaa0ce0 Fixed DiscardTargetEffect.getText. It supports FixedTarget now. 2012-04-01 18:56:28 +03:00
North
c8b6dde3d9 Fix - target pointer should be set from wrapper effects. 2012-03-30 22:19:20 +03:00
North
c9ddaac961 Added javadoc to Card.moveToExile
removed unused imports
2012-03-30 21:20:18 +03:00
North
bc1dcff4fe Refactored ConditionalContinousEffect to support otherwiseEffect 2012-03-30 21:18:42 +03:00
BetaSteward
c893fd891e cards submitted by backfir3 2012-03-29 08:33:46 -04:00
BetaSteward
97c6f33154 fixes 2012-03-29 08:32:52 -04:00
North
03bbc73564 MageInt.EmptyMageInt made immutable 2012-03-28 22:29:27 +03:00
North
775b3276c9 Fixed Chimeric Mass.
Also fixed the BecomesCreature effects. In case the token had another ability with a SetPT effect there would have been two effects on the same layer and the outcome would not be predictable.
2012-03-28 22:18:33 +03:00
magenoxx
e851fb4d8e Fix for EntersBattlefieldEffect and ChimericMass. 2012-03-28 13:18:35 +04:00
magenoxx
deb6533bd8 [mad ai] emulating block declaration. safe block. (in progress) 2012-03-26 22:04:31 +04:00
magenoxx
0b75e4866a Fixed EntersBattlefieldEffect. PhantasmalImage's CopyEffect works now. 2012-03-26 20:05:20 +04:00
BetaSteward
e859e142fa 2 DKA 2012-03-26 08:55:30 -04:00
magenoxx
523481b5a2 Added additional parameter for effect outcome. Updated choosing permanents for AI. 2012-03-26 10:59:04 +04:00
magenoxx
7ecf9f125d Fixed NPE in CopyEffect (happened when creature copied itself that is legal from rules point of view). 2012-03-26 10:35:29 +04:00
magenoxx
fb8f4c3c67 Test for Exiled and fix. 2012-03-26 09:20:30 +04:00
magenoxx
46439e7ffe Fixed Oblivion Ring issue (LeavesBattlefieldTriggeredAbility). 2012-03-26 00:42:04 +04:00
magenoxx
569faf8fd3 TransformAbility fix. 2012-03-26 00:41:53 +04:00
magenoxx
0754cd91d0 javadoc fix. formatting 2012-03-26 00:34:36 +04:00
magenoxx
3875c1f7c0 Changed component version from 0.8.3 to 0.8.4 (dev) 2012-03-25 12:16:46 +04:00
North
b446585c00 [DKA] Helvault
fixed ReturnFromExileForSourceEffect
2012-03-19 00:28:36 +02:00
intimidatingant
a20d1fbf8e Merge branch 'master' of ssh://git.magefree.com/var/lib/git/mage 2012-03-14 20:53:15 -07:00
intimidatingant
eb418cf1fe Add 3 DKA cards. Fix bug with Diregraf Captain. 2012-03-14 20:52:31 -07:00
North
8ea3cc741c Fixes issue when source for damage isn't on the battlefield anymore 2012-03-12 23:27:48 +02:00
BetaSteward
de4153c5aa 3 DKA 2012-03-11 23:20:56 -04:00
North
47abc28d78 [DKA] Jar of Eyeballs
[DIS] Proper Burial
[10E] Grave Pact
[TMP] Essence Bottle, Torture Chamber
2012-03-11 17:12:04 +02:00
BetaSteward
f98a1be4e0 fixed multiple emblems in play 2012-03-10 22:22:43 -05:00
BetaSteward
3b643805c8 normalized ContinuousEffects 2012-03-10 22:20:24 -05:00
BetaSteward
243fd32fa3 updated SpellCastTriggeredAbility to use FilterSpell 2012-03-08 22:49:23 -05:00
BetaSteward
d353924fcd submissions from Melkhior 2012-03-08 15:38:18 -05:00
BetaSteward
f1fefb0d59 2 DKA 2012-03-08 13:54:31 -05:00
BetaSteward
e03aaee4b6 updated searching/shuffling interaction 2012-03-08 13:53:23 -05:00
BetaSteward
631308a5df fixed cost modification effects getting applied twice 2012-03-05 22:45:36 -05:00
BetaSteward
dddca6ae32 2 DKA 2012-03-05 22:44:49 -05:00
Loki
3e2c7dfa95 fix affinity double-counting 2012-03-05 19:57:27 +04:00
Loki
d5fea2e5c8 Merge remote-tracking branch 'origin/master' 2012-03-05 19:33:15 +04:00
Loki
b02e87ea67 try toi fix NPE in Gatekeeper of Malakir 2012-03-05 19:32:59 +04:00
BetaSteward
82f8a7cdee added replace event to putOntoBattlefield call - moved logic for moving cards to putOntoBattlefield 2012-03-05 09:15:47 -05:00
BetaSteward
db02ea3aa6 fixes 2012-03-03 23:20:10 -05:00
BetaSteward
67fb349224 3 DKA 2012-03-02 15:42:34 -05:00
BetaSteward
12027369a5 DKA - IncreasingVengeance 2012-02-29 13:35:34 -05:00
BetaSteward
cab80c5a68 4 DKA 2012-02-28 22:54:40 -05:00
North
6f7050f9eb Merge
Conflicts:
Mage.Sets/src/mage/sets/darkascension/WolfhuntersQuiver.java - kept my version (rule text is correct in mine)
2012-02-28 21:55:36 +02:00
North
5c7c0a4086 Fixed Past in Flames TimingRule
Fixed All is Dust to take into account the range of influence
minor changes to all other files
2012-02-28 21:49:36 +02:00
BetaSteward
1dbc0a2be5 2 DKA 2012-02-28 14:25:36 -05:00
BetaSteward
c64c597467 DKA - Fiend of the Shadows 2012-02-26 21:48:55 -05:00
BetaSteward
9ae7ff87ea more tests + some fixes 2012-02-25 23:24:06 -05:00
BetaSteward
68391a7522 fixed some NPE's and other errors 2012-02-23 15:26:57 -05:00
BetaSteward
828662f6f3 3 Curses from DKA 2012-02-19 09:52:39 -05:00
BetaSteward
86906c633a updated test framework - added TestPlayer which only performs instructed actions 2012-02-17 10:40:57 -05:00
BetaSteward
2e14adfde0 removed ConditionalStaticAbility - not getting applied anymore - used ConditionalContinousEffect instead 2012-02-17 10:28:09 -05:00
magenoxx
cb929d1f21 Fixed NPE in monte carlo. Removed actions remembering for now as not used yet. 2012-02-14 08:55:42 +04:00
BetaSteward
48f5a469d4 fixes for monte carlo ai 2012-02-13 09:05:01 -05:00
LevelX
37086bfa5c [DKA] Blck Cat
Some text improvements
Fixed NezumiBoneReader
Added randomDiscard parameter to DiscardTargetEffect
2012-02-12 00:48:17 +01:00
LevelX
ef5594cdd3 Some small improvements to text generation 2012-02-11 14:25:21 +01:00
LevelX
fa587ce7b7 [DKA] Tower Geist
Rework of LookLibrary effects
2012-02-11 14:13:08 +01:00
BetaSteward
885c43d374 Merge branch 'master' of ssh://109.200.159.85/var/lib/git/mage 2012-02-09 15:58:59 -05:00
BetaSteward
d79cbcb54f fixes 2012-02-09 15:58:14 -05:00
Loki
af6ef52215 3 DKA 2012-02-08 20:43:31 +04:00
BetaSteward
6205ebaeb9 fixed Liliana Of The Veil npe when targeting tokens + added choose pile dialog 2012-02-07 15:15:47 -05:00
Loki
f14559d71d fix summoning sickness, 1 DKA 2012-02-07 16:52:53 +04:00
Loki
4d578fa022 DKA 2012-02-07 14:00:45 +04:00
BetaSteward
4fd59f9e8c added test for continuous effects + modified tests to stop on specified turn and step 2012-02-06 10:06:25 -05:00
BetaSteward
79be305eb9 fixed continuous effects generated by spells 2012-02-05 22:50:42 -05:00
BetaSteward
bf9e25fc34 other fixes 2012-02-04 17:05:48 -05:00
BetaSteward
90c7079bfa fixed delayed triggered abilities 2012-02-04 17:02:25 -05:00
magenoxx
681cf0167d minor fix 2012-02-04 15:46:46 +04:00
magenoxx
2e890bea0c try\catch around NPE on server 2012-02-04 15:38:28 +04:00
magenoxx
36bc35f7b2 This time correct fix for DiesTriggerAbility. 2012-02-04 10:12:38 +04:00
magenoxx
7b6cedacfa Fixed DiesTriggeredAbility not working. 2012-02-04 00:36:17 +04:00
BetaSteward
d813283c19 adding back recent changes - not quite sure how I managed to revert all this 2012-02-02 23:48:25 -05:00
BetaSteward
1d32f49fd0 modified triggered abilities, continuous effects and zones 2012-02-02 23:27:23 -05:00
North
053c630b3c fixed NPE for LookLibraryControllerEffect 2012-01-30 22:05:47 +02:00
North
34765debdc [refactoring] removed DrawCardEffect (misleading and there was better solution already implemented); also fixed Cruel Ultimatum
[refactoring] removed special char from deck name.
2012-01-29 22:39:58 +02:00
magenoxx
49c403da0e Fixed static text. 2012-01-28 11:04:41 +04:00
BetaSteward
1b965f358b Urza's Saga - courtesy of Backfir3 2012-01-27 21:36:36 -05:00
BetaSteward
436a8ea440 Merge branch 'master' of ssh://109.200.159.85/var/lib/git/mage 2012-01-24 22:52:38 -05:00
BetaSteward
7fce6c552d fixes + optimizations + updates to monte carlo ai 2012-01-24 22:51:31 -05:00
BetaSteward
23616432e4 fixed ConcurrentUpdateException with multi-threaded ai 2012-01-24 22:50:18 -05:00
LevelX
6a282d1e51 3 new cards
[CHK] Marrow-Gnawer / Orochi Eggwatcher / Kiku, Night's Flower

Fix
ShisatoWhisperingHunter - using now sacrificeControllerEffect instead of sacrificeEffect

Framework
BeginningOfUpkeepTriggeredAbility - reverted change to set targetPointer if targetController == YOU (this caused unwanted side effects)
SacrificeControllerEffect - new effect that the controller of an ability has to sacrifice something
GainAbilityAllEffect - improved text generation
some minor comment and include fixes
2012-01-24 23:33:27 +01:00
LevelX
5be4f1c291 8 new cards
[SOK] Kashi-Tribe Elite / Matsu-Tribe Birdstalker	
[CHK] Kashi-Tribe Reaver / Kashi-Tribe Warriors / Matsu-Tribe Decoy / Orochi Ranger / Shisato Whispering Hunter / Sosuke, Son of Seshiro

Framework
SkipNextPlayerUntapStepEffect - new effect
CardsInHandCondition - new condition
DealsCombatDamageToACreatureTriggeredAbility - new ability
BecomesCreatureSourceEffect - Fix to solve problems with creatures that unintended kept their subtypes (e.g. Skinshifter))
BeginningOfUpkeepTriggeredAbility - set also target pointer if targetController == YOU
BoostTargetEffect - added lockedIn parameter to fix error for various cards (DragDown / ElderOfLaurels / MightOfAlara / MightOfTheMasses  / StrengthOfCedars / BloodthirstyOgre)
GainAbilityControlledEffect - imporoved text generation
SkipNextUntapTargetEffect / TapTargetEffect - addded fixed target text support

Minor changes
AkkiLavarunner / CreakwoodGhoul / DearlyDeparted - includes
ClockworkBeetle - fixed use of effect of other card
KondasBanner - fixed potential null pointer exception and wrong name spelling
YoseiTheMorningStar - uses now the new SkipNextPlayerUntapStepEffect
2012-01-22 11:12:49 +01:00
Loki
53d70ffbe3 [MRD] Auriok Bladewarden 2012-01-19 12:35:03 +04:00
BetaSteward
2e21b7197b fixes and optimizations for monte carlo ai 2012-01-16 18:49:11 -05:00
BetaSteward
a13bb9acf5 moved CopyPermanentEffect and fixed some cards with copy 2012-01-16 18:45:11 -05:00
LevelX
6b0f04d03f 13 new cards
[BOK] Akki Blizzard Herder / Crack the Earth
[CHK] Commune with Nature / Otherworldly Journey / Peer Through Depths / Rag Dealer / Reciprocate
[CON] Faerie Mechanist / Giltspire Avenger
[PLC] DuneriderOutlaw
[ROE] Ancient Stirrings
[SOK] Freed from the Real]
[TSB] WhirlingDervish

Some small fixes or refactoring
Aura of Dominion / Hikari Twilight Guardian / Wicked Akuba / Claustrophobia / Crab Umbra / Descendant of Soramaro

Framework changes
PlayerDamagedByWatcher - replaced by the new PlayerDamagedBySourceWatcher
PlayerDamagedBySource - new watcher which tracks what sources damged a player
DealtDamageToAnOpponent - new condition
LookLibraryControllerEffect - reworked to be usable with LookLibraryAndPickControllerEffect
LookLibraryAndPickControllerEffect - new effect to handle draw and pick effects
TapEnchantedEffect - new
UntapEnchantedEffect - new
ReturnFromExileEffect - added constructor rule text support
SacrificeAllEffect - fixed missing rule text creation
GameImpl - added the creation of the new PlayerDamagedBySource watcher for each player
2012-01-12 08:11:32 +01:00
BetaSteward
dfffdfcf8c latest monte carlo ai - has a memory leak 2012-01-10 21:29:53 -05:00
BetaSteward
a06f27ec89 minor fixes 2012-01-10 21:17:13 -05:00
LevelX
f073ee299d 13 new cards
[SOK] Descendant of Soramaro
[BOK] Kami of theHonoredDead
[CHK] Heartbeat of Spring / Jugan, the Rising Star / Kitsune Riftwalker / Mystic Restraints / Nezumi Bone Reader / Nine Ringed Bo / Samurai of the Pale Curtain / Sensei Golden-Tail / Tenza Godo's Maul / Wicked Akuba / Yosei the Morning Star

Fixed cards
Kumano Master Yamabushi - renamed file to correct name
Myojin of Infinite Rage - fixed toughness value
UnearthlyBlizzard - reworked text

Framework changes
EquippedMatchesFilterCondition - new, To grant equipment boosts conditional
PlayerDamagedByWatcher - new, Watcher to track damaged players
CardsInControllerHandCount - fixed potential null pointer exception
LookLibraryControllerEffect - improved to handle DynamicValues
2012-01-08 00:04:52 +01:00
LevelX
7207bc0be6 Bloodthirsty Ogre - refactored counter handling for negative values
CountersCount - removed negative parameter
2012-01-02 23:25:46 +01:00
LevelX
e88a2a199f New cards
[CHK] BloodthirstyOgre / HorobiDeathsWail / KumanosPupil / MyojinOfInfiniteRage / MyojinOfLifesWeb / MyojinOfNightsReach / MyojinOfSeeingWinds / OniPossession / PainwrackerOni

Framework
PutOntoBattlefieldTargetEffect - new effect
SetCardSubtypeAttachedEffect - added constuctor with list of types
TargetControlledCreaturePermanent - added constructor with "required" and "filter"
DrawCardControllerEffect / SacrificeTargetEffect - improved text generation
CountersCount - added flag to return the number of counters as negative value
2012-01-02 22:30:22 +01:00
North
182d636078 minor refactoring 2012-01-01 22:54:18 +02:00