Commit Graph

6053 Commits

Author SHA1 Message Date
Maxmtg
99fd571e00 sending CField updates to a propper thread.
minor optimizations for the rest
2013-04-15 11:04:05 +00:00
Maxmtg
d054621e45 removed extra parameters from spell and payMana constructors
pre-reqs to make payCost in spellAility not null and final
2013-04-15 10:16:16 +00:00
Sloth
90ff68282b - Added safety check in choosePermanentsToSacrifice. 2013-04-15 08:43:13 +00:00
Maxmtg
46ffa1c4f0 moved console update to EDT thread, this should solve NPE from http://www.slightlymagic.net/forum/viewtopic.php?p=115484#p115484 2013-04-15 08:37:40 +00:00
Maxmtg
4143c472ff removed manaCost from SpellAbility, use payCost instead.
removed Card arguement from Cost ctor
2013-04-15 08:31:37 +00:00
Maxmtg
1a721fc2b0 Cost.combine(c1,c2) was modifying its argument c2. That would lead to bugs in propaganda effects. The method was replaced with Cost.add(c1) that adds c1 to this (and the current cost is obvously changed) 2013-04-15 07:16:10 +00:00
Sol
d110c283ab - Blockers with Trample should not open the AssignDamage dialog when there is only one creature it's blocking 2013-04-15 03:18:56 +00:00
Sloth
56c2bff69f - Fixed possible NPE's caused by Haunt. 2013-04-14 21:47:26 +00:00
Hellfish
0a656dc1da *Potential base for Partial Paris AI 2013-04-14 18:58:48 +00:00
Sloth
6502684f3c - Added the static ability "CantBlockUnless".
- Added Cowed by Wisdom.
2013-04-14 14:01:27 +00:00
Maxmtg
f214be71bf code formatting,
client lines coloring
2013-04-14 12:34:34 +00:00
Maxmtg
0d3a727610 Changed interfaces to acquire players for lobby - human uses a single LobbyPlayer for all games.
NetClient now adds its player to lobby
2013-04-14 11:33:20 +00:00
Maxmtg
07fbc7c6a9 removed superclass for packet, interface looks better 2013-04-14 10:59:04 +00:00
Maxmtg
3eed2f993b Server instance moved to FControl,
HomeUI buttons get enabled/disabled to indicate server status
Server - clientstates form a chain of responsibility for packets processing
packets for autorization (no checks performed, used to get player's name)
2013-04-14 10:51:04 +00:00
Maxmtg
91a748cb1c CostRemoveCounter assigns cntRemoved for correct AI payment 2013-04-14 09:11:55 +00:00
Sloth
40fd711421 - Fixed AI not paying CostRemoveCounter costs. 2013-04-14 08:31:09 +00:00
Maxmtg
0f8db69b53 Start server button - hidden into devmode 2013-04-13 22:54:12 +00:00
Maxmtg
891cfd3e6b +start server button 2013-04-13 22:43:20 +00:00
Maxmtg
cac89ede5a Server incubation 2013-04-13 22:00:41 +00:00
swordshine
01d9afd089 - ChooseCardNameEffect changes for Council of the Absolute 2013-04-13 08:00:39 +00:00
Maxmtg
2dcb365841 Allow cancel for sacrifice cost payment - http://www.slightlymagic.net/forum/viewtopic.php?p=115356#p115356 2013-04-13 07:17:13 +00:00
Sloth
59f44c34f4 - Improved checkRemoveCounterCost. 2013-04-13 06:32:59 +00:00
Maxmtg
145a0ce441 fixes comodification exceptions (like http://www.slightlymagic.net/forum/viewtopic.php?p=115346#p115346 and viewtopic.php?p=114582#p114582) 2013-04-13 05:20:54 +00:00
swordshine
433809d94c - Added TriggerEvolved 2013-04-13 01:25:27 +00:00
Maxmtg
e0007dcb03 GameLossReason moved to player package, since it's individual per player and to avoid confusion with GameEndReason 2013-04-12 19:53:08 +00:00
Sloth
d6761a852c - Fixed Epic Effect's EffectZone. 2013-04-12 17:53:52 +00:00
Maxmtg
7930167469 that nice toString overload broke some cards - reverting 2013-04-12 09:09:57 +00:00
Maxmtg
5a386afeb6 make sure copyOnWriteArray list does not get overwritten by other structure 2013-04-12 07:38:00 +00:00
Sol
0078da8ea3 - Reverting wait till Spell resolution to remove SA, since for some reason the SAs for AIs optional triggers aren't matching for some reason. (AI Goblin Arsonist issue) 2013-04-12 03:26:15 +00:00
swordshine
382de9bffd - Added Earwig Squad and Latchkey Faerie 2013-04-12 00:47:03 +00:00
Maxmtg
184e3469ca protection against co-modification for type list 2013-04-11 23:05:58 +00:00
Maxmtg
7e14d5ca58 cleanup for Card class, removed unreferenced methods and variables, inlined once-referenced, moved ai-related closer to AI 2013-04-11 21:18:01 +00:00
Maxmtg
465a862070 removed an unreferenced method and renamed another method 2013-04-11 20:25:57 +00:00
Sloth
77195b1e03 - Added AI support for Paralyze. 2013-04-11 15:07:10 +00:00
swordshine
30ae3581a8 - Added Paralyze and Reverse the sands 2013-04-11 10:34:26 +00:00
swordshine
cd6aa58f8a - DGM: Added Varolz, the Scar-Striped 2013-04-11 08:56:17 +00:00
Maxmtg
5fed7ec93a made canPay calculate life when it's defined 2013-04-11 05:06:01 +00:00
Maxmtg
9f6d1f5247 fixed NPE that prevented Dredge from working 2013-04-11 05:05:34 +00:00
Agetian
871d01c806 - Some improvements in descriptive texts related to the alternate sound system. 2013-04-10 13:38:16 +00:00
swordshine
943cbfcb1c - Added Dream Salvage 2013-04-10 12:59:44 +00:00
Agetian
3458cc6ee1 - Minor style adherence correction (expand tabs to spaces). 2013-04-10 12:54:17 +00:00
Sloth
43c1216f4e - Added "NonStackingEffect" SVars. 2013-04-10 12:10:10 +00:00
Agetian
3c5701eab5 - Fixed a bug preventing the AI profile from being correctly restored between matches in a duel. 2013-04-10 05:55:43 +00:00
Agetian
a731f7d630 - Removing a useless comment 2013-04-10 05:45:45 +00:00
Agetian
4f30cd58ec - Renamed AsyncSoundPlayer to AltSoundSystem (better represents its purpose).
- Fixed the synchronous sounds playing asynchronously on the alternative sound system.
- Some minor fixes and changes to the alternative sound system.
2013-04-10 05:16:46 +00:00
Maxmtg
afe8c40d87 remove unused imports that produced warnings in Eclipse 2013-04-10 04:52:11 +00:00
Maxmtg
975437fde1 Deck Import button moved to first tab.
Some texts with instructions added to the related dialog
2013-04-10 04:50:59 +00:00
Maxmtg
b3dda493b4 anti-NPE measure: http://www.slightlymagic.net/forum/viewtopic.php?p=115101#p115101 2013-04-10 04:04:55 +00:00
swordshine
0f6964be04 - Put an attacking creature to the battlefield will also be able to choose a defender for human players 2013-04-10 00:50:54 +00:00
Sol
1a89e4cce3 - Real fix for both ChangeTargets being able to change Counterspells to ChangeTarget SA that doesn't cause Multitargeting issues 2013-04-10 00:35:14 +00:00