zethfoxster
1369a08863
added abilities= keyword "devoid"
...
abilities=haste,flying,devoid
would make a flying haste colorless creature.
2016-06-01 18:47:19 -04:00
Anthony Calosa
ac9dfd570a
minor skip phase
...
if there is no possible attacker then skip phase
2016-06-01 18:04:15 +08:00
Anthony Calosa
5cd5f4b38e
Fix crash for Deck Menu
...
Old save with stats should work 👍
2016-06-01 18:03:04 +08:00
Anthony Calosa
57c7796424
Add "Snow" Cards
2016-06-01 12:53:33 +08:00
Anthony Calosa
fd89d51f84
tidying up
2016-06-01 09:32:28 +08:00
Anthony Calosa
9e50187740
re add the comparison
2016-06-01 09:26:58 +08:00
Anthony Calosa
a36b47e500
try to fix psp compilation
...
travis error:
../projects/mtg/src/ManaCost.cpp:263:23: error: unused variable
‘counterCheck’ [-Werror=unused-variable]
2016-06-01 09:14:47 +08:00
Anthony Calosa
a454c3e564
Snow
...
Mana produced by snow permanent
2016-06-01 08:31:19 +08:00
zethfoxster
26b30cb20d
ok sorry about the confusion, so the issue was with {1}{c} and how its handled. we only need to replace the adding of colorless in the manapool, the old colorless is still very very valid and should be left in place as is.
...
{1} can be paid with anything
{c} is a mana supertype, it pays for diamond and colorless.
however all card such as "sol ring" now add diamond instead of old colorless.
reverted waste to {c}, but moved it under counters to avoid crashes. parse for a counter if its not a counter than parse {c} otherwise we would end up with case where it was parsing {c} instead of building counters or vice versa.
2016-05-31 18:41:36 -04:00
zethfoxster
7639e18c39
whoops heres the other half. tested with following arbor elf test card
...
[card]
name=Arbor Elf
auto={0}:add{1}
auto={0}:add{r}
auto={0}:name(waste) add{waste}
auto={waste}:life:1
auto={3}:damage:1
auto={1}{waste}:moveto(mybattlefield) target(<2>*|mylibrary)
text={T}: Untap target Forest.
mana={0}
type=Creature
subtype=Elf Druid
power=12
toughness=12
[/card]
2016-05-30 17:46:51 -04:00
zethfoxster
8a6b4a49f5
deckstats crash when "unlock cards" is used #668
2016-05-30 01:04:55 -04:00
Anthony Calosa
00adb20dc7
super rare loop in ai combos and fix #667
...
thanks zeth
2016-05-30 01:17:53 +08:00
Anthony Calosa
22d4cbbd1e
add "colorless" manacost
...
The symbol {C} will be used going forward to represent one colorless
mana. The numerical and variable mana symbols ({1}, {2}, and so on,
including {X}) will still be used, but only to represent costs that can
be paid with any type of mana.
example card: To cast Spatial Contortion, you pay two mana: one generic
(that's the {1}) and one colorless (that's the {C}). The generic mana
cost can be paid with any type of mana—that means any color or
colorless. But the {C} is different. That can be paid only with
colorless mana.
2016-05-30 01:16:19 +08:00
Anthony Calosa
c472a0215d
Bug Fix
...
Fix send to library as a cost and add support for moving a card to
graveyard as a cost(cards like Void Attendant from Battle for Zendikar)
2016-05-29 17:56:33 +08:00
Anthony Calosa
506adf63c9
fix type
...
Ajani Steadfast forcefield for play and planeswalker only..
2016-05-29 14:41:31 +08:00
Anthony Calosa
d4715ddc81
ajani steadfast
...
ajani steadfast emblem
2016-05-29 14:31:29 +08:00
Anthony Calosa
d7fd36ddeb
Indicator
...
Green border indicator for pay zero, can play from exile or can play
from graveyard cards...
2016-05-29 14:29:34 +08:00
Anthony Calosa
18430dca25
Fix summoning sickness
...
Cards like control magic (using alias=1194) always resets the summoning sickness, commenting this solves the problem...
2016-05-28 13:47:03 +08:00
Anthony Calosa
7a34543004
Nasty memleak crashing devices and its fix. #664
...
thanks zethfox
2016-05-26 09:42:17 +08:00
Anthony Calosa
cccc21c035
changed alias
2015-11-13 05:45:17 +08:00
Anthony Calosa
cd1b629191
Fix Segmentation Fault & Formatting
2015-11-10 11:58:36 +08:00
Anthony Calosa
406f68ac5b
Overload Cards
...
the alias is for the Overload Check and Alternate Cost Restriction...
???Bestow???
2015-11-09 19:04:31 +08:00
Anthony Calosa
a22991758f
mana producer for lands you/opponent could produce
...
reflecting pool, exotic orchard...
2015-11-08 18:18:33 +08:00
Anthony Calosa
6f4cf9e941
Aluren & Omniscience
...
MayAbility + resolve instead of
MenuAbility + addtogame for dredge???
2015-11-07 19:16:31 +08:00
Anthony Calosa
e35c9f6087
AI plays zerocast cards, Update Rules folder!
...
Its basic pay zero for now...
Omniscience is possible :)
2015-11-07 09:59:30 +08:00
Anthony Calosa
71390046f5
anyzone for cdaactive
...
should handle most of them except sewer nemesis, chameleon colossus
2015-11-06 19:47:30 +08:00
Anthony Calosa
1c8852a7a2
Manacost Changes
...
todo: kicker (other possible additional costs?) and change rule keyword
to payzerorule...
2015-11-05 23:25:39 +08:00
Anthony Calosa
536a0e429a
AI considers playing from exile and graveyard
2015-11-05 07:17:58 +08:00
Anthony Calosa
4f54e30e0e
Libraryeater and Canplayfromexile
...
extend canplayfromgraveyard with canplayfromexile
libraryeater for undead alchemist
2015-11-05 07:16:49 +08:00
Anthony Calosa
60ba4e3eeb
altercost should affect retrace, flashback, buyback costs
2015-11-04 06:41:59 +08:00
Anthony Calosa
7303c7c253
chooseacolor indicator on some cards
...
alias = 0000 plus chooseacolor ability...
2015-11-02 00:15:58 +08:00
Anthony Calosa
1bd3b7743b
bug fix
2015-11-01 21:59:54 +08:00
Anthony Calosa
3a9b4f3491
parenthesis...
2015-10-31 15:23:39 +08:00
Anthony Calosa
c580d89c94
Altercost, Exile Zone & Handsize Modifier
2015-10-31 10:59:37 +08:00
Anthony Calosa
8793feb9ba
Altercost
...
Altercost alter cards to be cast...
Removed Trinisphere temporarily...
2015-10-30 07:11:16 +08:00
Anthony Calosa
40db1180df
pay zero
...
todo: all zones
2015-10-29 06:38:59 +08:00
Anthony Calosa
d2f3e2cd60
Castcard, Rebound and other fixes
2015-10-27 19:44:22 +08:00
Anthony Calosa
56fc735b36
Parenthesis
...
Try to fix PSP compilation
2015-10-27 07:05:57 +08:00
Anthony Calosa
4853c8d314
Exile Corrections
...
Todo: Update tests to include exile card count...
2015-10-27 01:03:24 +08:00
Anthony Calosa
cdf94b281f
exile zone
...
enabled exile zones for both players
2015-10-26 19:14:50 +08:00
Anthony Calosa
cf0f9d43fa
exile zone
...
player only, todo opponent and ability activation for exile
2015-10-26 06:50:19 +08:00
Anthony Calosa
0594822872
added card equipped event
2015-10-25 17:55:45 +08:00
Anthony Calosa
378a54fb62
puresteel paladin support
...
rehook and newhook for equipments inplay...
retarget and newtarget don't support stonehewer basic because the card
is refreshed and stone hewer basic creates equipment/s as tokens...
2015-10-23 15:25:30 +08:00
Anthony Calosa
704f7f4494
TrDamaged changes
...
@damaged/combatdamaged/noncombatdamaged(who) -> static version
@damageof/combatdamageof/noncombatdamageof(player) -> current controller
of the card
@damagefoeof/combatdamagefoeof/noncombatdamagefoeof(player) -> current
opponent of the card
combat/noncombat damaged - done...
TODO: @damaged cards
2015-10-21 22:03:21 +08:00
Anthony Calosa
3b0cd389e5
TrLifeGained changes
...
@lifed/lifeloss(who) -> static version
@lifeof/lifelostof(player) -> current controller of the card
@lifefoeof/lifelostfoeof(player) -> current opponent of the card
2015-10-21 12:25:08 +08:00
Anthony Calosa
21eea225af
TrcardDrawn changes
...
@drawn(who) -> static version
@drawof(player) -> current controller of the card
@drawfoeof(player) -> current opponent of the card
2015-10-21 10:16:19 +08:00
Anthony Calosa
2178018b18
Persist and Undying goes to the stack
2015-10-20 21:56:49 +08:00
Anthony Calosa
7810c65862
added Raid support
...
thisturn(creature[attacking]|mybattlefield)~morethan~0 only triggers
once... use raid keyword... if raid then blah...
2015-10-20 11:09:57 +08:00
Anthony Calosa
9f8d2b2d46
take 2
2015-10-19 21:48:59 +08:00
Anthony Calosa
3bcb2985f9
try to fix compile error on psp
2015-10-19 20:15:51 +08:00