Commit Graph

6776 Commits

Author SHA1 Message Date
Maxmtg
b20da90917 cp.getMatchingForgeCard() hand no owner and belonged to no game - that's why it didn't pass the test invoked by Card.isValid 2013-06-24 16:08:56 +00:00
Maxmtg
69d5be5bd9 getProtectionList static method moved to ProtectEffect.java
ProtectEffect uses game.notifyOfValue to avoid direct calls to Gui
2013-06-24 16:07:57 +00:00
Sloth
8e8ee4bb5c - Fixed prompt of "At the beginning of your upkeep, sacrifice" keywords. 2013-06-24 14:58:04 +00:00
Maxmtg
b074af6d41 correct the choice out of available flip results 2013-06-24 12:53:22 +00:00
Maxmtg
5038d5e838 Removed calls to GUI and to isHuman in ChooseNumber and FlipCoin effects 2013-06-24 12:48:52 +00:00
Maxmtg
6ff8ba6682 moved Combat & CombatUtil to package forge.card.combat Sol has created.
removed EndOfCombat and Cleanup classes as they don't add anything specific to base class. Base class Phase is no longer abstract, also it does not need reference to game instance any longer
2013-06-24 10:54:46 +00:00
Maxmtg
dfc630aa23 orderMultipleBlockers and orderBlockingMultipleAttackers - moved into Combat class.
Combat - adjusted visibility of methods, moved some methods closer to caller
2013-06-24 10:40:56 +00:00
Maxmtg
74059bda82 Combat instance lifespan limited to Combat phase (for the rest combat = null, checks will return 'not attacking', 'not blocking'), the very object is stored in PhaseHandler
Card: removed methods to test if card is attacking/blocking, because these properties are related to combat, not the card itself.
AiAttackController - no longer creates Combat. Instead it uses a provided instance and fills attackers there
ComputerUtilBlock.java became non-static class AiBlockController, also modifies the provided Combat instance
2013-06-24 09:33:19 +00:00
Sol
52a26ba4a5 - Added Urza's Engine, Icatian Skirmishers, Camel 2013-06-23 17:20:44 +00:00
Sloth
9c66737813 - Added Dark Sphere by squee1968. 2013-06-23 13:32:57 +00:00
Sloth
4f159471d7 - Added some AI blocking against creatures with "can't be blocked except by X or more creatures". 2013-06-23 12:15:05 +00:00
Sloth
e63d418b03 - Fixed a NPE in canPlayLand AI. 2013-06-23 12:11:25 +00:00
Sloth
5f3f859b81 - Added Gaea's Touch. 2013-06-23 11:01:35 +00:00
Sloth
770a7d20a8 - Fixed DebuffEffect. 2013-06-23 09:35:31 +00:00
Sloth
6b04ca78f9 - Converted Modular to macro script. 2013-06-23 09:18:55 +00:00
Sloth
e5ad11748f - Fixed modular keyword. 2013-06-23 09:02:52 +00:00
Maxmtg
fa38216eaa a minor brush up (use EnumSet instead of switch-case) 2013-06-23 08:04:41 +00:00
Sol
c94e8a395f - Added Bands with others support
- Add 5 Legends Bands with Other lands, Master of the Hunt, Shelkin Brownie, Tolaria
- Small fixes to Combat and CCombat
2013-06-23 01:09:43 +00:00
swordshine
41827bb653 - some other api with tgtPlayers 2013-06-22 11:09:28 +00:00
swordshine
e7656f3be5 - Additional fix about tgtPlayers 2013-06-22 10:55:21 +00:00
Sloth
17f10cafbc - Fixed not being able to block creatures attacking your Planeswalker. 2013-06-22 10:32:23 +00:00
swordshine
62239488c9 - revert changes in changezoneall effect, complicated situations here 2013-06-22 10:32:12 +00:00
swordshine
615abebe99 - Fixed ChangeZoneAll, TapAll, UntapAll effect 2013-06-22 10:29:43 +00:00
Sloth
b703546c80 - Fixed Anavolver and friends. 2013-06-22 10:19:24 +00:00
swordshine
c862679aac - Fixed PumpAll effect 2013-06-22 10:16:01 +00:00
Sloth
8e50d42099 - Fixed spells without costs being playable. 2013-06-22 10:08:03 +00:00
swordshine
5253f90284 - Fixed Reveal effect 2013-06-22 05:53:51 +00:00
swordshine
046836a63a - Fixed Gerrard Capashen 2013-06-22 05:13:16 +00:00
swordshine
92930d7a6f - Added Guile 2013-06-22 03:02:49 +00:00
Maxmtg
4c40598c79 refactored 10+ calls to isComputer/isHuman 2013-06-21 22:46:00 +00:00
Maxmtg
a75835f664 CantBeBlockedByAmount + expression used to specify number or creatures that can block given attacker 2013-06-21 21:42:26 +00:00
Sloth
06eb8e3e43 - Added a new AI SVar "NonStackingAttachEffect". 2013-06-21 21:39:55 +00:00
Maxmtg
68d3a7cdb2 more blocking-related keywords replaced with CanBeBlockedBy+expression 2013-06-21 19:13:23 +00:00
Maxmtg
fa443cea0d Text for CantBeBlockedBy is composed in runtime 2013-06-21 18:14:52 +00:00
Sloth
da1645c353 - Fixed Skymark Roc. 2013-06-21 14:51:01 +00:00
Maxmtg
1d498a5ba3 "can be blocked only by creatures with defender" now also uses a common keyword 2013-06-21 14:47:44 +00:00
Maxmtg
f3876079a9 CantBeBlockedBy - attempts to build keyword description 2013-06-21 14:08:30 +00:00
Maxmtg
09edb071ff removed keyword CARDNAME can't be blocked by red creatures 2013-06-21 13:38:48 +00:00
Maxmtg
b92eaa14a5 Redirect added. M13 is complete. 2 unimplemented cards in T2 remaining. 2013-06-21 12:41:21 +00:00
Maxmtg
1834182d2e add comment, remove unused variable, make simple overload to chooseSingleSpellAbility in AI part of the effect 2013-06-21 11:49:59 +00:00
Maxmtg
a395adc2b6 CopySpellAbilityEffect refactored: fixed Precursor Golem (and hopefully all similiar spells), removed calls to isHuman/isComputer
PlayerController: added chooseSingleSpellForEffect
2013-06-21 11:28:16 +00:00
Sloth
5fe795059b - Fixed targeted triggers not being removed from the stack (again). 2013-06-21 10:52:04 +00:00
Maxmtg
292df0c8de TargetChoice clone = added lost field 2013-06-21 06:49:10 +00:00
Maxmtg
c3e752f98f rearrange and update comments 2013-06-21 06:47:33 +00:00
Maxmtg
56737375da Spellskite script uses a general clause 'ChangeSingleTarget', uses 'Defined' to specify new target
SpellAbility.canTarget now also works for SpellAbilities
2013-06-21 06:31:44 +00:00
Maxmtg
3242d396a9 Haunt now resolves, but its trigger won't leave stack 2013-06-21 06:06:55 +00:00
Maxmtg
00ddfed039 spellskite added - please test 2013-06-21 04:16:59 +00:00
Maxmtg
775588b300 applied auto fix layout to deck editor 2013-06-21 01:06:25 +00:00
Maxmtg
8a50df0e06 Gideon from GTC - 1st ability will work 2013-06-20 17:46:47 +00:00
Sloth
ce7a8bb1f1 - Fixed targeted triggers not being removed from the stack. 2013-06-20 14:29:47 +00:00