zethfoxster
a8cbdafe6e
unused variables.
2016-07-09 13:12:58 -04:00
zethfoxster
2e92838364
fixed an issue with dredge, where dredge is offered even though theres only one dredger on cards that draw multiple.
2016-07-09 11:38:25 -04:00
zethfoxster
3467c976a9
Merge pull request #14 from WagicProject/master
...
getting master
2016-07-09 08:54:13 -04:00
Anthony Calosa
cf362f1a6a
Update _tests.txt
2016-07-09 16:50:45 +08:00
Anthony Calosa
3b2ea8ea98
Create previousbattlefield.txt
2016-07-09 16:50:07 +08:00
zethfoxster
f82bc39473
ok found the massive draw, it was trenisphere. the card lords every single card in the game a mana modifier. affinity normally didnt see these issues cause the cards effected are just either in your hand or the source themselves. but when trin was put in play it would cause 120 cards to have to update thier cost, which can not be done in acceptible cpu time. anyways, this should solve the issue.
...
that card is a desaster, please do not add any more code to support it, though with it in its current state im wondering why its not in supported and is placed in borderline.
2016-07-09 01:24:55 -04:00
zethfoxster
b5976035e3
actually i changed my mind, instead lets update affinity after events are processed, that should take into account cards untapping,moving, ect....
2016-07-09 00:58:19 -04:00
zethfoxster
14f65c55b5
going to try only updating affinity() when cards move from anywhere to anywhere to help minimize the calls to this function. this atleast allows me to debug albeit slowly the follow issue ive been working to fix. not sure when this was introduced but it was not happening when i first coded this function. manacost->copy() did not slow the game to a crawl.
...
anyways, trinisphere and any card containing
other={H(land[basic]|mybattlefield)}{1} name(Pay /1/ and Return a Basic Land to Hand)
cost such as this with a CD tc.
2016-07-09 00:48:08 -04:00
zethfoxster
ee91e0698d
corrected some logic with computenewcost.
...
there is a bug im working on with newaffinity and cards that contain targetchoosers with CD tcs.
experimental change also added with lords. im making the abilities grants by lord forcedalive until the lord is removed from game.
some instances of forcedalive in master primitives did not contain abilities which resolved, meaning they would contenue even though the source had left play.
2016-07-09 00:11:21 -04:00
zethfoxster
242c7b623f
Merge pull request #13 from WagicProject/master
...
getting master
2016-07-08 17:54:14 -04:00
zethfoxster
c0c52e57df
what a dumb typo. surprised it was in the engine that way for so long.
2016-07-08 17:48:27 -04:00
Anthony Calosa
847e9dffc2
revised
2016-07-08 22:57:47 +08:00
Anthony Calosa
10d81bd47a
try to fix segmentation fault
2016-07-08 18:46:07 +08:00
Anthony Calosa
3aa64697d2
"previousbattlefield" for mover
2016-07-08 17:39:47 +08:00
Anthony Calosa
366de00950
Softcoded some card alias
2016-07-08 15:32:13 +08:00
Anthony Calosa
607301b35d
Update _tests.txt
...
added test for lifetap vs shocklands
2016-07-08 10:19:29 +08:00
Anthony Calosa
9f5c3e9942
Create lifetap2.txt
2016-07-08 10:18:00 +08:00
Anthony Calosa
d34ecff3aa
Updated Primitives
...
for cards that use tap(noevent)
2016-07-08 10:02:54 +08:00
zethfoxster
0ff7e54ff4
this is a good enough fix as waste is colorless which is artifact, and all we do is barrow the kbitmask from land.
2016-07-07 20:47:25 -04:00
zethfoxster
61d22eb498
added a modifier for "tap" for cards that say "enters the battlefield tapped", they are supposed to be tapped when put in play, which mean they should not trigger @tapped(.
...
for cards with the line or options "do/pay MANA or this card enters the battlefield tapped"
simply change it to tap(noevent)
it will simulate the card being placed into play already tapped.
2016-07-07 19:02:41 -04:00
Anthony Calosa
4da7f77089
Cleanup tabs
2016-07-07 13:25:36 +08:00
Anthony Calosa
c544206437
Sorted Primitives
2016-07-07 13:10:30 +08:00
zethfoxster
066c40d9c1
close library, exile, or graveyard after we "move" cards from it.
2016-07-06 22:04:59 -04:00
zethfoxster
8265253388
fixed a issue with dredge where it was entering the stack even tho dredging itself is a replacement effect.
2016-07-06 20:26:18 -04:00
zethfoxster
7b8b197a35
another fix
2016-07-06 19:08:41 -04:00
zethfoxster
867e1b8731
fixes
2016-07-06 18:24:45 -04:00
zethfoxster
5cdcf47994
merged my changes to the base
2016-07-06 18:08:33 -04:00
zethfoxster
a500920bb2
Merge pull request #11 from WagicProject/master
...
got it
2016-07-06 17:57:38 -04:00
zethfoxster
a748e0337d
trying to get my commit in
2016-07-06 17:56:17 -04:00
zethfoxster
2ca7b2310b
trying to manuelly add changes
2016-07-06 00:43:11 -04:00
zethfoxster
861366dd71
Fixed the memleaks caused by computeNewCost, moved them to gameobserver where affinity takes place, removed repeative code that was in game observer, moved the game observer components into computenewcost, removed the calls for "new mana" in all alternative play type that were added with this function.
2016-07-06 00:02:15 -04:00
Anthony Calosa
1d80d97d22
Shackled highlight border
2016-07-06 07:55:10 +08:00
Anthony Calosa
935849142c
replaced alias with shackler
2016-07-06 06:37:27 +08:00
zethfoxster
4e048f775d
Merge pull request #8 from WagicProject/master
...
getting master
2016-07-05 18:37:14 -04:00
Anthony Calosa
f45adb5b9e
removed alias 1111
2016-07-06 06:28:42 +08:00
Anthony Calosa
d4cc7ca232
removed alias that display chosen color
2016-07-06 06:21:45 +08:00
Anthony Calosa
51d06d8234
removed alias for overload
2016-07-06 05:23:25 +08:00
Anthony Calosa
16f7ae54b8
Fix Deck Mana Symbol Rendering
...
deckmanaColors was increased to 7, made this >=6 so it's compatible with
old deck stats
2016-07-06 04:26:01 +08:00
Anthony Calosa
e15734d17e
White border for Deckmaster Set
2016-07-06 04:24:07 +08:00
Anthony Calosa
2cb773dd48
Added Yisan and Zameck
2016-07-06 04:23:46 +08:00
Anthony Calosa
09672ce89b
Added Delver of Secrets & Tasigur
2016-07-05 23:33:55 +08:00
Anthony Calosa
f8b5519ced
Added some reveal cards
2016-07-05 15:13:19 +08:00
Anthony Calosa
9847edbce1
Added MMA
2016-07-05 10:07:07 +08:00
Anthony Calosa
19789b6d90
Added Commander 2015 set
2016-07-05 08:22:43 +08:00
zethfoxster
c018e3dcc2
fixed a ton of memleaks, narrowed down the memleaks to just the computeNewCost function.
...
still working on a fix for this.
2016-07-04 15:13:35 -04:00
zethfoxster
2b8f1b350c
added bonus events for eldrazi and werewolves
2016-07-04 11:18:07 -04:00
zethfoxster
76f1591b58
removed WParsedInt "morethanfour", "plusone","plustwo","plusthree"
...
added 2 things
first plus/plusend, minus/minusend
written many ways damage:type:*:myhandminus2minusend
would deal damage equal to the cards in my hand -2
damage:type:creature:mybattlefieldplustype:creature:opponentbattlefieldplusend
damage equal to the number of creatures in my battlefield plus the number of creatures in opponents battlefield.
now there are special cases where we need to know the value BEFORE applying multipliers. life: is one of them. I added "math/mathend"
auto=@each opponent upkeep:target(opponent) life:-mathtype:*:myhandminustype:*:opponenthandminusendmathend opponent
in the example above, without "math" the "-" would be used for the first section of the minus parsed int, instead of being applied as a multiplier for the total of the number.
this is extremely flexible, and can contain any Wparsed int in both parts, you can add or subtract and use the differences between to values as the value of the parsedInt.
2016-07-04 10:43:07 -04:00
Anthony Calosa
a392e631d0
Update cards that has both tap and sacrifice
2016-07-04 21:30:42 +08:00
Anthony Calosa
f3da8f7353
Merge remote-tracking branch 'refs/remotes/WagicProject/master'
2016-07-04 21:07:58 +08:00
Anthony Calosa
fda4d43678
added missing cards Mirari's Wake and the likes
2016-07-04 19:55:19 +08:00