Bug fix for the biggest crash and fixes to the primitives

I figured a while ago that the cause of the crash was a rendering issue, not an engine issue, since you could copy spells in the stack if you didn't targeted them. The crash was most likely in ActionStack, just had to follow the trace. It doesn't affect anithing else, that line was trying to render something in the stack that's a permanent but it always had bad ptrs.
This commit is contained in:
Eduardo
2019-04-17 20:28:43 -05:00
parent c3937ce517
commit 3dfcc65fa6
5 changed files with 221 additions and 196 deletions
+6 -4
View File
@@ -1353,16 +1353,18 @@ int MTGCardInstance::DangerRanking()
result += 1;
}
}
if (result > 1)
danger += 1;
if (result > 2)
danger += 1;
// Even at 60(danger=3) the AI is hasty to play removal on a simple creature
// a vanilla 2 mana, 2/2 used to be eff = 60
if (result > 4)
danger += 1;
if (result > 6)
danger += 1;
if (result > 10)
danger += 1;
if (result > 12)
danger += 1;
if (result > 14)
danger += 1;
return danger;
}