- Add a simple macro system for auto lines (the goal is to help mostly with repetitive card auto lines such as the ones we have in MotD mod) Check the MotD mod for examples.
-- I added an AbilityParser.cpp file, mid term goal is to move AbilityFactory there, so that MTGAbility.cpp becomes a bit less big. -- I tried to add the file reference in Makefiles, but only tested windows compilation so far - Fixed bugs related to "castRestriction" variables in MTGAbility. these variables were declared in both the parent and children classes, leading to bugs and duplicate code/content The test suite passes
This commit is contained in:
@@ -3026,21 +3026,22 @@ toughness=6
|
||||
name=Archery Training
|
||||
target=creature
|
||||
auto=@each my upkeep:may counter(0/0,1,Archery) all(this)
|
||||
auto=this(counter{0/0.1.Archery}=) teach(creature) {T}:damage:1 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.2.Archery}=) teach(creature) {T}:damage:2 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.3.Archery}=) teach(creature) {T}:damage:3 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.4.Archery}=) teach(creature) {T}:damage:4 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.5.Archery}=) teach(creature) {T}:damage:5 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.6.Archery}=) teach(creature) {T}:damage:6 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.7.Archery}=) teach(creature) {T}:damage:7 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.8.Archery}=) teach(creature) {T}:damage:8 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.9.Archery}=) teach(creature) {T}:damage:9 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.10.Archery}=) teach(creature) {T}:damage:10 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.11.Archery}=) teach(creature) {T}:damage:11 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.12.Archery}=) teach(creature) {T}:damage:12 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.13.Archery}=) teach(creature) {T}:damage:13 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.14.Archery}=) teach(creature) {T}:damage:14 target(creature[attacking;blocking])
|
||||
auto=this(counter{0/0.15.Archery}=) teach(creature) {T}:damage:15 target(creature[attacking;blocking])
|
||||
#AUTO_DEFINE _ARCHERY_TRAINING_($c) this(counter{0/0.$c.Archery}=) teach(creature) {T}:damage:$c target(creature[attacking;blocking])
|
||||
auto=_ARCHERY_TRAINING_(1)
|
||||
auto=_ARCHERY_TRAINING_(2)
|
||||
auto=_ARCHERY_TRAINING_(3)
|
||||
auto=_ARCHERY_TRAINING_(4)
|
||||
auto=_ARCHERY_TRAINING_(5)
|
||||
auto=_ARCHERY_TRAINING_(6)
|
||||
auto=_ARCHERY_TRAINING_(7)
|
||||
auto=_ARCHERY_TRAINING_(8)
|
||||
auto=_ARCHERY_TRAINING_(9)
|
||||
auto=_ARCHERY_TRAINING_(10)
|
||||
auto=_ARCHERY_TRAINING_(11)
|
||||
auto=_ARCHERY_TRAINING_(12)
|
||||
auto=_ARCHERY_TRAINING_(13)
|
||||
auto=_ARCHERY_TRAINING_(14)
|
||||
auto=_ARCHERY_TRAINING_(15)
|
||||
text=Enchant creature -- At the beginning of your upkeep, you may put an arrow counter on Archery Training. -- Enchanted creature has "{T}: This creature deals X damage to target attacking or blocking creature, where X is the number of arrow counters on Archery Training."
|
||||
mana={W}
|
||||
type=Enchantment
|
||||
|
||||
Reference in New Issue
Block a user