morethanfourcards for cards like black vise
This commit is contained in:
@@ -8883,7 +8883,7 @@ type=Sorcery
|
|||||||
[card]
|
[card]
|
||||||
name=Black Vise
|
name=Black Vise
|
||||||
auto=name(choose opponent) notatarget(opponent) deplete:0
|
auto=name(choose opponent) notatarget(opponent) deplete:0
|
||||||
auto=@each targetedplayer upkeep:foreach(*|targetedpersonshand) damage:1 targetedplayer >4
|
auto=@each targetedplayer upkeep:damage:morethanfourcards targetedplayer
|
||||||
text=As Black Vise enters the battlefield, choose an opponent. -- At the beginning of the chosen player's upkeep, Black Vise deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
text=As Black Vise enters the battlefield, choose an opponent. -- At the beginning of the chosen player's upkeep, Black Vise deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
||||||
mana={1}
|
mana={1}
|
||||||
type=Artifact
|
type=Artifact
|
||||||
@@ -47645,7 +47645,7 @@ type=Artifact
|
|||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
name=Iron Maiden
|
name=Iron Maiden
|
||||||
auto=@each opponent upkeep:foreach(*|opponenthand) damage:1 opponent >4
|
auto=@each opponent upkeep:damage:morethanfourcards opponent
|
||||||
text=At the beginning of each opponent's upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
text=At the beginning of each opponent's upkeep, Iron Maiden deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
||||||
mana={3}
|
mana={3}
|
||||||
type=Artifact
|
type=Artifact
|
||||||
@@ -76605,6 +76605,13 @@ power=3
|
|||||||
toughness=4
|
toughness=4
|
||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
|
name=Restore the Peace
|
||||||
|
auto=all(creature[damager]) moveto(ownerhand)
|
||||||
|
text=Return each creature that dealt damage this turn to its owner's hand.
|
||||||
|
mana={1}{W}{U}
|
||||||
|
type=Instant
|
||||||
|
[/card]
|
||||||
|
[card]
|
||||||
name=Restrain
|
name=Restrain
|
||||||
target=creature[attacking]
|
target=creature[attacking]
|
||||||
auto=0/0 && fog from(mytgt) oneshot
|
auto=0/0 && fog from(mytgt) oneshot
|
||||||
@@ -105376,7 +105383,7 @@ toughness=3
|
|||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
name=Viseling
|
name=Viseling
|
||||||
auto=@each opponent upkeep:foreach(*|opponenthand) damage:1 opponent >4
|
auto=@each opponent upkeep:damage:morethanfourcards opponent
|
||||||
text=At the beginning of each opponent's upkeep, Viseling deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
text=At the beginning of each opponent's upkeep, Viseling deals X damage to that player, where X is the number of cards in his or her hand minus 4.
|
||||||
mana={4}
|
mana={4}
|
||||||
type=Artifact Creature
|
type=Artifact Creature
|
||||||
|
|||||||
@@ -639,6 +639,21 @@ private:
|
|||||||
{
|
{
|
||||||
intValue = target->controller()->opponent()->game->hand->nb_cards;
|
intValue = target->controller()->opponent()->game->hand->nb_cards;
|
||||||
}
|
}
|
||||||
|
else if (s == "morethanfourcards")
|
||||||
|
{
|
||||||
|
if(card->playerTarget)
|
||||||
|
{//blackvise
|
||||||
|
intValue = 0;
|
||||||
|
if ((card->playerTarget->game->hand->nb_cards - 4)>0)
|
||||||
|
intValue = (card->playerTarget->game->hand->nb_cards - 4);
|
||||||
|
}
|
||||||
|
else
|
||||||
|
{//viseling
|
||||||
|
intValue = 0;
|
||||||
|
if ((card->controller()->opponent()->game->hand->nb_cards - 4)>0)
|
||||||
|
intValue = (card->controller()->opponent()->game->hand->nb_cards - 4);
|
||||||
|
}
|
||||||
|
}
|
||||||
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable
|
else if (s == "powertotalinplay")//Count Total Power of Creatures you control... Formidable
|
||||||
{
|
{
|
||||||
intValue = 0;
|
intValue = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user