- revert r1187
- fix a bug with "@damaged" (see slith bloodletter test)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-26 13:31:30 +00:00
parent 772ddd9ced
commit e762a5f983
3 changed files with 48 additions and 9 deletions
+1
View File
@@ -217,6 +217,7 @@ shock.txt
shock2.txt
slate_of_ancestry.txt
sleeper_agent.txt
slith_bloodletter.txt
soulblast.txt
sphinx_summoner.txt
spitting_earth.txt
@@ -0,0 +1,40 @@
#Bug: Slith bloodletter gets counters even when it doesn't attack
[INIT]
COMBATATTACKERS
[PLAYER1]
inplay:grizzly bears,slith bloodletter
[PLAYER2]
[DO]
grizzly bears
next
#blockers
next
#damage
next
#end combat
eot
eot
next
#upkeep
next
#draw
next
#main
next
#begin
next
#attackers
slith bloodletter
next
#blockers
next
#damage
next
#end combat
[ASSERT]
COMBATEND
[PLAYER1]
inplay:grizzly bears,slith bloodletter
[PLAYER2]
life:17
[END]
+7 -9
View File
@@ -118,16 +118,14 @@ TriggeredAbility * AbilityFactory::parseTrigger(string magicText, int id, Spell
tc->targetter = NULL;
found = s.find("from(");
TargetChooser *fromTc = NULL;
if (found != string::npos){
end = s.find (")", found);
starget = s.substr(found+5,end - found - 5);
TargetChooser * fromTc = tcf.createTargetChooser(starget,card);
fromTc->targetter = NULL;
return NEW TrDamaged(id,card,tc,fromTc);
}else{
TargetChooser *fromTc = NULL;
if (found != string::npos){
end = s.find (")", found);
starget = s.substr(found+5,end - found - 5);
fromTc = tcf.createTargetChooser(starget,card);
fromTc->targetter = NULL;
}
return NEW TrDamaged(id,card,tc,fromTc);
}
}
int who = 0;