Difference between revisions of "Template:BAM ability"
(Adding support for "Fusion". Need to strip hyphens out of the input for this.) |
Dinoguy1000 (talk | contribs) (minor tweak) |
||
(3 intermediate revisions by one other user not shown) | |||
Line 2: | Line 2: | ||
before we start, normalize the input a bit: | before we start, normalize the input a bit: | ||
− | * strip "All" and "Necro" | + | * strip "All", "Non-" and "Necro" |
* "Monsters" and "Spells" to "Monster" and "Spell", respectively | * "Monsters" and "Spells" to "Monster" and "Spell", respectively | ||
− | -->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | All }} | Necro }} | - }} | Spells | Spell }} | Monsters | Monster }} }}<!-- | + | -->{{ #vardefine: $input | {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{ #replace: {{{1}}} | All }} | Non- }} | Necro }} | - }} | Spells | Spell }} | Monsters | Monster }} }}<!-- |
-->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}<!-- | -->{{ #vardefine: $necro | {{ #if: {{ #pos: {{{1}}} | Necro }} | Necro }} }}<!-- | ||
+ | |||
+ | -->{{ #vardefine: $non | {{ #if: {{ #pos: {{{1}}} | Non- }} | Non- }} }}<!-- | ||
-->{{ #vardefine: $all | {{ #if: {{ #pos: +{{ urlencode: {{{1}}} }}+ | +All+ }} | true }} }}<!-- | -->{{ #vardefine: $all | {{ #if: {{ #pos: +{{ urlencode: {{{1}}} }}+ | +All+ }} | true }} }}<!-- | ||
Line 29: | Line 31: | ||
-->{{ #vardefine: $target | -->{{ #vardefine: $target | ||
− | | {{ #switch: {{ #var: $target }} | + | | {{ #var: $non }}{{ #switch: {{ #var: $target }} |
| Light | Dark | Earth | Wind | Fire | Water | | Light | Dark | Earth | Wind | Fire | Water | ||
Line 90: | Line 92: | ||
}} [[Life Points]] | }} [[Life Points]] | ||
| Hurt = Your Opponent loses [[Life Points]] | | Hurt = Your Opponent loses [[Life Points]] | ||
− | | Immune = | + | | Immune = {{ #if: {{ #var: $all }} |
+ | | All your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monsters]] }} | ||
+ | | Your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monster]] }} | ||
+ | }} cannot lose [[ATK|Power]] or be [[destroy]]ed | ||
| Last Stand = Doubles its [[ATK|Power]] if there are no cards in your [[Main Deck|Deck]] at Round Start | | Last Stand = Doubles its [[ATK|Power]] if there are no cards in your [[Main Deck|Deck]] at Round Start | ||
| Mirror = Every Round, the first time you lose [[Life Points]], your Opponent loses Life Points | | Mirror = Every Round, the first time you lose [[Life Points]], your Opponent loses Life Points |
Latest revision as of 21:53, 1 June 2014
.