- Fix bug with Northern Paladin
This commit is contained in:
wagic.the.homebrew@gmail.com
2009-05-14 12:39:25 +00:00
parent 5a29a7103f
commit d074cc4de0
7 changed files with 42 additions and 28 deletions

View File

@@ -1471,6 +1471,7 @@ toughness=*
[/card]
[card]
text={W}{W}, {T}: Destroy target black permanent.
auto={W}{W}{T}:destroy target(*[black])
id=1355
name=Northern Paladin
rarity=R

View File

@@ -82,6 +82,8 @@ nantuko_husk.txt
Nevinyrrals_Disk.txt
Nevinyrrals_Disk2.txt
nightmare.txt
northern_paladin.txt
northern_paladin2.txt
Nyxathid.txt
orcish_lumberjack.txt
paralysis.txt
@@ -116,4 +118,4 @@ zombify.txt
########################
#Momir Basic Tests
########################
momir/keldon_warlord.txt
momir/keldon_warlord.txt

View File

@@ -0,0 +1,19 @@
#Testing Northern paladin on Black Knight
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:northern paladin
manapool:{W}{W}
[PLAYER2]
inplay:Black Knight
[DO]
northern paladin
black knight
[ASSERT]
FIRSTMAIN
[PLAYER1]
inplay:northern paladin
manapool:{W}{W}
[PLAYER2]
inplay:black knight
[END]

View File

@@ -0,0 +1,19 @@
#Testing Northern paladin on erg raiders
[INIT]
FIRSTMAIN
[PLAYER1]
inplay:northern paladin
manapool:{W}{W}
[PLAYER2]
inplay:erg raiders
[DO]
northern paladin
erg raiders
[ASSERT]
FIRSTMAIN
[PLAYER1]
inplay:northern paladin
manapool:{W}{W}
[PLAYER2]
graveyard:erg raiders
[END]

View File

@@ -2554,27 +2554,6 @@ class AKarma: public TriggeredAbility{
}
};
//1355 Northern Paladin
class ANorthernPaladin:public TargetAbility{
public:
ANorthernPaladin(int _id, MTGCardInstance * card):TargetAbility(_id, card){
int _cost[] = {Constants::MTG_COLOR_WHITE, 2};
cost = NEW ManaCost(_cost,1);
tc = NEW TargetChooser();
}
int resolve(){
MTGCardInstance * card = tc->getNextCardTarget();
if (card->hasColor(Constants::MTG_COLOR_BLACK)){
card->controller()->game->putInGraveyard(card);
return 1;
}
return 0;
}
};
//Soul Net
class ASoulNet:public ActivatedAbility{

View File

@@ -1494,11 +1494,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver(NEW AKarma(_id, card));
break;
}
case 1355: //Northern Paladin
{
game->addObserver(NEW ANorthernPaladin(_id, card));
break;
}
case 1359: //Red Ward
{
game->addObserver(NEW AProtectionFrom( _id,card, card->target, Constants::MTG_COLOR_RED));

View File

@@ -224,7 +224,6 @@ TargetChooser * TargetChooserFactory::createTargetChooser(MTGCardInstance * card
//Any target than cannot be defined automatically is determined by its id
switch (id){
//Spell
//case 1196: //CounterSpell
case 1224: //Spell blast
{
#if defined (WIN32) || defined (LINUX)