updated tests

This commit is contained in:
Anthony Calosa
2015-08-30 23:04:15 +08:00
parent 474ad5c0fe
commit 410f2d4e69
4 changed files with 12 additions and 1 deletions

View File

@@ -78369,7 +78369,7 @@ type=Enchantment
[/card]
[card]
name=Root Spider
auto=@combat(blocking) source(this):choice 1/0 && first strike ueot
auto=@combat(blocking) source(this):all(this) 1/0 ueot && all(this) first strike ueot
text=Whenever Root Spider blocks, it gets +1/+0 and gains first strike until end of turn.
mana={3}{G}
type=Creature

View File

@@ -656,6 +656,7 @@ thallid.txt
the_tabernacle_at_pendrell_vale.txt
thelon_of_havenwood.txt
threaten.txt
thraximundar.txt
throne_of_bone.txt
thunder-thrash_elder.txt
tidal_warrior_i646.txt

View File

@@ -4363,6 +4363,7 @@ int PTInstant::resolve()
APowerToughnessModifier * a = ability->clone();
GenericInstantAbility * wrapper = NEW GenericInstantAbility(game, 1, source, (Damageable *) (this->target), a);
wrapper->addToGame();
((Damageable *) (this->target))->afterDamage();//additional check the negative pt after resolving..
return 1;
}
const string PTInstant::getMenuText()

View File

@@ -4952,6 +4952,15 @@ int TriggeredAbility::receiveEvent(WEvent * e)
resolve();
return 1;
}
if(dynamic_cast<WEventCardSacrifice*>(e))
{
//sacrificed event
//thraximundar vs bloodfore collosus, thraximundar
//must be able to survive a sacrificed bloodfire collosus,
//same with mortician beetle vs phyrexian denouncer test
resolve();
return 1;
}
WEventZoneChange * stackCheck = dynamic_cast<WEventZoneChange*>(e);
if(stackCheck && (stackCheck->to == game->currentPlayer->game->stack||stackCheck->to == game->currentPlayer->opponent()->game->stack))
{