Erwan
- a Few bug fix. - I need to investigate for fledgling imp :(
This commit is contained in:
@@ -289,7 +289,11 @@ text=Defender (This creature can't attack.) Drift of the Dead's power and tough
|
|||||||
id=2447
|
id=2447
|
||||||
name=Drift of the Dead
|
name=Drift of the Dead
|
||||||
abilities=defender
|
abilities=defender
|
||||||
auto=foreach(land[snow]|myinplay) 1/1
|
auto=foreach(snow-covered forest|myinplay) 1/1
|
||||||
|
auto=foreach(snow-covered mountain|myinplay) 1/1
|
||||||
|
auto=foreach(snow-covered plains|myinplay) 1/1
|
||||||
|
auto=foreach(snow-covered swamp|myinplay) 1/1
|
||||||
|
auto=foreach(snow-covered island|myinplay) 1/1
|
||||||
rarity=U
|
rarity=U
|
||||||
type=Creature
|
type=Creature
|
||||||
mana={3}{B}
|
mana={3}{B}
|
||||||
|
|||||||
@@ -94,17 +94,6 @@ mana={2}{R}{R}
|
|||||||
type=Enchantment
|
type=Enchantment
|
||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
text=Destroy target land or nonblack creature. It can't be regenerated.
|
|
||||||
target=land,creature[-black]
|
|
||||||
auto=bury
|
|
||||||
id=5605
|
|
||||||
name=Befoul
|
|
||||||
color=Black
|
|
||||||
rarity=C
|
|
||||||
mana={2}{B}{B}
|
|
||||||
type=Sorcery
|
|
||||||
[/card]
|
|
||||||
[card]
|
|
||||||
text=Enchant creature (Target a creature as you play this. This card comes into play attached to that creature.) Enchanted creature gets +1/+1 for each Forest you control.
|
text=Enchant creature (Target a creature as you play this. This card comes into play attached to that creature.) Enchanted creature gets +1/+1 for each Forest you control.
|
||||||
id=5623
|
id=5623
|
||||||
target=creature
|
target=creature
|
||||||
|
|||||||
@@ -147,6 +147,18 @@ rarity=R
|
|||||||
type=Artifact
|
type=Artifact
|
||||||
mana={4}
|
mana={4}
|
||||||
[/card]
|
[/card]
|
||||||
|
#Befoul requires a huge update on targetChooser before it can work :/
|
||||||
|
[card]
|
||||||
|
text=Destroy target land or nonblack creature. It can't be regenerated.
|
||||||
|
target=creature[-black],land
|
||||||
|
auto=bury
|
||||||
|
id=5605
|
||||||
|
name=Befoul
|
||||||
|
color=Black
|
||||||
|
rarity=C
|
||||||
|
mana={2}{B}{B}
|
||||||
|
type=Sorcery
|
||||||
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
text=Whenever a green creature is put into a graveyard from play, its controller discards a card.
|
text=Whenever a green creature is put into a graveyard from play, its controller discards a card.
|
||||||
id=5617
|
id=5617
|
||||||
|
|||||||
@@ -31,6 +31,7 @@ ascendant_evincar2.txt
|
|||||||
ascendant_evincar3.txt
|
ascendant_evincar3.txt
|
||||||
ashen_firebeast.txt
|
ashen_firebeast.txt
|
||||||
ashen_firebeast2.txt
|
ashen_firebeast2.txt
|
||||||
|
#befoul.txt
|
||||||
blessed_wine.txt
|
blessed_wine.txt
|
||||||
bloodfire_colossus.txt
|
bloodfire_colossus.txt
|
||||||
bottle_gnomes.txt
|
bottle_gnomes.txt
|
||||||
@@ -50,14 +51,17 @@ counterspell2.txt
|
|||||||
counterspell3.txt
|
counterspell3.txt
|
||||||
counterspell4.txt
|
counterspell4.txt
|
||||||
creature_bond.txt
|
creature_bond.txt
|
||||||
|
dauthi_embrace.txt
|
||||||
deja_vu.txt
|
deja_vu.txt
|
||||||
dingus_egg.txt
|
dingus_egg.txt
|
||||||
doomed_necromancer.txt
|
doomed_necromancer.txt
|
||||||
dragon_fodder.txt
|
dragon_fodder.txt
|
||||||
drain_life.txt
|
drain_life.txt
|
||||||
|
drift_of_the_dead.txt
|
||||||
elvish_piper.txt
|
elvish_piper.txt
|
||||||
fastbond.txt
|
fastbond.txt
|
||||||
flare.txt
|
flare.txt
|
||||||
|
#fledgling_imp.txt TODO Understand why this one fails
|
||||||
foratog.txt
|
foratog.txt
|
||||||
force_of_nature.txt
|
force_of_nature.txt
|
||||||
force_of_nature2.txt
|
force_of_nature2.txt
|
||||||
|
|||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#Testing Befoul on Grizzly bears
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
hand:befoul
|
||||||
|
manapool:{2}{B}{B}
|
||||||
|
[PLAYER2]
|
||||||
|
inplay:1250
|
||||||
|
[DO]
|
||||||
|
befoul
|
||||||
|
1250
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
graveyard:befoul
|
||||||
|
manapool:{0}
|
||||||
|
[PLAYER2]
|
||||||
|
graveyard:1250
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,19 @@
|
|||||||
|
#Bug: Dauthi Embrace gets tapped if its ability is used
|
||||||
|
[INIT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Dauthi Embrace,grizzly bears,kird ape
|
||||||
|
manapool:{B}{B}{b}{B}
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
Dauthi Embrace
|
||||||
|
grizzly bears
|
||||||
|
Dauthi Embrace
|
||||||
|
kird ape
|
||||||
|
[ASSERT]
|
||||||
|
FIRSTMAIN
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:Dauthi Embrace,grizzly bears,kird ape
|
||||||
|
manapool:{0}
|
||||||
|
[PLAYER2]
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,23 @@
|
|||||||
|
#Testing That Drift of the dead only gets power/toughness from snow lands
|
||||||
|
[INIT]
|
||||||
|
COMBATATTACKERS
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:dragon engine
|
||||||
|
[PLAYER2]
|
||||||
|
inplay:drift of the dead,snow-covered forest,snow-covered mountain,mountain
|
||||||
|
[DO]
|
||||||
|
dragon engine
|
||||||
|
next
|
||||||
|
#blockers
|
||||||
|
drift of the dead
|
||||||
|
next
|
||||||
|
#combatdamage
|
||||||
|
next
|
||||||
|
#endofcombat
|
||||||
|
[ASSERT]
|
||||||
|
COMBATEND
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:dragon engine
|
||||||
|
[PLAYER2]
|
||||||
|
inplay:drift of the dead,snow-covered forest,snow-covered mountain,mountain
|
||||||
|
[END]
|
||||||
@@ -0,0 +1,30 @@
|
|||||||
|
#Bug: fledgling imp ability doesn't work
|
||||||
|
# text={B}, Discard a card from your hand: Fledgling Imp gains flying until end of turn.
|
||||||
|
[INIT]
|
||||||
|
COMBATATTACKERS
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:air elemental
|
||||||
|
[PLAYER2]
|
||||||
|
inplay:fledgling imp
|
||||||
|
hand:grizzly bears
|
||||||
|
manapool:{B}
|
||||||
|
[DO]
|
||||||
|
air elemental
|
||||||
|
next
|
||||||
|
#blockers
|
||||||
|
fledgling imp
|
||||||
|
choice 1
|
||||||
|
grizzly bears
|
||||||
|
fledgling imp
|
||||||
|
next
|
||||||
|
#combat damage
|
||||||
|
next
|
||||||
|
#combat end
|
||||||
|
[ASSERT]
|
||||||
|
COMBATEND
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:air elemental
|
||||||
|
[PLAYER2]
|
||||||
|
graveyard:grizzly bears,fledgling imp
|
||||||
|
manapool:{0}
|
||||||
|
[END]
|
||||||
@@ -517,7 +517,7 @@ class ABasicAbilityModifierUntilEOT:public TargetAbility{
|
|||||||
int modifier;
|
int modifier;
|
||||||
int stateBeforeActivation[50];
|
int stateBeforeActivation[50];
|
||||||
int ability;
|
int ability;
|
||||||
ABasicAbilityModifierUntilEOT(int _id, MTGCardInstance * _source, int _ability, ManaCost * _cost, TargetChooser * _tc = NULL, int _modifier = 1): TargetAbility(_id,_source,_cost),modifier(_modifier), ability(_ability){
|
ABasicAbilityModifierUntilEOT(int _id, MTGCardInstance * _source, int _ability, ManaCost * _cost, TargetChooser * _tc = NULL, int _modifier = 1,int _tap=1): TargetAbility(_id,_source,_cost,0,_tap),modifier(_modifier), ability(_ability){
|
||||||
nbTargets = 0;
|
nbTargets = 0;
|
||||||
tc = _tc;
|
tc = _tc;
|
||||||
if (!tc) tc = NEW CreatureTargetChooser(_source);
|
if (!tc) tc = NEW CreatureTargetChooser(_source);
|
||||||
|
|||||||
@@ -869,7 +869,7 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
|
|||||||
game->addObserver(NEW AKirdApe(id,card,lordTargets,lordIncludeSelf,0,0,j,modifier));
|
game->addObserver(NEW AKirdApe(id,card,lordTargets,lordIncludeSelf,0,0,j,modifier));
|
||||||
}else{
|
}else{
|
||||||
if (tc){
|
if (tc){
|
||||||
game->addObserver(NEW ABasicAbilityModifierUntilEOT(id, card, j, cost,tc, modifier));
|
game->addObserver(NEW ABasicAbilityModifierUntilEOT(id, card, j, cost,tc, modifier,doTap));
|
||||||
}else{
|
}else{
|
||||||
if (!cost){
|
if (!cost){
|
||||||
if(card->hasType("enchantment")){
|
if(card->hasType("enchantment")){
|
||||||
|
|||||||
Reference in New Issue
Block a user