name: Superheavy
card_text: 1 Tuner + 1 or more non-Tuner "Superheavy Samurai" monsters
  This card can attack while in face-up Defense Position. If it does, apply its DEF for damage calculation. If you have no Spell/Trap Cards in your Graveyard, this card gains 900 DEF for each Special Summoned monster your opponent controls.
external_ids: local SETCARD_ID_0 = 0x9a --Superheavy
  
lua: local SETCARD_ID_0 = 0x9a --Superheavy
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, nil, aux.NonTuner(Card.IsSetCard, SETCARD_ID_0), 1)
  	c:EnableReviveLimit()
  	--defense attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE)
  	e2:SetCode(EFFECT_DEFENSE_ATTACK)
  	e2:SetValue(1)
  	c:RegisterEffect(e2)
  	--
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_SINGLE)
  	e3:SetCode(EFFECT_UPDATE_DEFENSE)
  	e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e3:SetRange(LOCATION_MZONE)
  	e3:SetCondition(s.sccon)
  	e3:SetValue(s.adval)
  	c:RegisterEffect(e3)
  end
  function s.sccon(e)
  	return not Duel.IsExistingMatchingCard(Card.IsType, e:GetHandlerPlayer(), LOCATION_GRAVE, 0, 1, nil, TYPE_SPELL + TYPE_TRAP)
  end
  function s.adval(e, c)
  	return Duel.GetMatchingGroupCount(s.ctfilter, c:GetControler(), 0, LOCATION_MZONE, nil) * 900
  end
  function s.ctfilter(c)
  	return c:IsSummonType(SUMMON_TYPE_SPECIAL)
  end
  
  
source_text: Superheavy
  1 Tuner + 1 or more non-Tuner "Superheavy Samurai" monsters
  This card can attack while in face-up Defense Position. If it does, apply its DEF for damage calculation. If you have no Spell/Trap Cards in your Graveyard, this card gains 900 DEF for each Special Summoned monster your opponent controls.
target_text: -- Superheavy
  local SETCARD_ID_0 = 0x9a --Superheavy
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--synchro summon
  	aux.AddSynchroProcedure(c, nil, aux.NonTuner(Card.IsSetCard, SETCARD_ID_0), 1)
  	c:EnableReviveLimit()
  	--defense attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_SINGLE)
  	e2:SetCode(EFFECT_DEFENSE_ATTACK)
  	e2:SetValue(1)
  	c:RegisterEffect(e2)
  	--
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_SINGLE)
  	e3:SetCode(EFFECT_UPDATE_DEFENSE)
  	e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
  	e3:SetRange(LOCATION_MZONE)
  	e3:SetCondition(s.sccon)
  	e3:SetValue(s.adval)
  	c:RegisterEffect(e3)
  end
  function s.sccon(e)
  	return not Duel.IsExistingMatchingCard(Card.IsType, e:GetHandlerPlayer(), LOCATION_GRAVE, 0, 1, nil, TYPE_SPELL + TYPE_TRAP)
  end
  function s.adval(e, c)
  	return Duel.GetMatchingGroupCount(s.ctfilter, c:GetControler(), 0, LOCATION_MZONE, nil) * 900
  end
  function s.ctfilter(c)
  	return c:IsSummonType(SUMMON_TYPE_SPECIAL)
  end
  
  