Maxmtg
2511bda8bc
Removed 'YChoice' from game. - Tetravus may use the same variable X (it's cleared after resolve) no other cards used it
...
Fixed NPE in announce code for costs that do announce but have no manacost (ab of simic manipulator)
2013-04-08 07:38:49 +00:00
Maxmtg
ba3d04010e
Molten hydra fix (calculateAmount had incorrect order of if-else and returned 0 for CostRemoveCounter too early)
2013-04-08 06:24:21 +00:00
Maxmtg
0be4ad70da
Infrastructure for Myr Superion (part 1) - added alt syntax for mana cost: Mana<3 U W\Creature> - backslash is intentional
2013-04-05 22:01:32 +00:00
Maxmtg
e518027ff5
combineCosts - bugfix
2013-04-04 06:12:33 +00:00
Maxmtg
7d3ee5635a
CostPartMana now contains a ManaCost instance, no more strings
2013-04-03 17:57:01 +00:00
Maxmtg
4febcc2554
Correct detection of player when playing InputPayManaExecuteCommands (used by all that propagandas)
...
Pay X mana (when spell is about to hit stack) is made by payManaX - it might have problems paying costs like 2XX
2013-03-28 08:59:06 +00:00
Maxmtg
e661489893
SpellManaCost renamed to ManaCost and moved to forge.card.mana
...
CostMana renamed to CostPartMana to avoid mixing them up
2013-02-19 06:30:37 +00:00
Max mtg
c37a021ecf
Arranging AI methods by functionality: move mana-related and cost-related methods to respective static CoupterUtilXXXX classes
2013-01-25 18:48:29 +00:00
Maxmtg
fae995f189
forge.game.ai created - just a small step towards AI isolation
2013-01-24 23:00:51 +00:00
Maxmtg
ab95f36861
* Costs: removed isUndoable, isReusable backing fields, appropiate values are returned by method overloads in classes
...
* Costs: joined all CostGainLife implementations. Syntax is: GainLife<LifeAmount/Player.Selector/[cntPlayers|*]> asterisk in last parameter means "all players".
* Changed a lot of methods to pass GameState as a parameter rather than get it from Singletons.*
2013-01-22 06:58:11 +00:00
Maxmtg
9eeb3441e7
forge.card.CardManaCost => SpellManaCost
...
forge.card.mana.ManaCost => ManaCostBeingPaid
Ability ctor now accepts SpellManaCost as 2nd argument.
2013-01-12 19:51:44 +00:00
Sloth
03ca3d4872
- Expanded checkDiscardCost.
...
- Added Phantasmagorian.
2012-12-03 15:47:49 +00:00
Sloth
5be65b6614
- Fixed mana costs not always coming first in combineCosts.
2012-12-03 08:41:01 +00:00
Maxmtg
df47bab393
Counter class renamed to CounterType
2012-11-23 20:03:37 +00:00
Chris
1d9bfe7cb2
- CheckStyle.
2012-11-17 14:00:53 +00:00
Sloth
979b8f46a7
- More getCards read-only list errors.
2012-10-29 11:04:18 +00:00
Maxmtg
e67680a0a5
17605 fixed, 609 617-618
2012-10-21 08:21:34 +00:00
Maxmtg
33b4e61135
Rollback of 17605 that broke everything
2012-10-20 22:20:25 +00:00
Maxmtg
e616eae145
Moved card and player cleanup routines to repective classes
...
renamed isNeedToNextPhase => !mayPlayerHavePriority (would let understand the code better)
@inputControl: setInputInterrupt and setInput add to resolveStack and common Stack
@inputControl: updateInput => getActualInput
2012-10-20 21:20:36 +00:00
Maxmtg
c92faa2d87
1. MatchController contains inputControl, subscribes listeners to event by itself
...
2. most of AllZone methods static moved into instances, consider retrieving frequently used values into class fields or local variables
2012-10-19 22:39:09 +00:00
Maxmtg
d2fe264b3e
20 global calls less (80 to go)
2012-10-08 20:01:23 +00:00
Maxmtg
b39d9b9327
Another portion of removal of global getters getXXXPlayer
2012-10-07 20:58:06 +00:00
Maxmtg
16ec02124c
CardListUtil => CardLists (as they call Collections class)
2012-10-05 20:28:26 +00:00
Sloth
f065d0a2a4
- The AI can now use Quillspike.
2012-10-03 18:04:51 +00:00
Maxmtg
013ddee250
CardList class replaced by java.util.(Array)List<Card>
2012-10-01 23:32:48 +00:00
Maxmtg
0c974ce24a
Indirection of getValidCards and getTargetableCards. Moved to CardListUtil
2012-10-01 22:25:06 +00:00
Maxmtg
64a43d29e6
replacing CardList calls with iterables where possible
2012-10-01 21:44:45 +00:00
Maxmtg
ec3870418d
GuiUtils: choice methods moved to GuiChoose.java
...
GuiUtils: rarely used methods moved closer to usage
2012-10-01 20:21:45 +00:00
moomarc
34efd19d3a
- Added Nicmagus Elemental (RtR)
2012-10-01 18:19:41 +00:00
Sloth
d94843e38c
- Added the new static ability CantAttackUnless.
2012-09-26 18:28:57 +00:00
Sol
950f79b3b9
- Blank Abilities used with Unless Costs will now know the Targets from the Source Ability
...
- Check life cost now uses calculateAmount instead of xCount
- Added Essence Vortex
2012-09-26 15:57:18 +00:00
Maxmtg
7714a6712c
cleanup for CardUtil
...
Removed T... syntax from GuiUtils chooseNNN functions (cause one might be called with cardlist parameter as a single choice option)
Rmeoved SpellAbilityList.java - noone used it, and no special code in that class seen.
2012-09-22 21:46:04 +00:00
Sloth
6bd356cb2c
- The AI will no longer sacrifice the sourcecard of a GainLife ability unless it has 5 or less life.
2012-09-16 12:29:43 +00:00
moomarc
ad15235119
- Expanded UntapYType cost for Benthic Explorers
2012-09-08 11:28:27 +00:00
moomarc
3bc1f0e390
- Added Crackleburr
...
- Added untapYType<amount/valid/description> cost type
2012-09-08 08:32:12 +00:00
Sloth
0cb6b29e0c
- Added Skullscorch.
2012-09-01 10:35:57 +00:00
Sloth
086a2c3cee
- Added the cost "DamageYou".
...
- Added Dwarven Driller.
2012-08-31 21:58:42 +00:00
Sloth
4d15a3d88e
- The AI will no longer use Pump abilities with a TapType cost before declareAttackers/declareBlockers, so it will no longer tap a creature to pump itself.
2012-08-30 11:34:41 +00:00
Sloth
1ba819d162
- The AI will no longer sacrifice enchanted permanents as part of costs.
2012-07-18 20:50:30 +00:00
Sloth
ce0417a6df
- Better fix for ChosenX.
2012-07-18 09:38:40 +00:00
Sloth
3c0ae07572
- Fixed ChosenX not reseting.
2012-07-18 08:59:53 +00:00
Sloth
bd882ca0b4
- ChosenX will now also be stored on the card and not only the spellAbility.
...
- Fixed Tezzeret the Seeker.
2012-06-30 16:27:53 +00:00
Hellfish
a460278117
*Crosses fingers* Reintegration of AbilityWork branch.
2012-06-12 22:33:45 +00:00
Sloth
dc4320bc59
- Tweaked cost evaluation AI functions a little.
2012-04-30 21:02:02 +00:00
Sloth
88eef267a3
- Fixed a possible NPE in checkRemoveCounterCost.
2012-04-21 21:16:37 +00:00
Maxmtg
08888616f7
Zone moved to a personal package
2012-04-07 12:50:31 +00:00
Maxmtg
a0b74add1d
moved player-related stuff to a package
...
Removed unused classes SimpleCombat, ExternalPanel, ImagePreviewPanel, Move
2012-04-07 09:53:23 +00:00
Sloth
462397abaf
- More work on the AI part of AF Charm (experimental).
2012-04-05 11:32:22 +00:00
Maxmtg
c98d037e0e
GuiUtils.getChoice renamed to clear and simple names
...
added possibility to pass List<T> as options (to avoid useless list -> array -> list conversions)
2012-03-01 21:37:22 +00:00
Doublestrike
4f2a4004e3
Renamed "forge.gui.input" package to "forge.control.input" for consistency and clarity.
2012-02-16 10:55:11 +00:00