Erwan
- fix issue 125 (Ondu Cleric)
This commit is contained in:
@@ -1,3 +1,5 @@
|
|||||||
|
ondu_cleric.txt
|
||||||
|
/*
|
||||||
########################
|
########################
|
||||||
#Generic engine features
|
#Generic engine features
|
||||||
########################
|
########################
|
||||||
@@ -174,6 +176,7 @@ nightmare.txt
|
|||||||
northern_paladin.txt
|
northern_paladin.txt
|
||||||
northern_paladin2.txt
|
northern_paladin2.txt
|
||||||
Nyxathid.txt
|
Nyxathid.txt
|
||||||
|
ondu_cleric.txt
|
||||||
orcish_artillery.txt
|
orcish_artillery.txt
|
||||||
orcish_lumberjack.txt
|
orcish_lumberjack.txt
|
||||||
overrun.txt
|
overrun.txt
|
||||||
|
|||||||
20
projects/mtg/bin/Res/test/ondu_cleric.txt
Normal file
20
projects/mtg/bin/Res/test/ondu_cleric.txt
Normal 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]
|
||||||
@@ -273,6 +273,7 @@ MTGAbility * AbilityFactory::parseMagicLine(string s, int id, Spell * spell, MTG
|
|||||||
tc = tcf.createTargetChooser(starget, card);
|
tc = tcf.createTargetChooser(starget, card);
|
||||||
}
|
}
|
||||||
if (tc) a1 = NEW GenericTargetAbility(id, card, tc, a1);
|
if (tc) a1 = NEW GenericTargetAbility(id, card, tc, a1);
|
||||||
|
else a1 = NEW GenericActivatedAbility(id, card, a1,NULL);
|
||||||
return NEW MayAbility(id,a1,card);
|
return NEW MayAbility(id,a1,card);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user