- 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:
wagic.the.homebrew@gmail.com
2009-12-13 05:59:17 +00:00
parent 7cc072bf77
commit 999256e6ab
5 changed files with 57 additions and 3 deletions

View File

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

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