diff --git a/projects/mtg/bin/Res/test/_tests.txt b/projects/mtg/bin/Res/test/_tests.txt index 112b48a1e..2443312cf 100644 --- a/projects/mtg/bin/Res/test/_tests.txt +++ b/projects/mtg/bin/Res/test/_tests.txt @@ -98,6 +98,7 @@ dragon_fodder.txt dragon_fodder2.txt drain_life.txt drift_of_the_dead.txt +dromad_purebred.txt dross_harvester.txt duskwalker.txt elvish_piper.txt diff --git a/projects/mtg/bin/Res/test/dromad_purebred.txt b/projects/mtg/bin/Res/test/dromad_purebred.txt new file mode 100644 index 000000000..3e3658b70 --- /dev/null +++ b/projects/mtg/bin/Res/test/dromad_purebred.txt @@ -0,0 +1,24 @@ +#Test: @Damaged keyword +[INIT] +COMBATATTACKERS +[PLAYER1] +inplay:grizzly bears +[PLAYER2] +inplay:Dromad Purebred +[DO] +grizzly bears +next +#blockers +Dromad Purebred +next +#damage +next +#end combat +[ASSERT] +COMBATEND +[PLAYER1] +inplay:grizzly bears +[PLAYER2] +inplay:Dromad Purebred +life:21 +[END] \ No newline at end of file diff --git a/projects/mtg/src/MTGAbility.cpp b/projects/mtg/src/MTGAbility.cpp index 7dc6eb70a..f1dcc5775 100644 --- a/projects/mtg/src/MTGAbility.cpp +++ b/projects/mtg/src/MTGAbility.cpp @@ -124,9 +124,8 @@ TriggeredAbility * AbilityFactory::parseTrigger(string magicText, int id, Spell starget = s.substr(found+5,end - found - 5); TargetChooser * fromTc = tcf.createTargetChooser(starget,card); fromTc->targetter = NULL; - + } return NEW TrDamaged(id,card,tc,fromTc); - } } int who = 0;