Anthony Calosa
7322d4da8b
fix castcard opponent spell
...
the casted non-permanent card from opponent will now move to its owner
graveyard...
2017-01-30 07:09:21 +08:00
Anthony Calosa
348ada3f0d
revised aacopier
...
I think we still need to change legend to a trigger once it detects
multiple legends in play then trigger it at once with targetchooser to
select which cards to sacrifice as state based... vector of unique
names or id or mtgcardinstance?
2017-01-29 16:09:49 +08:00
Anthony Calosa
2c5f6d8332
Merge remote-tracking branch 'refs/remotes/WagicProject/master'
2017-01-29 10:29:10 +08:00
Anthony Calosa
e128d548f4
disable andAbility for aacopier
...
so it will not conflict with original legend rule...
2017-01-29 10:27:18 +08:00
Rolzad73
85f66a8fec
X11 build fixups
...
- fixed -Werror=misleading-indentation warning
- fixed -Werror=nonnull-compare warning on xll and QT builds
- PNG_LIBPNG_VER backward compatibily changes
- giflib backward compatibily changes
- resolved some undefs for X11 build
- silenced some small compile warnings in JGE Makefile
- added -DTIXML_USE_STL to remaining build types (PSP had it added)
- fixed x11 Boost incompatibility issue part of #548
- reworked PrecompiledHeader.h platforms used
2017-01-28 04:19:46 -05:00
Anthony Calosa
3e75d70632
revert this
...
I introduce more bugs than helped. I think there's alternative method
for this,,,
2017-01-28 13:23:30 +08:00
Anthony Calosa
60f6c683a3
test fix equipment
...
also added some primitive fixes, added macro for fabricate
2017-01-25 18:29:27 +08:00
Anthony Calosa
5c3a064746
aicode and revised legendary rule
...
added aicode for cards that uses reveal. since reveal cancels for ai,
aicode is the alternative code. use basic code only.
aicode=activate dosomething...
aicode - use with caution, its very basic atm and you must test each
card that uses it as it can cause crash.
legendary rule moved to game state based effect so it will not conflict
with cards with copy effects and andability. the legendary check applies
only when legendrule is found.
2017-01-24 16:10:35 +08:00
Anthony Calosa
7f6e96459c
added "energized" event
...
energizedof(player):do something
energizedfoeof(player):do something
also some fixes in the primitives
2017-01-23 11:41:19 +08:00
Anthony Calosa
d03ebdace8
Support for KLD and AER
...
Kaladesh & Aether Revolt
2017-01-18 22:13:51 +08:00
Anthony Calosa
7f8339aedf
revised "steal" ability
...
steal - gain control of target/s until it leaves battlefield or its
current controller loses control of the "stealer"...
2016-09-06 15:47:09 +08:00
Anthony Calosa
f957fca162
add custom name for generic reveal
2016-08-29 20:58:55 +08:00
Anthony Calosa
6e0b7e2c23
add missing break
2016-08-26 14:20:02 +08:00
Anthony Calosa
2a1bacdfa4
add "abilitycontroller" for dynamicability
...
for use inside ability$! dynamicability<who> !$ who
2016-08-26 11:23:52 +08:00
Anthony Calosa
9bcc54c56c
add "recent" & "raidcount"
...
the recent attribute is to parse new cards entered play, then turns
itself to 0 if some stuff happened since it's already in play...
2016-08-25 03:40:38 +08:00
Anthony Calosa
1cd6f00c59
add manapool count
...
also add getStringValue for menutext
2016-08-25 00:17:16 +08:00
Anthony Calosa
ce92679be0
add AACloner andAbility
2016-08-22 10:18:23 +08:00
Anthony Calosa
15a8437d79
check imprinted card
...
fix crash
2016-08-21 11:28:17 +08:00
Anthony Calosa
b7307adc10
fix copier copying a copier
2016-08-14 14:28:14 +08:00
Anthony Calosa
27145bdabe
revised fix for copier
2016-08-13 20:12:55 +08:00
Anthony Calosa
8530292fef
Revert my Graphic changes
...
I think it's the one who cause those crashes
2016-08-13 16:45:46 +08:00
Anthony Calosa
960d4d35fb
remove my changes in aacopier
...
since I introduce a weird crash bug with it.
2016-08-12 17:14:52 +08:00
Anthony Calosa
a378e3a72d
fix extracosts on cumulative upcost
...
since Manacost::copy copies, extracost, if this is enabled, extracost is
doubled. tested with Aboroth
2016-08-12 07:43:39 +08:00
Anthony Calosa
7e14b2fc5a
exception testsuite
...
the current implementation was clone must be recognized by id in the
scripted test.
2016-08-11 21:05:00 +08:00
Anthony Calosa
51016f9258
revised AACopier
2016-08-11 18:52:18 +08:00
Anthony Calosa
a10e7ab279
Revert "copy/flip limit"
...
This reverts commit 0c124327de .
2016-08-11 11:03:37 +08:00
Anthony Calosa
0c124327de
copy/flip limit
...
if the copy/flip is activated, it means it's already in the battlefield,
so "enters the battlefield" must not trigger...
2016-08-10 19:49:31 +08:00
Anthony Calosa
151905c5f3
Transform Trigger, Turnlimit for TrCardAddedtoZone
...
Cleaned primitives, and fix SOI cards (remove workarounds) todo(recheck
BFZ and OGW)
2016-08-10 01:54:24 +08:00
Anthony Calosa
807874ce5d
add andAbility support for AACopier
...
the granted ability must exists only if you copy a card, if you don't
copy any card, the source doesn't have any granted abillities.
2016-08-07 10:15:11 +08:00
Anthony Calosa
52fb40d543
AACloner & AACopier TokenAndAbility
...
if the token has andAbility, the cloner/copier also has that andAbility
also...
2016-08-04 02:12:59 +08:00
Anthony Calosa
0a0f6cdce9
fix crash
...
wrong parenthesis
2016-08-04 00:36:49 +08:00
Anthony Calosa
be899159f3
correction
2016-08-03 23:03:32 +08:00
Anthony Calosa
1aac2b8e75
Update AllAbilities.cpp
...
Try to fix IOS/MAC compilation
2016-08-03 21:23:38 +08:00
Anthony Calosa
4753f7bb51
andAbility on ATokenCreator, Extend AAFlip,
2016-08-03 16:10:53 +08:00
Anthony Calosa
969511953a
vector count of abilities
...
remove unused ones
2016-08-01 14:45:57 +08:00
Anthony Calosa
223e2e04b0
Correction
2016-08-01 11:44:07 +08:00
Anthony Calosa
d825c7e4ea
parenthesis
2016-08-01 04:49:04 +08:00
Anthony Calosa
c38c996773
Revised "putinplay" in castcard
2016-08-01 04:43:54 +08:00
Anthony Calosa
71a9ef00ee
Support transforms for nonpermanent
...
fix startled awake to persistent nightmare
2016-08-01 03:52:10 +08:00
Anthony Calosa
3b98da1d86
Fix Cloner ability
2016-07-31 18:46:07 +08:00
zethfoxster
1acdb40498
add some handling of reveal to avoid a crash in demo for AI.
2016-07-30 10:50:31 -04:00
zethfoxster
f2208389bd
same applies for scry
2016-07-30 10:20:19 -04:00
zethfoxster
018e35295a
fixed a crash in revealing, not sure why I thought it was a good idea to test testdestroy something that I just removed from the game. if anyone can find another crash with it, let me know which card causes it.
2016-07-30 10:13:58 -04:00
Anthony Calosa
1d2abeb20b
Minor Border changes
...
Also added copier values if it has copied a token or not...
2016-07-29 18:37:03 +08:00
zethfoxster
eea240d7f2
changing some of the logic to the previous fixes, we want to avoid using code that looks for specific card names.
...
currently we have kamiflip as the only defined flip type as it is treated differently from the others.
but we have room for more if needed now
doublefaced=kamiflip
sets the flip type of a card to the kamiflip style cards. since this is defined on cardprimitive level now, we might be able to do something different from the flipping animation. who knows.
commented out the forcing token triggers, it bypass targetchooser check. still working on a fix for this coming soon.
2016-07-27 20:03:25 -04:00
Anthony Calosa
a6fdd89e1d
Fix Copier
2016-07-27 15:19:11 +08:00
Anthony Calosa
b8bfe7acc1
Fix Flip/Transform Cards
...
If the card is a copier or a token, it cannot be transformed since it's
not a double face card. Also the copied card must be the "active" part
of a double faced card. Flip cards (kamigawa block) is not restricted by
this since its a single sided card. If the transformed card is cda, take
any damage into account (PT bonus is already in effect for cda)..
2016-07-27 14:39:39 +08:00
zethfoxster
54e86915b0
Merge pull request #33 from WagicProject/master
...
getting master
2016-07-26 22:46:06 -04:00
zethfoxster
4f0da67a83
fixed a condition where scry core wasnt triggering its after effect
2016-07-26 19:35:10 -04:00
Anthony Calosa
014ca36a4a
force event for token sacrifice
2016-07-27 07:11:30 +08:00