Commit Graph

6784 Commits

Author SHA1 Message Date
Anthony Calosa 1c60ba6e7f crash fix
when you generate a castcard, then exit the game, an exception occurs to
SAFE_DELETE(cards[i]->previous) && SAFE_DELETE(cards[i]) in
mtggamezones.cpp line 548 and 549.
2017-02-20 22:06:56 +08:00
Anthony Calosa 75cbaf0f06 update mana producer
change && to andability
2017-02-19 22:44:33 +08:00
Anthony Calosa de1dc6828d try to fix phase name
sometimes its invalid phase name
2017-02-19 22:11:54 +08:00
Anthony Calosa e6bf23e536 add saclands cost
sacrifice all lands {saclands} cost
2017-02-19 22:11:16 +08:00
Anthony Calosa 5b16ff4a69 bypass update when reveal display is still active 2017-02-19 21:11:24 +08:00
Anthony Calosa ed42c3fd29 support andability in mana producer
so cards that parse mana abilities can be read (reflecting pool. etc..
fixes issue #700 but we need to update the code from add{mana} && do
something to add{mana} and!( do something)! )
2017-02-19 21:11:02 +08:00
Anthony Calosa 9cd67eedc1 refactor canproducemana 2017-02-19 21:08:07 +08:00
Anthony Calosa acc589bdb6 universal border 2017-02-19 10:16:25 +08:00
Anthony Calosa 2d78512ca2 bypass gamestate check
when there is an opened display for reveal... it will update after its
finished...
2017-02-19 10:14:43 +08:00
Anthony Calosa 84023a5f66 test fix 2017-02-18 21:36:38 +08:00
Anthony Calosa 443f378d1b updated some card
a lot of cards needs update though...
2017-02-18 21:20:45 +08:00
Anthony Calosa d4989d7576 replaced alphabeta 2017-02-17 21:31:41 +08:00
Anthony Calosa 860b0b64e3 Adjust Extracost string 2017-02-17 19:17:23 +08:00
Anthony Calosa ba40253a46 Phase out Event & Trigger 2017-02-17 14:25:33 +08:00
Anthony Calosa c6c4c17b30 try to fix parenthesis
:(
2017-02-16 21:57:17 +08:00
Anthony Calosa 5e46016c4d added new legend & pw rule, trigger & event
added new pw & legend rule (i just leave the old rules behind and
disabled it), added phasesin, faceup, copiedacard event, added facedup &
phasedin trigger.
2017-02-16 21:26:03 +08:00
Anthony Calosa da874738d6 castcard generated card 2017-02-16 17:10:06 +08:00
Anthony Calosa 0a68a056d8 refactor canproducemana 2017-02-16 16:55:13 +08:00
Anthony Calosa 5a3a32462d first set of changes
updated some cards
2017-02-16 02:44:42 +08:00
Anthony Calosa c70762f871 readded modified rule 2017-02-16 02:39:03 +08:00
Anthony Calosa 6c28496dd8 reduced efficiency 2017-02-16 00:42:54 +08:00
Anthony Calosa 90ed6e1fdd chooseacolor indicator
replaced text with color filled rectangle
2017-02-16 00:28:07 +08:00
Anthony Calosa 60d7675a36 necroed
hide cards using necroed
also fix castcard target if its a land.
2017-02-15 10:27:56 +08:00
Anthony Calosa a9b42127d1 added mypos
mypos returns cards zpos (zone position)
2017-02-15 07:30:13 +08:00
Anthony Calosa 01fdcfdfec zpos and zone display
added zone position (adjust dynamically), also inverts the display of
the zone so we always get the top/recent one... the library zpos is
inverted so if we choose to target the top 5 zpos like
target(*[zpos>=5|mylibrary), it will do from top to bottom... this is
only for AI so we can add alternate code for them since they cant use
reveal atm, we can make them target within allowed range...
Also this commit disabled the  new legend and planeswalker rule since it
conflicts with reveal ability, unless I/We figure it out, I recommend to
use the old one...
2017-02-14 22:30:50 +08:00
Anthony Calosa 2d383e237f hiddenview
if the target is in library and the source has the hiddenface ability
then hide it
2017-02-14 05:09:28 +08:00
Anthony Calosa 143b3d98b1 modified guiopponenthand 2017-02-13 20:11:07 +08:00
Anthony Calosa 6f4377de76 Inverted this
we transform with no value.. get the value first then transform it to
lower...
2017-02-13 17:54:55 +08:00
Anthony Calosa 722056e78a moved this 2017-02-13 10:43:22 +08:00
Anthony Calosa 21710ddfb3 refactor AAMover getmenu text 2017-02-13 09:35:05 +08:00
Anthony Calosa 13f590c6a2 hiddenface
if the source has hiddenface ability then all of its targets will not
show on the stack ability, useful for cards like demonic tutor etc...
2017-02-13 08:26:06 +08:00
Anthony Calosa d604ae2d77 add gravecast restriction
if gravecast then do something
-> translates when this card was cast from a graveyard
2017-02-13 07:49:37 +08:00
Anthony Calosa 7a35c253cb refine display 2017-02-12 19:43:10 +08:00
Anthony Calosa b5129f702e add multi target quads
stack displays target quads up to 10 targets. also displays actual
number of targets...
2017-02-12 10:29:13 +08:00
Anthony Calosa 6b1e51b4f6 revised masks 2017-02-12 07:08:31 +08:00
Anthony Calosa 3776bff594 add effeciency to use the reveal ability
aicode overrides this on resolve and it seems most cards that have this
has possitive effect
2017-02-11 22:04:20 +08:00
Anthony Calosa 3afcc7fdf9 fix hang aicode ability controller
aicode should be dedicated for AI only...
2017-02-11 18:25:45 +08:00
Anthony Calosa e74921cbdf fix crash for multiple andAbility 2017-02-11 16:17:31 +08:00
Anthony Calosa e9c33e3bea revised shocklands 2017-02-11 01:28:14 +08:00
Anthony Calosa 36d4db49ca bug fix 2017-02-11 00:04:17 +08:00
Anthony Calosa 02dce1af2e crash fix
transform getaicustomcode to lower
2017-02-10 21:00:18 +08:00
Anthony Calosa 37fa69fc39 added AER cards 2017-02-10 16:10:15 +08:00
Anthony Calosa 8e47927805 some corrections 2017-02-10 16:03:03 +08:00
Anthony Calosa f1c1161da5 added AER set 2017-02-10 16:02:29 +08:00
Anthony Calosa 392382e3e3 missing AER 2017-02-10 16:00:03 +08:00
Anthony Calosa d6403918b6 crash fix
corrected some cards that crashes the game
2017-02-10 13:57:46 +08:00
Anthony Calosa fc9b0b233c add attacker mask 2017-02-10 10:50:09 +08:00
Anthony Calosa f45e975b14 add remake keyword
alternative for becomes for use inside transforms...
ex. emblem transforms((,newability[target(land)
remake(creature:1/2:red)])) forever dontremove
2017-02-09 22:38:00 +08:00
Anthony Calosa 7fa204fc9c forgot to change this 2017-02-09 19:15:32 +08:00
Anthony Calosa f284a9691b some fixes
fixes fabricate
fixes lorded lands
add propagate keyword (like proliferate but it increases all counters)
cards with proliferate can choose a player now
2017-02-09 15:22:10 +08:00