Fixed crash on Dread Presence and added new primitives.

This commit is contained in:
valfieri
2020-06-24 21:20:39 +02:00
parent 210a250dce
commit ccc26f400d
3 changed files with 585 additions and 373 deletions
+2 -2
View File
@@ -6466,8 +6466,8 @@ int ATransformer::destroy()
{
for (unsigned int i = 0;i < newAbilities[_target].size(); i++)
{
// The primitives Dead Presence and the mutated cards probably cause a double free error and a crash in Wagic, so for now they have been exluded...
if(newAbilities[_target].at(i) && strcmp(_target->name.c_str(),"Dread Presence") && !_target->mutation)
// The mutated cards probably cause a double free error and a crash in Wagic, so for now they have been exluded...
if(newAbilities[_target].at(i) && !_target->mutation)
{
newAbilities[_target].at(i)->forceDestroy = 1;
newAbilities[_target].at(i)->removeFromGame();