Log in

Params to the targetting function

This is for calls to 47E9D0. Counterspells call 47DB90 and may have slightly different params.

004D9088   6A 01            PUSH 1 <- is cancel allowed (1 for yes)
004D908A   68 AC5C7100      PUSH Magic.00715CAC <- always this
004D908F   6A 00            PUSH 0
004D9091   6A 00            PUSH 0 <-- this is 10 for 'blocking creature', 1 for 'tapped creature'
004D9093   6A 00            PUSH 0 <-- this is 80 for 'non-wall', 1 for 'wall'
004D9095   6A FF            PUSH -1
004D9097   6A FF            PUSH -1 <-- this is 2002 for dwarven warriors
004D9099   6A 19            PUSH 19 <-- required creature type
004D909B   6A FF            PUSH -1 <-- this MAY be the index for multi-targeted spells
004D909D   6A 00            PUSH 0
004D909F   6A 00            PUSH 0 <-- required color
004D90A1   6A 00            PUSH 0 <-- illegal color? (a lot of procs call 401E20 and set the result here.  maybe that is the slight of mind proc?)
004D90A3   6A 00            PUSH 0
004D90A5   6A 00            PUSH 0 <-- illegal card type
004D90A7   6A 02            PUSH 2 <-- required card type (42 = artifact OR creature)
004D90A9   68 00020000      PUSH 200 <-- 1000 for player, 200 for pemrmanent, 1200 for both
004D90B1   50               PUSH EAX <-- valid player / controller 1 (oddly, disenchant sets this to 2)
004D90B2   50               PUSH EAX <-- valid player / controller (2 for both)
004D90B3   50               PUSH EAX <-- valid player / controller 2