Laurent - added rampage to the parser (see example from diverse set) could be extended...I've let the ability "rampage" (in fact rampage 1) but older set (esp. legends, would need an update later on).
This commit is contained in:
@@ -600,6 +600,7 @@ mana={3}{U}{U}
|
||||
[card]
|
||||
text=Whenever Elvish Berserker becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
|
||||
id=129533
|
||||
auto=rampage(1/1,0)
|
||||
name=Elvish Berserker
|
||||
rarity=C
|
||||
color=Green
|
||||
|
||||
@@ -623,6 +623,18 @@ subtype=Human Cleric Druid
|
||||
toughness=1
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Johtull Wurm becomes blocked, it gets -2/-1 until end of turn for each creature blocking it beyond the first.
|
||||
id=2574
|
||||
name=Johtull Wurm
|
||||
auto=rampage(-2/-1,1)
|
||||
rarity=U
|
||||
type=Creature
|
||||
mana={5}{G}
|
||||
power=6
|
||||
subtype=Wurm
|
||||
toughness=6
|
||||
[/card]
|
||||
[card]
|
||||
text={T}: Add {1} to your mana pool. {T}: Add {R} or {G} to your mana pool. Karplusan Forest deals 1 damage to you.
|
||||
id=2755
|
||||
auto={T}:add {1}
|
||||
|
||||
@@ -1068,17 +1068,6 @@ type=Artifact
|
||||
mana={0}
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Johtull Wurm becomes blocked, it gets -2/-1 until end of turn for each creature blocking it beyond the first.
|
||||
id=2574
|
||||
name=Johtull Wurm
|
||||
rarity=U
|
||||
type=Creature
|
||||
mana={5}{G}
|
||||
power=6
|
||||
subtype=Wurm
|
||||
toughness=6
|
||||
[/card]
|
||||
[card]
|
||||
text=At the beginning of your upkeep, sacrifice Justice unless you pay {W}{W}. Whenever a red creature or spell deals damage, Justice deals that much damage to that creature's or spell's controller.
|
||||
id=2692
|
||||
name=Justice
|
||||
|
||||
@@ -1122,6 +1122,18 @@ power=2
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Sparring Golem becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
|
||||
id=23225
|
||||
auto=rampage(1/1,0)
|
||||
name=Sparring Golem
|
||||
rarity=U
|
||||
type=Artifact Creature
|
||||
mana={3}
|
||||
power=2
|
||||
subtype=Golem
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text={2}: Target white or black creature gains flying until end of turn. (It can't be blocked except by creatures with flying or reach.)
|
||||
id=22996
|
||||
name=Sky Weaver
|
||||
|
||||
@@ -2328,17 +2328,6 @@ type=Sorcery
|
||||
mana={X}{2}{B}
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Sparring Golem becomes blocked, it gets +1/+1 until end of turn for each creature blocking it.
|
||||
id=23225
|
||||
name=Sparring Golem
|
||||
rarity=U
|
||||
type=Artifact Creature
|
||||
mana={3}
|
||||
power=2
|
||||
subtype=Golem
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text=Play Spinal Embrace only during combat. Untap target creature you don't control and gain control of it. It gains haste until end of turn. At end of turn, sacrifice it. If you do, you gain life equal to its toughness.
|
||||
id=23189
|
||||
name=Spinal Embrace
|
||||
|
||||
@@ -451,6 +451,18 @@ toughness=1
|
||||
rarity=U
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Jungle Wurm becomes blocked, it gets -1/-1 until end of turn for each creature blocking it beyond the first.
|
||||
id=3393
|
||||
auto=rampage(-1/-1,1)
|
||||
name=Jungle Wurm
|
||||
rarity=C
|
||||
type=Creature
|
||||
mana={3}{G}{G}
|
||||
power=5
|
||||
subtype=Wurm
|
||||
toughness=5
|
||||
[/card]
|
||||
[card]
|
||||
text=Protection from blue
|
||||
id=3394
|
||||
name=Karoo Meerkat
|
||||
@@ -819,6 +831,18 @@ toughness=3
|
||||
rarity=C
|
||||
[/card]
|
||||
[card]
|
||||
text=Flying; trample; rampage 4 (Whenever this creature becomes blocked, it gets +4/+4 until end of turn for each creature blocking it beyond the first.)
|
||||
id=3268
|
||||
auto=rampage(4/4,1)
|
||||
name=Teeka's Dragon
|
||||
rarity=R
|
||||
type=Artifact Creature
|
||||
mana={9}
|
||||
power=5
|
||||
subtype=Dragon
|
||||
toughness=5
|
||||
[/card]
|
||||
[card]
|
||||
text={2}{T}: Telim'Tor's Darts deals 1 damage to target player.
|
||||
id=3269
|
||||
name=Telim'Tor's Darts
|
||||
@@ -1072,7 +1096,7 @@ id=3252
|
||||
name=Horrible Hordes
|
||||
type=Artifact Creature
|
||||
subtype=Spirit
|
||||
abilities=rampage
|
||||
auto=rampage(1/1,1)
|
||||
mana={3}
|
||||
power=2
|
||||
toughness=2
|
||||
|
||||
@@ -1331,17 +1331,6 @@ subtype=Viashino Shaman
|
||||
toughness=4
|
||||
[/card]
|
||||
[card]
|
||||
text=Rampage 1 (Whenever this creature becomes blocked, it gets +1/+1 until end of turn for each creature blocking it beyond the first.)
|
||||
id=3252
|
||||
name=Horrible Hordes
|
||||
rarity=U
|
||||
type=Artifact Creature
|
||||
mana={3}
|
||||
power=2
|
||||
subtype=Spirit
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text={2}: Igneous Golem gains trample until end of turn.
|
||||
id=3253
|
||||
name=Igneous Golem
|
||||
@@ -1485,17 +1474,6 @@ subtype=Troll
|
||||
toughness=1
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Jungle Wurm becomes blocked, it gets -1/-1 until end of turn for each creature blocking it beyond the first.
|
||||
id=3393
|
||||
name=Jungle Wurm
|
||||
rarity=C
|
||||
type=Creature
|
||||
mana={3}{G}{G}
|
||||
power=5
|
||||
subtype=Wurm
|
||||
toughness=5
|
||||
[/card]
|
||||
[card]
|
||||
text=Kaervek's Hex deals 1 damage to each nonblack creature and an additional 1 damage to each green creature.
|
||||
id=3299
|
||||
name=Kaervek's Hex
|
||||
@@ -2722,17 +2700,6 @@ subtype=Serpent
|
||||
toughness=7
|
||||
[/card]
|
||||
[card]
|
||||
text=Flying; trample; rampage 4 (Whenever this creature becomes blocked, it gets +4/+4 until end of turn for each creature blocking it beyond the first.)
|
||||
id=3268
|
||||
name=Teeka's Dragon
|
||||
rarity=R
|
||||
type=Artifact Creature
|
||||
mana={9}
|
||||
power=5
|
||||
subtype=Dragon
|
||||
toughness=5
|
||||
[/card]
|
||||
[card]
|
||||
text=Enchant artifact or creature Enchanted permanent has phasing.
|
||||
id=3367
|
||||
name=Teferi's Curse
|
||||
|
||||
@@ -901,6 +901,18 @@ toughness=2
|
||||
rarity=U
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Rabid Elephant becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.
|
||||
id=29781
|
||||
auto=rampage(2/2,0)
|
||||
name=Rabid Elephant
|
||||
rarity=C
|
||||
type=Creature
|
||||
mana={4}{G}
|
||||
power=3
|
||||
subtype=Elephant
|
||||
toughness=4
|
||||
[/card]
|
||||
[card]
|
||||
text=Ravaged Highlands comes into play tapped. Tap: Add R to your mana pool. Tap, Sacrifice Ravaged Highlands: Add one mana of any color to your mana pool.
|
||||
id=31764
|
||||
auto=tap
|
||||
|
||||
@@ -1539,17 +1539,6 @@ subtype=Atog
|
||||
toughness=2
|
||||
[/card]
|
||||
[card]
|
||||
text=Whenever Rabid Elephant becomes blocked, it gets +2/+2 until end of turn for each creature blocking it.
|
||||
id=29781
|
||||
name=Rabid Elephant
|
||||
rarity=C
|
||||
type=Creature
|
||||
mana={4}{G}
|
||||
power=3
|
||||
subtype=Elephant
|
||||
toughness=4
|
||||
[/card]
|
||||
[card]
|
||||
text=Destroy target artifact or enchantment. Flashback {4}{W}{W} (You may play this card from your graveyard for its flashback cost. Then remove it from the game.)
|
||||
id=29808
|
||||
name=Ray of Distortion
|
||||
|
||||
@@ -2917,6 +2917,10 @@ class ARampageAbility:public MTGAbility{
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
if( newPhase == Constants::MTG_PHASE_AFTER_EOT ){
|
||||
source->power-= PowerModifier;
|
||||
source->addToToughness(-ToughnessModifier);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
@@ -708,6 +708,37 @@ int AbilityFactory::magicText(int id, Spell * spell, MTGCardInstance * card){
|
||||
continue;
|
||||
}
|
||||
|
||||
//rampage
|
||||
found = s.find("rampage(");
|
||||
if (found != string::npos){
|
||||
if (dryMode) {
|
||||
dryModeResult = BAKA_EFFECT_GOOD;
|
||||
dryModeResultSet = 1;
|
||||
break;
|
||||
}
|
||||
int end = s.find(",", found);
|
||||
string spt = s.substr(8,end - 1);
|
||||
int power, toughness;
|
||||
if ( parsePowerToughness(spt,&power, &toughness)){
|
||||
if (dryMode){
|
||||
if (power >=0 && toughness >= 0 ) {
|
||||
dryModeResult = BAKA_EFFECT_GOOD;
|
||||
}else{
|
||||
dryModeResult = BAKA_EFFECT_BAD;
|
||||
}
|
||||
break;
|
||||
}
|
||||
int MaxOpponent = atoi(s.substr(found+1).c_str());
|
||||
if(tc){
|
||||
//TODO??
|
||||
}else{
|
||||
game->addObserver(NEW ARampageAbility(id,card,power,toughness,MaxOpponent));
|
||||
|
||||
}
|
||||
result++;
|
||||
continue;
|
||||
}
|
||||
}
|
||||
|
||||
//Change Power/Toughness
|
||||
int power, toughness;
|
||||
@@ -1766,11 +1797,6 @@ void AbilityFactory::addAbilities(int _id, Spell * spell){
|
||||
card->target->controller()->life-= 3;
|
||||
break;
|
||||
}
|
||||
case 129533: //Elvish Berserker
|
||||
{
|
||||
game->addObserver (NEW ARampageAbility(_id,card,1,1,0));
|
||||
break;
|
||||
}
|
||||
//--- addon shm---
|
||||
case 146013: //Corrupt
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user