name: Big
card_text: When a Spell Card is activated that targets this face-down card (and no other cards) (Quick Effect): Change this card to face-up Defense Position, and if you do, negate the activation. If this card is attacked, change it to Attack Position at the end of the Damage Step.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--to attack
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
  	e1:SetCode(EVENT_DAMAGE_STEP_END)
  	e1:SetOperation(s.posop)
  	c:RegisterEffect(e1)
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_QUICK_F)
  	e2:SetCode(EVENT_CHAINING)
  	e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DAMAGE_CAL + EFFECT_FLAG_SET_AVAILABLE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetCondition(s.negcon)
  	e2:SetOperation(s.negop)
  	c:RegisterEffect(e2)
  end
  function s.posop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if c == Duel.GetAttackTarget() and c:IsDefensePos() and c:IsRelateToBattle() then
  		Duel.ChangePosition(c, POS_FACEUP_ATTACK)
  	end
  end
  function s.negcon(e, tp, eg, ep, ev, re, r, rp)
  	if re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then
  		local tg = Duel.GetChainInfo(ev, CHAININFO_TARGET_CARDS)
  		return tg:GetCount() == 1 and tg:GetFirst() == e:GetHandler() and e:GetHandler():IsFacedown()
  	else
  		return false
  	end
  end
  function s.negop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if c:IsRelateToEffect(e) and Duel.ChangePosition(c, POS_FACEUP_DEFENSE) then
  		Duel.NegateActivation(ev)
  	end
  end
  
  
source_text: Big
  When a Spell Card is activated that targets this face-down card (and no other cards) (Quick Effect): Change this card to face-up Defense Position, and if you do, negate the activation. If this card is attacked, change it to Attack Position at the end of the Damage Step.
target_text: -- Big
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--to attack
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_CONTINUOUS)
  	e1:SetCode(EVENT_DAMAGE_STEP_END)
  	e1:SetOperation(s.posop)
  	c:RegisterEffect(e1)
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_QUICK_F)
  	e2:SetCode(EVENT_CHAINING)
  	e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP + EFFECT_FLAG_DAMAGE_CAL + EFFECT_FLAG_SET_AVAILABLE)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetCondition(s.negcon)
  	e2:SetOperation(s.negop)
  	c:RegisterEffect(e2)
  end
  function s.posop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if c == Duel.GetAttackTarget() and c:IsDefensePos() and c:IsRelateToBattle() then
  		Duel.ChangePosition(c, POS_FACEUP_ATTACK)
  	end
  end
  function s.negcon(e, tp, eg, ep, ev, re, r, rp)
  	if re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then
  		local tg = Duel.GetChainInfo(ev, CHAININFO_TARGET_CARDS)
  		return tg:GetCount() == 1 and tg:GetFirst() == e:GetHandler() and e:GetHandler():IsFacedown()
  	else
  		return false
  	end
  end
  function s.negop(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	if c:IsRelateToEffect(e) and Duel.ChangePosition(c, POS_FACEUP_DEFENSE) then
  		Duel.NegateActivation(ev)
  	end
  end
  
  