-Fix for issue 583 (fireball crash)
-- converted an array into a vector to avoid weird edge cases -- fixed bugs with array "backupTargets"
This commit is contained in:
@@ -275,6 +275,7 @@ fault_line.txt
|
||||
feral_hydra.txt
|
||||
fieldmist_borderpost.txt
|
||||
fire_tempest.txt
|
||||
fireball_i583.txt
|
||||
firebreathing.txt
|
||||
fists_of_ironwood.txt
|
||||
flagstones.txt
|
||||
|
||||
29
projects/mtg/bin/Res/test/fireball_i583.txt
Normal file
29
projects/mtg/bin/Res/test/fireball_i583.txt
Normal file
@@ -0,0 +1,29 @@
|
||||
#Bug: fireball can crash the game if unselecting a target
|
||||
#see http://code.google.com/p/wagic/issues/detail?id=583
|
||||
#Target 8 creatures and remove 1 of them
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:fireball
|
||||
manapool:{7}{R}{R}{R}{R}{R}{R}{R}{R}
|
||||
inplay:raging goblin,Akrasan Squire,Alpha Myr,Ambush Party,Apprentice Wizard,Arbor Elf,Aven Squire,Bay Falcon
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
fireball
|
||||
raging goblin
|
||||
Akrasan Squire
|
||||
Alpha Myr
|
||||
Ambush Party
|
||||
Apprentice Wizard
|
||||
Arbor Elf
|
||||
Aven Squire
|
||||
Bay Falcon
|
||||
Alpha Myr
|
||||
fireball
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
graveyard:raging goblin,Akrasan Squire,Ambush Party,Apprentice Wizard,Arbor Elf,Aven Squire,Bay Falcon, Fireball
|
||||
inplay:Alpha Myr
|
||||
[PLAYER2]
|
||||
[END]
|
||||
Reference in New Issue
Block a user