[Fix]Legion's Initiative crashes,once fixed no exile & haste

Describe the Bug:
Legion's Initiative has two issues:
Which card behaved improperly?
Legion's Initiative
Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
Version 8-2020 a62926f
Duel
What exactly should be the correct behavior/interaction?
Creatures should be exiled and return with haste.
Are any other cards possibly affected by this bug?
No.
The reason for the crash is that the loop counts in the wrong direction. The relevant fixed code piece is:
Legion's Initiative has two issues:
- Activate the ability and the game will crash. The required fix is attached.
Once this is fixed it doesn't give haste (to check play the Savannah Lions beforehand). Instead it plays the first card in my hand (Lightning Bolt).
Which card behaved improperly?
Legion's Initiative
Which update are you using? (date, name)Which type? (duel, gauntlet, sealed deck)
Version 8-2020 a62926f
Duel
What exactly should be the correct behavior/interaction?
Creatures should be exiled and return with haste.
Are any other cards possibly affected by this bug?
No.
The reason for the crash is that the loop counts in the wrong direction. The relevant fixed code piece is:
- Code: Select all
int i;
for(i=150; i>-1; i--){ // <-- was i++ before
if( marked[i] ){