Erwan
- fix issue 265
This commit is contained in:
@@ -190,6 +190,7 @@ fault_line.txt
|
||||
fire_tempest.txt
|
||||
fists_of_ironwood.txt
|
||||
flagstones.txt
|
||||
flame_fusillade_i265.txt
|
||||
flare.txt
|
||||
fledgling_imp.txt
|
||||
fledgling_imp2.txt
|
||||
|
||||
@@ -447,13 +447,15 @@ public:
|
||||
}
|
||||
|
||||
~GenericTargetAbility(){
|
||||
if (isClone) SAFE_DELETE(ability);
|
||||
SAFE_DELETE(ability);
|
||||
}
|
||||
|
||||
GenericTargetAbility * clone() const{
|
||||
GenericTargetAbility * a = NEW GenericTargetAbility(*this);
|
||||
a->ability = ability->clone();
|
||||
a->isClone = 1;
|
||||
a->cost = NEW ManaCost();
|
||||
a->cost->copy(cost);
|
||||
if (tc) a->tc = tc->clone();
|
||||
return a;
|
||||
}
|
||||
|
||||
|
||||
@@ -12,6 +12,10 @@ int CardDescriptor::init(){
|
||||
attacker = 0;
|
||||
defenser = NULL;
|
||||
banding = NULL;
|
||||
//Remove unnecessary pointers
|
||||
SAFE_DELETE(untapBlockers);
|
||||
SAFE_DELETE(counters);
|
||||
SAFE_DELETE(previous);
|
||||
return result;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user