name: The
card_text: Activate this card by declaring 1 Monster Type. Monsters of that Type cannot declare attacks. Once per turn, during your Standby Phase, Tribute 1 monster or destroy this card.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	c:RegisterEffect(e1)
  	--cannot attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_ATTACK)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.atktarget)
  	c:RegisterEffect(e2)
  	e2:SetLabelObject(e1)
  	--maintain
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e3:SetCode(EVENT_PHASE + PHASE_STANDBY)
  	e3:SetRange(LOCATION_SZONE)
  	e3:SetCountLimit(1)
  	e3:SetCondition(s.mtcon)
  	e3:SetOperation(s.mtop)
  	c:RegisterEffect(e3)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_RACE)
  	local rc = Duel.AnnounceRace(tp, 1, RACE_ALL)
  	e:SetLabel(rc)
  	e:GetHandler():SetHint(CHINT_RACE, rc)
  end
  function s.atktarget(e, c)
  	return c:IsRace(e:GetLabelObject():GetLabel())
  end
  function s.mtcon(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetTurnPlayer() == tp
  end
  function s.mtop(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.CheckReleaseGroupEx(tp, nil, 1, REASON_MAINTENANCE, false, nil) and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
  		local g = Duel.SelectReleaseGroupEx(tp, nil, 1, 1, REASON_MAINTENANCE, false, nil)
  		Duel.Release(g, REASON_MAINTENANCE)
  	else
  		Duel.Destroy(e:GetHandler(), REASON_COST)
  	end
  end
  
  
source_text: The
  Activate this card by declaring 1 Monster Type. Monsters of that Type cannot declare attacks. Once per turn, during your Standby Phase, Tribute 1 monster or destroy this card.
target_text: -- The
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	c:RegisterEffect(e1)
  	--cannot attack
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetCode(EFFECT_CANNOT_ATTACK)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetTargetRange(LOCATION_MZONE, LOCATION_MZONE)
  	e2:SetTarget(s.atktarget)
  	c:RegisterEffect(e2)
  	e2:SetLabelObject(e1)
  	--maintain
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_UNCOPYABLE)
  	e3:SetCode(EVENT_PHASE + PHASE_STANDBY)
  	e3:SetRange(LOCATION_SZONE)
  	e3:SetCountLimit(1)
  	e3:SetCondition(s.mtcon)
  	e3:SetOperation(s.mtop)
  	c:RegisterEffect(e3)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_RACE)
  	local rc = Duel.AnnounceRace(tp, 1, RACE_ALL)
  	e:SetLabel(rc)
  	e:GetHandler():SetHint(CHINT_RACE, rc)
  end
  function s.atktarget(e, c)
  	return c:IsRace(e:GetLabelObject():GetLabel())
  end
  function s.mtcon(e, tp, eg, ep, ev, re, r, rp)
  	return Duel.GetTurnPlayer() == tp
  end
  function s.mtop(e, tp, eg, ep, ev, re, r, rp)
  	if Duel.CheckReleaseGroupEx(tp, nil, 1, REASON_MAINTENANCE, false, nil) and Duel.SelectYesNo(tp, aux.Stringid(id, 0)) then
  		local g = Duel.SelectReleaseGroupEx(tp, nil, 1, 1, REASON_MAINTENANCE, false, nil)
  		Duel.Release(g, REASON_MAINTENANCE)
  	else
  		Duel.Destroy(e:GetHandler(), REASON_COST)
  	end
  end
  
  