Erwan
- fix bug with Akron Legionnaire (Legends). See test
This commit is contained in:
@@ -47,7 +47,7 @@ toughness=4
|
|||||||
[/card]
|
[/card]
|
||||||
[card]
|
[card]
|
||||||
text=Except for creatures named Akron Legionnaire and artifact creatures, creatures you control can't attack.
|
text=Except for creatures named Akron Legionnaire and artifact creatures, creatures you control can't attack.
|
||||||
auto=lord(creature[-artifact]|myinplay) cantattack other
|
auto=lord(creature[-artifact;-Akron Legionnaire]|myinplay) cantattack
|
||||||
id=1599
|
id=1599
|
||||||
name=Akron Legionnaire
|
name=Akron Legionnaire
|
||||||
color=White
|
color=White
|
||||||
|
|||||||
@@ -18,6 +18,7 @@ generic/wither.txt
|
|||||||
#Specific Cards
|
#Specific Cards
|
||||||
########################
|
########################
|
||||||
afflict.txt
|
afflict.txt
|
||||||
|
akron_legionnaire.txt
|
||||||
Amugaba.txt
|
Amugaba.txt
|
||||||
anarchy.txt
|
anarchy.txt
|
||||||
animate_dead.txt
|
animate_dead.txt
|
||||||
|
|||||||
@@ -0,0 +1,20 @@
|
|||||||
|
#Bug: two akron legionnaires on your side, non can attack
|
||||||
|
[INIT]
|
||||||
|
COMBATATTACKERS
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:akron legionnaire,akron legionnaire,grizzly bears,dragon engine
|
||||||
|
[PLAYER2]
|
||||||
|
[DO]
|
||||||
|
akron legionnaire
|
||||||
|
grizzly bears
|
||||||
|
dragon engine
|
||||||
|
next
|
||||||
|
next
|
||||||
|
next
|
||||||
|
[ASSERT]
|
||||||
|
COMBATEND
|
||||||
|
[PLAYER1]
|
||||||
|
inplay:akron legionnaire,akron legionnaire,grizzly bears,dragon engine
|
||||||
|
[PLAYER2]
|
||||||
|
life:11
|
||||||
|
[END]
|
||||||
@@ -29,7 +29,7 @@ MTGCardInstance * CardDescriptor::match_or(MTGCardInstance * card){
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if (!card->hasSubtype(-types[i])){
|
if (!card->hasSubtype(-types[i]) && (Subtypes::subtypesList->find(card->name) != -types[i])){
|
||||||
found = 1;
|
found = 1;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
@@ -65,7 +65,7 @@ MTGCardInstance * CardDescriptor::match_and(MTGCardInstance * card){
|
|||||||
match = NULL;
|
match = NULL;
|
||||||
}
|
}
|
||||||
}else{
|
}else{
|
||||||
if(card->hasSubtype(-types[i])){
|
if(card->hasSubtype(-types[i]) || (Subtypes::subtypesList->find(card->name) == -types[i])){
|
||||||
match = NULL;
|
match = NULL;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user