added abilities=poisonshroud

"you can not get poison counters"
This commit is contained in:
omegablast2002@yahoo.com
2012-01-31 19:41:43 +00:00
parent 81c90f0440
commit a248cb7423
4 changed files with 22 additions and 14 deletions
+2 -1
View File
@@ -211,8 +211,9 @@ class Constants
CANATTACK = 91,
HYDRA = 92,
UNDYING = 93,
POISONSHROUD = 94,
NB_BASIC_ABILITIES = 94,
NB_BASIC_ABILITIES = 95,
RARITY_S = 'S', //Special Rarity
+2
View File
@@ -85,6 +85,8 @@ int AAAlterPoison::resolve()
Damageable * _target = (Damageable *) getTarget();
if (_target)
{
Player * pTarget = (Player*)_target;
if(!pTarget->inPlay()->hasAbility(Constants::POISONSHROUD) || poison < 0)
_target->poisonCount += poison;
}
return 0;
+4
View File
@@ -150,6 +150,7 @@ int Damage::resolve()
{
// Poison on player
Player * _target = (Player *) target;
if(!_target->inPlay()->hasAbility(Constants::POISONSHROUD))
_target->poisonCount += damage;//this will be changed to poison counters.
_target->damageCount += damage;
}
@@ -160,6 +161,8 @@ int Damage::resolve()
Player * _target = (Player *) target;
a = target->dealDamage(damage);
target->damageCount += damage;
if(!_target->inPlay()->hasAbility(Constants::POISONSHROUD))
{
if (source->has(Constants::POISONTOXIC))
{
_target->poisonCount += 1;
@@ -172,6 +175,7 @@ int Damage::resolve()
{
_target->poisonCount += 3;
}
}
}
else
+2 -1
View File
@@ -122,7 +122,8 @@ const char* Constants::MTGBasicAbilities[] = {
"snowswamplandwalk",
"canattack",
"hydra",
"undying"
"undying",
"poisonshroud"
};
map<string,int> Constants::MTGBasicAbilitiesMap;