<% if (typeof card !== 'undefined') { var release_map = { 's01c': 'Clash of the Gods', 's01d': 'Demo (Set 01)', 's01n': 'Nemesis', 's01p': 'Promos (Set 01)', 's01r': 'Cthulhu Rises', }; %>
<% if (card.num.toLowerCase().indexOf('d') > -1 ) { %> <% } %> Card image for <%=card.name%> <% if (card.num.toLowerCase().indexOf('d') > -1 ) { %> <% } %>
Name
<%= card.name %>
Number
<%= card.num.toUpperCase() %>
Release
<%- release_map[card.num.toLowerCase().substr(0,4)] %>
<% if (card.pantheon !== '') { %>
Pantheon
<%= card.pantheon %>
<% } %> <% if (card.race.indexOf(' ') !== -1) { %>
Races
<%= card.race %>
<% } else if (card.race !== '') { %>
Race
<%= card.race %>
<% } %> <% if (card.type.indexOf(' ') !== -1) { %>
Types
<%= card.type %>
<% } else if (card.type !== '') { %>
Type
<%= card.type %>
<% } %> <% if (card.element.indexOf(' ') !== -1) { %>
Elements
<% card.element.split(/\s+/).forEach(function(el) { %> <%= el %> <% }); %>
<% } else if (card.element !== '') { %>
Element
<%= card.element %>
<% } %> <% if (card.attack !== '') { %>
Attack
<%= card.attack %>
<% } %> <% if (card.defense !== '') { %>
Defense
<%= card.defense %>
<% } %> <% if (card.power !== '') { %>
Power
<%= card.power %>
<% } %>
Image
<%= card.credit %>
<% if (card.ability_name !== '') { %>
Ability
<%- card.ability_name %>
<%- card.ability_text .replace(/EMPOWER/g, 'Empower') .replace(/{CHAOS}/g, 'Chaos') .replace(/{LAW}/g, 'Law') .replace(/{AIR}/g, 'Air') .replace(/{EARTH}/g, 'Earth') .replace(/{FIRE}/g, 'Fire') .replace(/{WATER}/g, 'Water') .replace(/{OLD_ONES}/g, 'Water') %>
<% } else if (card.ability_text !== ''){ %>
Ability
<%- card.ability_text.replace('EMPOWER', 'Empower') %>
<% } %> <% if (card.flavor !== '') { %>
Flavor
<%- card.flavor %>
<% } %> <% if ((card.wp && card.wp !== '') || (card.lc && card.lc !== '')) { %>
Learn More
<% if (card.wp && card.wp !== '') { %> Wikipedia <% } %> <% if (card.wp && card.wp !== '' && card.lc && card.lc !== '') { %> · <% } %> <% if (card.lc && card.lc !== '') { %> Lovecraft Wiki <% } %>
<% } %>
Copyright
© <%= card.copyright_year %> <%= card.copyright_owner %>
<% } %>