name: Naturia
card_text: Your opponent can only activate 1 Spell/Trap Card each turn.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--activate limit
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
  	e1:SetCode(EVENT_CHAINING)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetOperation(s.aclimit1)
  	c:RegisterEffect(e1)
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
  	e2:SetCode(EVENT_CHAIN_NEGATED)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetOperation(s.aclimit2)
  	c:RegisterEffect(e2)
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_FIELD)
  	e3:SetCode(EFFECT_CANNOT_ACTIVATE)
  	e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e3:SetRange(LOCATION_MZONE)
  	e3:SetTargetRange(0, 1)
  	e3:SetCondition(s.econ)
  	e3:SetValue(s.elimit)
  	c:RegisterEffect(e3)
  end
  function s.aclimit1(e, tp, eg, ep, ev, re, r, rp)
  	if ep == tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) then
  		return
  	end
  	e:GetHandler():RegisterFlagEffect(id, RESET_EVENT + 0x3ff0000 + RESET_PHASE + PHASE_END, 0, 1)
  end
  function s.aclimit2(e, tp, eg, ep, ev, re, r, rp)
  	if ep == tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) then
  		return
  	end
  	e:GetHandler():ResetFlagEffect(id)
  end
  function s.econ(e)
  	return e:GetHandler():GetFlagEffect(id) ~= 0
  end
  function s.elimit(e, te, tp)
  	return te:IsHasType(EFFECT_TYPE_ACTIVATE)
  end
  
  
source_text: Naturia
  Your opponent can only activate 1 Spell/Trap Card each turn.
target_text: -- Naturia
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--activate limit
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
  	e1:SetCode(EVENT_CHAINING)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetOperation(s.aclimit1)
  	c:RegisterEffect(e1)
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_CONTINUOUS + EFFECT_TYPE_FIELD)
  	e2:SetCode(EVENT_CHAIN_NEGATED)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetOperation(s.aclimit2)
  	c:RegisterEffect(e2)
  	local e3 = Effect.CreateEffect(c)
  	e3:SetType(EFFECT_TYPE_FIELD)
  	e3:SetCode(EFFECT_CANNOT_ACTIVATE)
  	e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
  	e3:SetRange(LOCATION_MZONE)
  	e3:SetTargetRange(0, 1)
  	e3:SetCondition(s.econ)
  	e3:SetValue(s.elimit)
  	c:RegisterEffect(e3)
  end
  function s.aclimit1(e, tp, eg, ep, ev, re, r, rp)
  	if ep == tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) then
  		return
  	end
  	e:GetHandler():RegisterFlagEffect(id, RESET_EVENT + 0x3ff0000 + RESET_PHASE + PHASE_END, 0, 1)
  end
  function s.aclimit2(e, tp, eg, ep, ev, re, r, rp)
  	if ep == tp or not re:IsHasType(EFFECT_TYPE_ACTIVATE) then
  		return
  	end
  	e:GetHandler():ResetFlagEffect(id)
  end
  function s.econ(e)
  	return e:GetHandler():GetFlagEffect(id) ~= 0
  end
  function s.elimit(e, te, tp)
  	return te:IsHasType(EFFECT_TYPE_ACTIVATE)
  end
  
  