fix for cards with restrictions

This commit is contained in:
Anthony Calosa
2017-01-22 00:14:46 +08:00
parent 37b3f28065
commit 6fe57be115
6 changed files with 17 additions and 5 deletions
+1
View File
@@ -260,6 +260,7 @@ int Damage::resolve()
target->lifeLostThisTurn += damage;
if ( typeOfDamage == 1 && target == source->controller()->opponent() )//add vector prowledtypes.
{
source->controller()->dealsdamagebycombat = 1; // for restriction check
vector<string> values = MTGAllCards::getCreatureValuesById();//getting a weird crash here. rarely.
for (size_t i = 0; i < values.size(); ++i)
{