change damagecount as damage counter to actual damage received for "normal case" damage, this fixes odcount and pdcount int values.

This commit is contained in:
anthonycalosa@gmail.com
2013-01-21 01:24:19 +00:00
parent 1b7b1e2cf1
commit 32d06d1148

View File

@@ -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)