From 32d06d1148f0627b959165655fb7da6b0e22d866 Mon Sep 17 00:00:00 2001 From: "anthonycalosa@gmail.com" Date: Mon, 21 Jan 2013 01:24:19 +0000 Subject: [PATCH] change damagecount as damage counter to actual damage received for "normal case" damage, this fixes odcount and pdcount int values. --- projects/mtg/src/Damage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/projects/mtg/src/Damage.cpp b/projects/mtg/src/Damage.cpp index 546ad0048..3fbbda012 100644 --- a/projects/mtg/src/Damage.cpp +++ b/projects/mtg/src/Damage.cpp @@ -183,7 +183,7 @@ int Damage::resolve() // "Normal" case, //return the left over amount after effects have been applied to them. a = target->dealDamage(damage); - target->damageCount += 1; + target->damageCount += damage;//the amount must be the actual damage so i changed this from 1 to damage, this fixes pdcount and odcount if (target->type_as_damageable == DAMAGEABLE_MTGCARDINSTANCE) ((MTGCardInstance*)target)->wasDealtDamage = true; if (target->type_as_damageable == DAMAGEABLE_PLAYER)