fix for cards with restrictions
This commit is contained in:
@@ -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)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user