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

View File

@@ -150,7 +150,8 @@ int Damage::resolve()
{
// Poison on player
Player * _target = (Player *) target;
_target->poisonCount += damage;//this will be changed to poison counters.
if(!_target->inPlay()->hasAbility(Constants::POISONSHROUD))
_target->poisonCount += damage;//this will be changed to poison counters.
_target->damageCount += damage;
}
else if (target->type_as_damageable == DAMAGEABLE_PLAYER && (source->has(Constants::POISONTOXIC) ||
@@ -160,17 +161,20 @@ int Damage::resolve()
Player * _target = (Player *) target;
a = target->dealDamage(damage);
target->damageCount += damage;
if (source->has(Constants::POISONTOXIC))
if(!_target->inPlay()->hasAbility(Constants::POISONSHROUD))
{
_target->poisonCount += 1;
}
else if (source->has(Constants::POISONTWOTOXIC))
{
_target->poisonCount += 2;
}
else
{
_target->poisonCount += 3;
if (source->has(Constants::POISONTOXIC))
{
_target->poisonCount += 1;
}
else if (source->has(Constants::POISONTWOTOXIC))
{
_target->poisonCount += 2;
}
else
{
_target->poisonCount += 3;
}
}
}