Page 1 of 1

quick question

PostPosted: 13 Mar 2009, 18:45
by jatill
Does anyone know how to tell if a card is a creature, once you have it's id and owner as params?

Re: quick question

PostPosted: 13 Mar 2009, 23:07
by HarryPitfall
I don't know exactly, but I firmly believe that this code uses cardtype on magic.exe... is from scion of oona... i use the same piece of code on Spidersilk Armor, and works (only give reach to creatures)

004DF6FF A1848C7300 mov eax, [$738c84]
004DF704 8B0D8C397A00 mov ecx, [$7a398c]
004DF70A E83123F2FF call -$ddccf ($401a40)
004DF70F 7566 jnz +$66 ($4df777)
004DF711 8B466C mov eax, [esi+$6c]
004DF714 C1E003 shl eax, 3
004DF717 8A8CC038707E00 mov cl, [eax+eax*8+$7e7038]
004DF71E F6C102 test cl, 2 <- 2 is creature in Card Type inside Magic.exe
004DF721 7454 jz +$54 ($4df777)

Re: quick question

PostPosted: 14 Mar 2009, 01:27
by jatill
thanks!