Commit Graph

4890 Commits

Author SHA1 Message Date
Anthony Calosa c9d9d3d4d3 Random
I have a profile with 100+ decks and it seems with the previous code,
the random deck seems not random.
2015-09-19 13:05:16 +08:00
Anthony Calosa e25b78953c other indicators must be somewhere else 2015-09-19 10:29:02 +08:00
Anthony Calosa 81f0c916f5 readjustment 2015-09-19 08:04:26 +08:00
Anthony Calosa ef690f6438 update pt colors 2015-09-19 07:50:04 +08:00
Anthony Calosa 11124205e5 basic color code on PT
if a creature was damaged or has a negative toughness bonus, the pt
changes to crimson red, if the creature was not damaged and has power
buff, the color changes to spring green, normal was default white.
2015-09-18 20:16:28 +08:00
Anthony Calosa 6cd0474eca Bug Fix on Cloning Tokens 2015-09-18 19:56:02 +08:00
Anthony Calosa 13bb6dbe93 Update Token.cpp
Fix typo
2015-09-18 06:03:53 +08:00
Anthony Calosa 8c9a98e3e9 Update _tests.txt 2015-09-18 05:31:13 +08:00
Anthony Calosa 7ce05fb4fc CDA test # 2 2015-09-18 05:27:48 +08:00
Anthony Calosa 53153b237c CDA test # 1
Testing layer 7a, 7b and 7c :)
2015-09-17 22:50:21 +08:00
Anthony Calosa 478dea6af4 Tidy up a little... 2015-09-17 21:30:55 +08:00
Anthony Calosa e097d38347 Updated CDA cards 2015-09-17 18:39:33 +08:00
Anthony Calosa 6cba14181d support "other" in type:* parsing
if a card with a cleric subtype has an autoline like this:
othertype:cleric:battlefield, means that the targetchooser excludes that
card, only the other "cleric" are counted.
2015-09-17 11:16:29 +08:00
Anthony Calosa 76c48a8c4e Merge pull request #1 from WagicProject/master
Merged from WagicProject:master
2015-09-17 05:52:33 +08:00
Anthony Calosa 425b51de08 Fix for token cloning
Some tokens when cloned produces miscalculated PT(Using foreach,
aslongas and others that needs CDA). This should fix the issue. TODO:
add tests and updated mtg.txt ...
2015-09-16 20:36:58 +08:00
Anthony Calosa 8e057379ce Finally Fixed... :)
The issue last commit was the toughness is refreshed and the damage is
not reflected. This commit fixes the bug. Yey...
2015-09-16 10:45:43 +08:00
Anthony Calosa db649ddc96 Added Update on CDA
This controls whether to update Power and Toughness if we are setting
base PT or not. If we are setting base PT update the CDA but it will not
be applied since we have an effect that sets PT to a default base. If
there are no effect that sets base PT, apply it on CDA using
current/updated PT. The buffs are not affected. Yeah...
2015-09-16 09:34:32 +08:00
Anthony Calosa 6aab17d0b3 CDA complete
This fixes the bug I introduced lst time. The damage was not taking into
account, but this time the damage reflects...
TODO/TOFOLLOW: update test and update all cards that uses CDA :)
2015-09-16 06:42:02 +08:00
Anthony Calosa 72aaa18a35 CDA
CDA works by using "cdaactive" keyword on PT changes. Instead of
granting bonus, we modify the orig power and toughness since they are
dynamic PT. cdaactive are for cards like maro, tarmogoyf, etc. To
Follow/To Do: Additional Tests and other bug fix
2015-09-15 06:35:07 +08:00
xawotihs 743b260813 Adds control file 2015-09-13 23:50:21 +02:00
xawotihs 24187b8413 Enable usage of iOS resources from both xcode and theos makefile. Creates iOS package. 2015-09-13 20:54:25 +02:00
xawotihs acfd0bf104 Merge branch 'master' into iOS-Build 2015-09-13 18:42:31 +02:00
Anthony Calosa 59792b3456 X in manacost is always 0 except on the stack 2015-09-12 19:58:09 +08:00
Anthony Calosa fb9b0b8166 Added Konda's Banner 2015-09-12 19:37:35 +08:00
Anthony Calosa 11d68c0e27 Separated PT Modifiers, Fixed Changeling, Modified Counter as a cost
CDA Todo
2015-09-12 12:03:52 +08:00
Anthony Calosa 38145957af Update _tests.txt 2015-09-11 11:09:02 +08:00
Anthony Calosa 69bdac52c7 Create PT_M15_errata2.txt
Additional test
2015-09-11 11:07:48 +08:00
Anthony Calosa 10d7690ca6 Update PT_M15_errata.txt 2015-09-11 11:05:52 +08:00
Anthony Calosa b33a999458 Finally PT Calculation is fixed :)
I didn't take into account that the new bonus must be calculated on the
event the effect was destroyed... silly me... 🉑
2015-09-11 10:53:36 +08:00
Anthony Calosa d3a7ff7e11 reinitialize counters on destroy 2015-09-10 06:04:43 +08:00
Anthony Calosa c1e9fad271 added basepower and basetoughness
added these two so if we want to access original power and toughness, we
can point to origpower and origtoughness respectively.
2015-09-10 05:26:09 +08:00
Anthony Calosa 9d668342be PT should work fine now... 2015-09-10 00:26:20 +08:00
Anthony Calosa 62dd54c886 Base Power/Toughness Template as of M15
208.4. Effects that set a creature’s power and/or toughness to specific
values may refer to that creature’s
“base power,” “base toughness,” or “base power and toughness.” Other
continuous effects may
further modify the creature’s power and toughness. See rule 613,
“Interaction of Continuous
Effects.”
2015-09-09 22:18:13 +08:00
Anthony Calosa 93ed2b3bff added test 2015-09-09 22:17:37 +08:00
Anthony Calosa ef707e6d5d added basic offering support
usage tap lands to produce mana then sacrifice an offering... example
you have Guttersnipe in play, it has a mana cost of {2}{R}, and you have
Patron of the Akki in hand that costs {4}{R}{R}. You need to produce
{2}{R} mana first before casting Patron of the Akki, then choose
Guttersnipe as an offering.
2015-09-08 12:26:03 +08:00
Anthony Calosa a57e919e44 commented out unused variable... 2015-09-07 19:53:16 +08:00
Anthony Calosa 5bdb80db35 added DTK cards :) 2015-09-07 19:52:53 +08:00
Anthony Calosa 3f63997694 morethanfourcards for cards like black vise 2015-09-07 13:40:28 +08:00
Anthony Calosa 022a15a5e9 added epic cards, fixed maxcast bug
maxcast(*)0 - checks for the current action player of that turn, but
when you passes the turn to the opponent, you can cast instant or cards
with flash instead because you are not the current player, it mustcheck
the controller of the card with play restriction if he can play it or
not whether it your turn or the opponents turn.
2015-09-07 10:09:34 +08:00
xawotihs a6c331042a Removed minizip directory, moved ZipArchive, updated xcode project and iOS makefile 2015-09-06 21:12:15 +02:00
Xawotihs 17f5d8f0c2 Fixed reachability include path 2015-09-05 09:21:42 +02:00
Anthony Calosa 45b880ef76 updated test 2015-09-05 07:23:35 +08:00
Anthony Calosa da34530d98 added test for Gravebane Zombie 2015-09-05 07:20:28 +08:00
Anthony Calosa bcb75dac65 updated test 2015-09-05 06:50:33 +08:00
Anthony Calosa 74bba5263a added test for leyline of the void and rest in peace and darksteel colossus 2015-09-05 06:44:10 +08:00
Anthony Calosa 7878252692 support for Rest in Peace
tokens are not cards...
a little dirty...
2015-09-04 23:45:16 +08:00
Anthony Calosa 11a9766ba0 adds support for darksteel colossus, gravebane zombie 2015-09-04 16:47:11 +08:00
Anthony Calosa 5175f439a0 add support for yawgmoth's agenda and other similar cards 2015-09-04 12:05:19 +08:00
Anthony Calosa cbb603818a correction for untap cost
602.5a comprehensive rule as of  6/1/2014
2015-09-04 12:04:17 +08:00
xawotihs 7020121274 Merge branch 'master' into iOS-build 2015-09-04 00:04:59 +02:00