Jeck - Added and tested "oneblocker" ability, which allows for cards that "can't be blocked by more than one creature.". I've put in Stalking Tiger (I think... these primitives are cool! I just added the prim and all of a sudden it was in 10E), but this should also add Charging Rhino, Familiar Ground, "Huang Zhong, Shu General", Ironhoof Ox, Krosan Vorine, Norwood Riders, Vorrac Battlehorns, "Yuan Shao, the indecisive".
Test and more cards (the ones I can figure out how to do) forthcoming.
This commit is contained in:
@@ -38047,15 +38047,6 @@ mana={3}
|
||||
type=Artifact
|
||||
[/card]
|
||||
[card]
|
||||
name=Stalking Tiger
|
||||
text=Stalking Tiger can't be blocked by more than one creature.
|
||||
mana={3}{G}
|
||||
type=Creature
|
||||
subtype=Cat
|
||||
power=3
|
||||
toughness=3
|
||||
[/card]
|
||||
[card]
|
||||
name=Stalking Vengeance
|
||||
text=Haste Whenever another creature you control is put into a graveyard from the battlefield, it deals damage equal to its power to target player.
|
||||
mana={5}{R}{R}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -102,8 +102,9 @@ class Constants
|
||||
DEATHTOUCH = 44,
|
||||
HORSEMANSHIP = 45,
|
||||
CANTREGENERATE = 46,
|
||||
ONEBLOCKER = 47,
|
||||
|
||||
NB_BASIC_ABILITIES = 47,
|
||||
NB_BASIC_ABILITIES = 48,
|
||||
|
||||
|
||||
RARITY_M = 'M', //Mythics
|
||||
|
||||
@@ -347,6 +347,7 @@ int MTGCardInstance::canBlock(MTGCardInstance * opponent){
|
||||
if (opponent->protectedAgainst(this)) return 0;
|
||||
if (opponent->cantBeBlockedBy(this)) return 0;
|
||||
if (opponent->basicAbilities[Constants::UNBLOCKABLE]) return 0;
|
||||
if (opponent->basicAbilities[Constants::ONEBLOCKER] && opponent->blocked) return 0;
|
||||
if (opponent->basicAbilities[Constants::FEAR] && !(hasType(Subtypes::TYPE_ARTIFACT) || hasColor(Constants::MTG_COLOR_BLACK))) return 0;
|
||||
|
||||
//intimidate
|
||||
|
||||
@@ -55,6 +55,7 @@ const char* Constants::MTGBasicAbilities[] = {
|
||||
"deathtouch",
|
||||
"horsemanship",
|
||||
"cantregenerate",
|
||||
"oneblocker",
|
||||
};
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user