Fixed indentation mistakes

This commit is contained in:
Bjørn Snoen
2013-12-21 11:18:18 +01:00
parent 20e878a102
commit 642f5bb515
3 changed files with 4 additions and 4 deletions

View File

@@ -229,7 +229,7 @@ MTGCardInstance * CardDescriptor::match(MTGCardInstance * card)
}
if ((CDdamager == -1 && (card->damageToOpponent || card->damageToController || card->damageToCreature)) || (CDdamager == 1 && !(card->damageToOpponent || card->damageToController || card->damageToCreature)))
{
{
match = NULL;
}

View File

@@ -194,8 +194,8 @@ int Damage::resolve()
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::DAMAGEABLE_MTGCARDINSTANCE){
((MTGCardInstance*)target)->wasDealtDamage = true;
((MTGCardInstance*)source)->damageToCreature = true;
}
((MTGCardInstance*)source)->damageToCreature = true;
}
if (target->type_as_damageable == Damageable::DAMAGEABLE_PLAYER)
{
if(target == source->controller())

View File

@@ -795,7 +795,7 @@ void GameObserver::gameStateBasedEffects()
c->wasDealtDamage = false;
c->damageToController = false;
c->damageToOpponent = false;
c->damageToCreature = false;
c->damageToCreature = false;
c->isAttacking = NULL;
}
for (int t = 0; t < nbcards; t++)