-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:
wagic.the.homebrew
2011-05-26 12:27:44 +00:00
parent ffda1d0548
commit a84eb8dc22
10 changed files with 96 additions and 72 deletions

View File

@@ -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

View 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]