- fix issue 125 (Ondu Cleric)
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-10-22 13:57:49 +00:00
parent 5ef7a5978f
commit f0124ce53a
3 changed files with 24 additions and 0 deletions

View File

@@ -1,3 +1,5 @@
ondu_cleric.txt
/*
########################
#Generic engine features
########################
@@ -174,6 +176,7 @@ nightmare.txt
northern_paladin.txt
northern_paladin2.txt
Nyxathid.txt
ondu_cleric.txt
orcish_artillery.txt
orcish_lumberjack.txt
overrun.txt

View File

@@ -0,0 +1,20 @@
#Bug: Ondu Cleric doesn't give life
#http://code.google.com/p/wagic/issues/detail?id=125
[INIT]
FIRSTMAIN
[PLAYER1]
hand:ondu cleric,stonework puma
manapool:{4}{W}
[PLAYER2]
[DO]
ondu cleric
choice 0
stonework puma
choice 0
[ASSERT]
FIRSTMAIN
[PLAYER1]
life:23
inplay:ondu cleric,stonework puma
[PLAYER2]
[END]

View File

@@ -273,6 +273,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
tc = tcf.createTargetChooser(starget, card);
}
if (tc) a1 = NEW GenericTargetAbility(id, card, tc, a1);
else a1 = NEW GenericActivatedAbility(id, card, a1,NULL);
return NEW MayAbility(id,a1,card);
}