Difference between revisions of "Template:BAM ability"

From Yugipedia
Jump to: navigation, search
m (Missing "your")
(minor tweak)
 
(12 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: {{{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 }} }}<!--
  
-->{{ #arraydefine: $actions | Acid, Annihilate, Backfire, Big, Bloodlust, Boost, Break, Courage, Cripple, Destroy, Drain, Empathy, Explosion, Farewell, Feeble, First, Fragile, Growth, Heal, Hurt, Immune, Last, Mirror, Osmosis, Parting, Power, Promo, Rage, Requiem, Resurrect, Sacrifice, Self-Destruct, Shared, Shock, Shockwave, Sneak, Soothe, Sorrow, Special, Spirit, Timidity }}<!--
+
-->{{BAM ability/action|{{{1}}}}}<!--
 
 
-->{{ #arraydefine: $ability | {{{1}}} | /\s/ }}<!--
 
 
 
-->{{ #arrayintersect: $A | $ability | $actions }}<!--
 
 
 
-->{{ #vardefine: $action
 
| {{ #switch: {{ #arrayindex: $A | 0 }}
 
  | Acid    = Acid Jet
 
  | Big      = Big Explosion
 
  | Break    = Break Immunity
 
  | First    = First Strike
 
  | Last    = Last Stand
 
  | Parting  = Parting Gift
 
  | Power    = Power Redistribution
 
  | Shared  = Shared Fate
 
  | Spirit  = Spirit Protection
 
  | #default = {{ #arrayprint: $A }}
 
  }}
 
}}<!--
 
  
 
-->{{ #vardefine: $target | {{ #replace: {{ #var: $input }} | {{ #var: $action }} }} }}<!--
 
-->{{ #vardefine: $target | {{ #replace: {{ #var: $input }} | {{ #var: $action }} }} }}<!--
Line 48: 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
   | Divine = [[{{ uc: {{ #var: $target }} }}]]
+
   | Divine = [[{{ uc: {{ #var: $target }} }}|{{ #var: $target }}]]
  
 
   | Fairy    | Fairies      = [[Fairy]]
 
   | Fairy    | Fairies      = [[Fairy]]
Line 109: Line 92:
 
   }} [[Life Points]]
 
   }} [[Life Points]]
 
| Hurt                  = Your Opponent loses [[Life Points]]
 
| Hurt                  = Your Opponent loses [[Life Points]]
| Immune                = Your {{ #if: {{ #var: $target }} | {{ #var: $target }} | [[Monster Card|Monster]] }}{{ #if: {{ #var: $all }} |s }} cannot lose [[ATK|Power]] or be [[destroy]]ed
+
| 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
Line 117: Line 103:
 
| Rage                  = Gains [[ATK|Power]] when you lose [[Life Points]]
 
| Rage                  = Gains [[ATK|Power]] when you lose [[Life Points]]
 
| Requiem              = Your Opponent's [[Monster Card|Monsters]] lose [[ATK|Power]] when this Monster is [[destroy]]ed
 
| Requiem              = Your Opponent's [[Monster Card|Monsters]] lose [[ATK|Power]] when this Monster is [[destroy]]ed
| Resurrect            = One random {{ #var: $target }} is shuffled from your [[Graveyard]] into your [[Main Deck|Deck]]
+
| Resist                = This [[Monster Card|Monster]] is unaffected by the effects of any other Cards on the field
| Sacrifice            = [[Destroy]] {{ #if: {{ #var: $all }}
+
| Resurrect            = One random {{ #var: $target }} from your [[Graveyard]] is shuffled into your [[Main Deck|Deck]]
 +
| Sacrifice            = [[Destroy]] {{ #if: {{ #var: $all }}{{ #switch: {{ #var: $target }} | [[Monster Card|Monster]] | [[Spell Card|Spell]] = | 1 }}
 
   | all your {{ #var: $target }}s
 
   | all your {{ #var: $target }}s
 
   | your {{ #var: $target }}
 
   | your {{ #var: $target }}
Line 124: Line 111:
 
| Self-Destruct        = [[Destroy]] at Round End
 
| Self-Destruct        = [[Destroy]] at Round End
 
| Shared Fate          = {{ #if: {{ #var: $all }}
 
| Shared Fate          = {{ #if: {{ #var: $all }}
   | When this card is [[destroy]]ed, all your Opponent's [[Monster Card|Monsters]] are destroyed
+
   | When this card is [[destroy]]ed, all your Opponent's [[Monster Card|Monsters]] are also destroyed
 
   | When [[destroy]]ed, your Opponent's [[Monster Card|Monster]] is also destroyed
 
   | When [[destroy]]ed, your Opponent's [[Monster Card|Monster]] is also destroyed
 
   }}
 
   }}
 
| Shock                = Your Opponent loses [[Life Points]] when your [[Monster Card|Monster]] [[attack]]s
 
| Shock                = Your Opponent loses [[Life Points]] when your [[Monster Card|Monster]] [[attack]]s
| Shockwave            = Once per Round, when this card gains [[ATK|Power]], your Opponent loses [[Life Points]]
+
| Shockwave            = Once per Round, when this [[Monster Card|Monster]] gains [[ATK|Power]], your Opponent loses [[Life Points]]
 +
| Silence              = {{ #if: {{ #var: $all }}
 +
  | Your Opponent's {{ #var: $target }} cannot [[activate]] its effect
 +
  | All your Opponent's {{ #var: $target }}s cannot [[activate]] their effects
 +
  }}
 
| Sneak                = [[Destroy]] your Opponent's [[Monster Card|Monster]] before it [[attack]]s
 
| Sneak                = [[Destroy]] your Opponent's [[Monster Card|Monster]] before it [[attack]]s
 
| Sorrow                = You lose [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
 
| Sorrow                = You lose [[Life Points]] when this [[Monster Card|Monster]] is [[destroy]]ed
 
| Spirit Protection    = When your [[Monster Card|Monster]] is [[destroy]]ed, all your other Monsters gain Immunity
 
| Spirit Protection    = When your [[Monster Card|Monster]] is [[destroy]]ed, all your other Monsters gain Immunity
 
| Timidity              = Loses [[ATK|Power]] if your Opponent has two or more [[Monster Card|Monsters]] in play
 
| Timidity              = Loses [[ATK|Power]] if your Opponent has two or more [[Monster Card|Monsters]] in play
| Promo | Special       =  
+
 
 +
| Fusion | Promo | Special =  
 
}}. {{ #if: {{ #var: $necro }}
 
}}. {{ #if: {{ #var: $necro }}
| This effect increases with each card in your [[Graveyard]].
+
| This effect increases with each Card in your [[Graveyard]].
 
}}
 
}}

Latest revision as of 21:53, 1 June 2014

.