added support for "prevent next [number] damage" to player/creature.

This commit is contained in:
omegablast2002@yahoo.com
2010-08-28 19:50:26 +00:00
parent 33d0577366
commit 98d908f403
13 changed files with 99 additions and 19 deletions

View File

@@ -13,7 +13,8 @@ Player::Player(MTGPlayerCards * deck, string file, string fileSmall) : Damageabl
manaPool = NEW ManaPool(this);
canPutLandsIntoPlay = 1;
poisonCount = 0;
damageCount = 0;
damageCount = 0;
preventable = 0;
mAvatar = NULL;
mAvatarTex = NULL;
type_as_damageable = DAMAGEABLE_PLAYER;
@@ -91,6 +92,9 @@ int Player::poisoned(){
int Player::damaged(){
return damageCount;
}
int Player::prevented(){
return preventable;
}
//Cleanup phase at the end of a turn
void Player::cleanupPhase(){
game->inPlay->cleanupPhase();