Jonathan - some random update + my first edition on MTGAbility.cpp + not tested Cruel Tutor (POR), I hope it doesn't shuffle after the card is put on to the top of the library.....

This commit is contained in:
leungclj
2009-07-26 08:00:23 +00:00
parent 94e199d92a
commit cd040a51ec
13 changed files with 35 additions and 47 deletions

View File

@@ -1103,6 +1103,8 @@ toughness=2
[/card]
[card]
text=At the beginning of your upkeep, you draw X cards and you lose X life, where X is the number of Zombies you control.
auto=@each my upkeep:foreach(zombie|myinplay) draw:1
auto=@each my upkeep:foreach(zombie|myinplay) life:-1
id=135256
name=Graveborn Muse
rarity=R
@@ -2663,6 +2665,8 @@ toughness=2
[/card]
[card]
text=Each player loses 1 life for each creature he or she controls.
auto=foreach(creature|opponentinplay) life:-1 opponent
auto=foreach(creature|myinplay) life:-1 controller
id=135197
name=Stronghold Discipline
rarity=U

View File

@@ -124,7 +124,7 @@ mana={U}
subtype=Aura
[/card]
[card]
text=Enchant Forest or Plains Whenever enchanted land becomes tapped, its controller loses 2 life.
text=Enchant Forest or Plains. Whenever enchanted land becomes tapped, its controller loses 2 life.
id=183054
target=forest,plains
alias=1218

View File

@@ -402,7 +402,7 @@ subtype=Spirit
toughness=2
[/card]
[card]
text=Defender, flying Whenever you play a white spell, Loyal Gyrfalcon loses defender until end of turn.
text=Defender, flying. Whenever you play a white spell, Loyal Gyrfalcon loses defender until end of turn.
abilities=defender,flying
auto=@movedTo(*[white]|mystack):-defender
id=151059

View File

@@ -519,7 +519,7 @@ mana={2}{W}
type=Enchantment
[/card]
[card]
text=Legendary {T}: Add {R} to your mana pool. {T}: Target creature loses all landwalk abilities until end of turn.
text=Legendary. {T}: Add {R} to your mana pool. {T}: Target creature loses all landwalk abilities until end of turn.
auto={T}:Add {R}
auto={T}:-plainswalk && -islandwalk && -swampwalk && -mountainwalk && -forestwalk target(creature)
id=1700
@@ -1315,7 +1315,7 @@ toughness=4
abilities=legendary
[/card]
[card]
text=Legendary {T}: Add {U} to your mana pool. {T}: Target Target creature loses banding and all "bands with other" abilities until end of turn. Play this ability only during any upkeep step.
text=Legendary. {T}: Add {U} to your mana pool. {T}: Target Target creature loses banding and all "bands with other" abilities until end of turn. Play this ability only during any upkeep step.
auto={T}: Add {U}
auto={T}:-banding target(creature)
id=1705
@@ -1390,7 +1390,7 @@ mana={2}{U}
type=Enchantment
[/card]
[card]
text=Legendary {T}: Add {B} to your mana pool. {T}: Target creature loses first strike or swampwalk until end of turn.
text=Legendary. {T}: Add {B} to your mana pool. {T}: Target creature loses first strike or swampwalk until end of turn.
auto={T}: Add {B}
auto={T}:-swampwalk target(creature)
auto={T}:-first strike target(creature)

View File

@@ -226,7 +226,7 @@ type=Artifact
mana={3}
[/card]
[card]
text=Protection from white At the end of your turn, you lose 4 life. Whenever a creature is put into a graveyard from play, you gain 2 life.
text=Protection from white. At the end of your turn, you lose 4 life. Whenever a creature is put into a graveyard from play, you gain 2 life.
abilities=protection from white
auto=@movedTo(creature|graveyard) from(battlefield):life:2
auto=@each my end:life:-4

View File

@@ -574,8 +574,7 @@ type=Land
[card]
text=When Highway Robber comes into play, target opponent loses 2 life and you gain 2 life.
id=19585
target=player
auto=damage:2
auto=life:-2 opponent
auto=life:2 controller
name=Highway Robber
color=Black

View File

@@ -818,7 +818,7 @@ subtype=Zombie Cleric
power=1
toughness=1
text={T}: Each player loses 1 life for each Zombie in play.
auto=foreach(Zombie) damage:1 all(player)
auto=foreach(Zombie) life:-1 all(player)
rarity=C
[/card]
[card]

