Erwan
- fixed divergent growth (issue 243). Unfortunately the underlying issue is quite complex, and Wagic doesn't handle it very well. Basically, all "until end of turn" effects run the risk of being partially deleted before the end of the turn, leading to segfaults or memory leaks. This is because some abilities' "clone" method doesn't actually clone them entirely... The fix for divergent growth is a hack that works only for lords+mana producer combination, but I need a more "generic fix" in the long run...
This commit is contained in:
@@ -155,6 +155,7 @@ death_grasp.txt
|
||||
death_ward.txt
|
||||
deja_vu.txt
|
||||
dingus_egg.txt
|
||||
divergent_growth.txt
|
||||
doomed_necromancer.txt
|
||||
double_strike_i145.txt
|
||||
double_strike2_i145.txt
|
||||
|
||||
21
projects/mtg/bin/Res/test/divergent_growth.txt
Normal file
21
projects/mtg/bin/Res/test/divergent_growth.txt
Normal file
@@ -0,0 +1,21 @@
|
||||
#Bug Divergent growth
|
||||
#see http://code.google.com/p/wagic/issues/detail?id=243
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
hand:divergent growth
|
||||
manapool:{G}
|
||||
inplay:forest
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
divergent growth
|
||||
forest
|
||||
choice 2
|
||||
[ASSERT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
graveyard:divergent growth
|
||||
inplay:forest
|
||||
manapool:{W}
|
||||
[PLAYER2]
|
||||
[END]
|
||||
Reference in New Issue
Block a user