fireplace icon indicating copy to clipboard operation
fireplace copied to clipboard

When the card is discarded, it will enter the Zone.GRAVEYARD

Open shinoi2 opened this issue 6 years ago • 3 comments

when a card is milled, it should move to Zone.REMOVEDFROMGAME or Zone.SETASIDE when a card is discarded, "Cruel Dinomancer"(UNG_830) need a way to select them.

shinoi2 avatar Jul 27 '18 16:07 shinoi2

Yes I think you are right. The GRAVEYARD should store and only store all the DEAD minion, or the Resurrect BRM_017 will have a wrong choice range.

I tested with EX1_306 which justified my guess.

now the discard() is working in card.py

  1. log()
  2. set tags -> DISCARDED
  3. set Zone -> GRAVEYARD

so if a card is discarded, it has tags(or method called) like wisp.discarded() which has a True value.

tonyyyye avatar Jul 31 '18 10:07 tonyyyye

The problem is there is no such thing as the DISCARD zone, that was something I added later on. Hearthstone tracks a graveyard zone separately... we don't mimick that at this time. I dunno what to do about it.

jleclanche avatar Jul 31 '18 11:07 jleclanche

luckily we had preserved game.current_player.discarded. Maybe from this we can do something about it. When discarded, append this card to game.current_player.discarded[], or select/filter the ones that has method of discarded().

Also, if the mechanism 'discarded card always goes into graveyard' does not change, the Resurrect and its related cards needs modification.

tonyyyye avatar Aug 01 '18 01:08 tonyyyye