View File

@@ -319,6 +319,17 @@ subtype=Human Knight
toughness=2
[/card]
[card]
text=Search your library for a card, then shuffle your library and put that card on top of it. You lose 2 life.
target=*|mylibrary
auto=moveTo(mylibrary)
auto=life:-2 controller
id=4215
name=Cruel Tutor
rarity=R
type=Sorcery
mana={2}{B}
[/card]
[card]
text=Deep-Sea Serpent can't attack unless defending player controls an Island.
abilities=cantattack
auto=aslongas(island|opponentinplay) -cantattack
@@ -396,7 +407,7 @@ toughness=6
abilities=flying
[/card]
[card]
text=Flying When Dread Reaper comes into play, you lose 5 life.
text=Flying. When Dread Reaper comes into play, you lose 5 life.
auto=life:-5
id=4217
name=Dread Reaper

View File

@@ -95,14 +95,6 @@ type=Sorcery
mana={4}{U}
[/card]
[card]
text=Search your library for a card, then shuffle your library and put that card on top of it. You lose 2 life.
id=4215
name=Cruel Tutor
rarity=R
type=Sorcery
mana={2}{B}
[/card]
[card]
text=Play Deep Wood only during the declare attackers step and only if you are the defending player. Prevent all damage that would be dealt to you this turn by attacking creatures.
id=4292
name=Deep Wood

View File

@@ -386,7 +386,7 @@ abilities=mountainwalk
[card]
text={B}, Sacrifice a creature: Target player loses 1 life.
id=89038
auto={B}{S(creature|myinplay)}:damage:1 target(player)
auto={B}{S(creature|myinplay)}:life:-1 opponent
name=Golgari Rotwurm
rarity=C
type=Creature
@@ -517,8 +517,8 @@ mana={W}{R}
type=Instant
[/card]
[card]
text=Flying At the beginning of your upkeep, you lose 1 life.
alias=1221
text=Flying. At the beginning of your upkeep, you lose 1 life.
auto=@each my upkeep:life:-1
id=83631
name=Moroii
color=Black,Blue
@@ -923,11 +923,11 @@ rarity=C
mana={3}{U}{U}
type=Creature
subtype=Elemental
{4}:-defender
{T}:untap target(*)
auto={4}:-defender
auto={T}:untap target(*)
power=4
toughness=4
auto=defender
abilities=defender
[/card]
[card]
text=Legendary Other green creatures you control get +1/+1. Other white creatures you control get +1/+1. {T}: Put a legendary 2/2 green and white Wolf creature token named Voja into play.

View File

@@ -1918,7 +1918,8 @@ subtype=Troll
toughness=2
[/card]
[card]
text=Flying At the beginning of your upkeep, Serendib Efreet deals 1 damage to you.
text=Flying. At the beginning of your upkeep, Serendib Efreet deals 1 damage to you.
auto=@each my upkeep:life:-1
abilities=Flying
id=1221
name=Serendib Efreet

View File

@@ -874,7 +874,7 @@ mana={1}{R}
[card]
text={B}{R}: Each player loses 1 life.
id=157880
auto={B}{R}:damage:1 all(player)
auto={B}{R}:life:-1 all(player)
name=Spiteflame Witch
rarity=U
type=Creature

View File

@@ -1272,12 +1272,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver(NEW APsychicVenom(_id, card, card->target));
break;
}
case 1221: //Serendib Efreet
{
game->addObserver( NEW ASerendibEfreet(_id, card));
break;
}
case 1226: //Steal Artifact
case 1226: //Steal Artifact
{
game->addObserver( NEW AControlStealAura(_id, card, card->target));
break;
@@ -1735,21 +1730,7 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
game->addObserver(NEW UntapBlocker(_id,card,card->target));
break;
}
case 135197: //Stronghold Discipline
{
GameObserver * game = GameObserver::GetInstance();
for (int i = 0; i < 2 ; i++){
for (int j = 0; j < game->players[i]->game->inPlay->nb_cards; j++){
MTGCardInstance * current = game->players[i]->game->inPlay->cards[j];
if (current->hasType("Creature")){
current->controller()->life-= 1;
}
}
}
break;
}
case 130369: // Soulblast
{
int damage = 0;