Useful memory addresses
This is what I found so far in the game, that can be useful for creating new cards:
004EF184 - Turn steps:
01 - Untap step
04 - Upkeep step
0A - Draw step
14 - Main step (before attack)
15 - Attack step
15 - Choose attackers
16 - Fast effects before blockers
17 - Choose blockers
18 - Fast effects before damage
19 - First strike damage step
1A - Regular damage step
1E - Main step (after attack)
1F - Beginning of end turn / Discard step
22 - End turn
004EF1C4 - Amount of cards in player's hand
004EF1C8 - Amount of cards in AI's hand
004EF404 to 004EF414 - Set values for use with call 42DE60, these set the mana to be taken from mana pool:
...04 - Black mana ...08 - Blue mana ...0C - Green mana ...10 - Red mana ...14 - White mana (for colorless mana use 42DE60 as usual)
0055CF10 to 0055CF15 - Check mana available with these and call 402BE0
...10 - Colorless ...11 - Black ...12 - Blue ...13 - Green ...14 - Red ...15 - White
00628670 - Current turn (0 - player, 1 - AI)
00738C84 - Active player (0 - player, 1 - AI)
007A398C - Active card (card ingame ID, NOT manalink.CSV ID)
