Page 1 of 1

[engine limitation]Sorin Markov

PostPosted: 25 Mar 2014, 20:44
by BAgate
Describe the Bug:
The ultimate is approximated as Time Walk.

Which card did behave improperly ?
Sorin Markov

Which update are you using?(date,name)Which type(Duel,Gauntlet,Sealed Deck)
2014/02/18: Born of the Gods v2 - DUEL

What exactly should be the correct behavior/interaction ?
Should allow control.

Are any other cards possibly affected by this bug ?
-

Re: Sorin Markov

PostPosted: 27 Mar 2014, 14:23
by Gargaroz
Yeah, it's an approxiamtion and I don't think this is fixable at all as the original effect couldn't be mimicked.

Re: [engine limitation]Sorin Markov

PostPosted: 28 Mar 2014, 11:53
by Korath
Probably easier than Deflection. A lot of it we can do already, or do pretty easily:
  • override who_chooses in select_target_impl().
  • override who_chooses in do_dialog().
  • override who_chooses in show_deck() and its front ends.
  • show opponent's hand.
  • choose attackers and blockers.
Selecting spells to play and permanents to activate, both spontaneously and during charge_mana(), is more difficult, but not insurmountable.

The biggest stumbling block is all the places in C where a choice is forbidden to the AI - it doesn't just forbid them to the AI, it forbids them to player #1, even if that's a human in a multiplayer game, or a human's controlling the choice. (Probably the largest reason why multiplayer is broken; one of the cards doing this is the Rules Engine.) I've been replacing these by an IS_AI() macro as I've noticed them, but there's still hundreds of instances to go.

Re: [engine limitation]Sorin Markov

PostPosted: 29 Mar 2014, 07:17
by Aswan jaguar
The posts under Korath's post above have been moved to Development as asked:
viewforum.php?f=56