name: ゾーン・イーター
card_text: 「ゾーン・イーター」の攻撃を受けたモンスターは、5ターン後に破壊される。
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_BATTLED)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local bc = c:GetBattleTarget()
  	return c == Duel.GetAttacker() and bc and bc:IsRelateToBattle() and bc:IsFaceup()
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local bc = c:GetBattleTarget()
  	if bc:IsRelateToBattle() then
  		local e1 = Effect.CreateEffect(c)
  		e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  		e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  		e1:SetCode(EVENT_PHASE + PHASE_END)
  		e1:SetCountLimit(1)
  		e1:SetRange(LOCATION_MZONE)
  		e1:SetReset(RESET_EVENT + RESETS_STANDARD)
  		e1:SetOperation(s.desop)
  		e1:SetLabel(0)
  		e1:SetOwnerPlayer(tp)
  		bc:RegisterEffect(e1)
  	end
  end
  function s.desop(e, tp, eg, ep, ev, re, r, rp)
  	local ct = e:GetLabel()
  	ct = ct + 1
  	e:SetLabel(ct)
  	e:GetOwner():SetTurnCounter(ct)
  	if ct == 5 then
  		Duel.Destroy(e:GetHandler(), REASON_EFFECT)
  	end
  end
  
  
source_text: ゾーン・イーター
  「ゾーン・イーター」の攻撃を受けたモンスターは、5ターン後に破壊される。
target_text: -- ゾーン・イーター
  local s, id, o = GetID()
  function s.initial_effect(c)
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_SINGLE + EFFECT_TYPE_TRIGGER_F)
  	e1:SetCode(EVENT_BATTLED)
  	e1:SetCondition(s.condition)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.condition(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local bc = c:GetBattleTarget()
  	return c == Duel.GetAttacker() and bc and bc:IsRelateToBattle() and bc:IsFaceup()
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local c = e:GetHandler()
  	local bc = c:GetBattleTarget()
  	if bc:IsRelateToBattle() then
  		local e1 = Effect.CreateEffect(c)
  		e1:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  		e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
  		e1:SetCode(EVENT_PHASE + PHASE_END)
  		e1:SetCountLimit(1)
  		e1:SetRange(LOCATION_MZONE)
  		e1:SetReset(RESET_EVENT + RESETS_STANDARD)
  		e1:SetOperation(s.desop)
  		e1:SetLabel(0)
  		e1:SetOwnerPlayer(tp)
  		bc:RegisterEffect(e1)
  	end
  end
  function s.desop(e, tp, eg, ep, ev, re, r, rp)
  	local ct = e:GetLabel()
  	ct = ct + 1
  	e:SetLabel(ct)
  	e:GetOwner():SetTurnCounter(ct)
  	if ct == 5 then
  		Duel.Destroy(e:GetHandler(), REASON_EFFECT)
  	end
  end
  
  