Erwan
- Fix bug with Northern Paladin
This commit is contained in:
@@ -1471,6 +1471,7 @@ toughness=*
|
|||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
text={W}{W}, {T}: Destroy target black permanent.
|
text={W}{W}, {T}: Destroy target black permanent.
|
||||||
|
auto={W}{W}{T}:destroy target(*[black])
|
||||||
id=1355
|
id=1355
|
||||||
name=Northern Paladin
|
name=Northern Paladin
|
||||||
rarity=R
|
rarity=R
|
||||||
|
|||||||
@@ -82,6 +82,8 @@ nantuko_husk.txt
|
|||||||
Nevinyrrals_Disk.txt
|
Nevinyrrals_Disk.txt
|
||||||
Nevinyrrals_Disk2.txt
|
Nevinyrrals_Disk2.txt
|
||||||
nightmare.txt
|
nightmare.txt
|
||||||
|
northern_paladin.txt
|
||||||
|
northern_paladin2.txt
|
||||||
Nyxathid.txt
|
Nyxathid.txt
|
||||||
orcish_lumberjack.txt
|
orcish_lumberjack.txt
|
||||||
paralysis.txt
|
paralysis.txt
|
||||||
@@ -116,4 +118,4 @@ zombify.txt
|
|||||||
########################
|
########################
|
||||||
#Momir Basic Tests
|
#Momir Basic Tests
|
||||||
########################
|
########################
|
||||||
momir/keldon_warlord.txt
|
momir/keldon_warlord.txt
|
||||||
@@ -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]
|
||||||
@@ -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]
|
||||||
@@ -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
|
//Soul Net
|
||||||
class ASoulNet:public ActivatedAbility{
|
class ASoulNet:public ActivatedAbility{
|
||||||
|
|||||||
@@ -1494,11 +1494,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
|
|||||||
game->addObserver(NEW AKarma(_id, card));
|
game->addObserver(NEW AKarma(_id, card));
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case 1355: //Northern Paladin
|
|
||||||
{
|
|
||||||
game->addObserver(NEW ANorthernPaladin(_id, card));
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case 1359: //Red Ward
|
case 1359: //Red Ward
|
||||||
{
|
{
|
||||||
game->addObserver(NEW AProtectionFrom( _id,card, card->target, Constants::MTG_COLOR_RED));
|
game->addObserver(NEW AProtectionFrom( _id,card, card->target, Constants::MTG_COLOR_RED));
|
||||||
|
|||||||
@@ -224,7 +224,6 @@ TargetChooser * TargetChooserFactory::createTargetChooser(MTGCardInstance * card
|
|||||||
//Any target than cannot be defined automatically is determined by its id
|
//Any target than cannot be defined automatically is determined by its id
|
||||||
switch (id){
|
switch (id){
|
||||||
//Spell
|
//Spell
|
||||||
//case 1196: //CounterSpell
|
|
||||||
case 1224: //Spell blast
|
case 1224: //Spell blast
|
||||||
{
|
{
|
||||||
#if defined (WIN32) || defined (LINUX)
|
#if defined (WIN32) || defined (LINUX)
|
||||||
|
|||||||
Reference in New Issue
Block a user