Fix for issue 652 (Use Tidal warrior several times causes a crash)
This commit is contained in:
@@ -544,6 +544,7 @@ throne_of_bone.txt
|
||||
thunder-thrash_elder.txt
|
||||
tidal_warrior_i646.txt
|
||||
tidal_warrior_i650.txt
|
||||
tidal_warrior_i652.txt
|
||||
titanic_ultimatum.txt
|
||||
tolsimir_wolfblood.txt
|
||||
torture.txt
|
||||
|
||||
23
projects/mtg/bin/Res/test/tidal_warrior_i652.txt
Normal file
23
projects/mtg/bin/Res/test/tidal_warrior_i652.txt
Normal file
@@ -0,0 +1,23 @@
|
||||
#Testing Tidal Warrior's "target becomes island" ability,
|
||||
# Make sure it can be cast several times
|
||||
#see http://code.google.com/p/wagic/issues/detail?id=652
|
||||
[INIT]
|
||||
FIRSTMAIN
|
||||
[PLAYER1]
|
||||
inplay:Forest,mountain, Tidal Warrior
|
||||
[PLAYER2]
|
||||
[DO]
|
||||
Tidal Warrior
|
||||
Forest
|
||||
eot
|
||||
eot
|
||||
Tidal Warrior
|
||||
Mountain
|
||||
Mountain
|
||||
[ASSERT]
|
||||
UNTAP
|
||||
[PLAYER1]
|
||||
inplay:Forest, Mountain,Tidal Warrior
|
||||
manapool:{U}
|
||||
[PLAYER2]
|
||||
[END]
|
||||
@@ -1766,6 +1766,7 @@ public:
|
||||
GenericInstantAbility * clone() const
|
||||
{
|
||||
GenericInstantAbility * a = NEW GenericInstantAbility(*this);
|
||||
a->ability = ability->clone();
|
||||
a->isClone = 1;
|
||||
return a;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user