quick question
Discuss Upcoming Releases, Coding New Cards, Etc.
PLEASE DO NOT REPORT BUGS HERE!
PLEASE DO NOT REPORT BUGS HERE!
Moderators: BAgate, drool66, Aswan jaguar, gmzombie, stassy, CCGHQ Admins
quick question
by jatill » 13 Mar 2009, 18:45
Does anyone know how to tell if a card is a creature, once you have it's id and owner as params?
Apps by jatill: http://www.slightlymagic.net/wiki/Other_Apps_by_jatill
Re: quick question
by HarryPitfall » 13 Mar 2009, 23:07
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)
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)
- HarryPitfall
- AI Programmer
- Posts: 175
- Joined: 31 May 2008, 00:14
- Has thanked: 1 time
- Been thanked: 3 times
Re: quick question
by jatill » 14 Mar 2009, 01:27
thanks!
Apps by jatill: http://www.slightlymagic.net/wiki/Other_Apps_by_jatill
3 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 37 guests