name: Child's
card_text: Each time your opponent Summons a monster(s), gain 300 LP. Your monsters cannot be destroyed by battle while you have 10,000 or more LP.
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)
  	c:RegisterEffect(e1)
  	--recover
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e2:SetCode(EVENT_SUMMON_SUCCESS)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetCondition(s.reccon)
  	e2:SetOperation(s.recop)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EVENT_SPSUMMON_SUCCESS)
  	c:RegisterEffect(e3)
  	local e4 = e2:Clone()
  	e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
  	c:RegisterEffect(e4)
  	--indes
  	local e5 = Effect.CreateEffect(c)
  	e5:SetType(EFFECT_TYPE_FIELD)
  	e5:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
  	e5:SetRange(LOCATION_SZONE)
  	e5:SetTargetRange(LOCATION_MZONE, 0)
  	e5:SetCondition(s.indcon)
  	e5:SetValue(1)
  	c:RegisterEffect(e5)
  end
  function s.cfilter(c, tp)
  	return c:IsSummonPlayer(tp)
  end
  function s.reccon(e, tp, eg, ep, ev, re, r, rp)
  	return eg:IsExists(s.cfilter, 1, nil, 1 - tp)
  end
  function s.recop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Hint(HINT_CARD, 0, id)
  	Duel.Recover(tp, 300, REASON_EFFECT)
  end
  function s.indcon(e)
  	return Duel.GetLP(e:GetHandlerPlayer()) >= 10000
  end
  
  
source_text: Child's
  Each time your opponent Summons a monster(s), gain 300 LP. Your monsters cannot be destroyed by battle while you have 10,000 or more LP.
target_text: -- Child's
  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)
  	c:RegisterEffect(e1)
  	--recover
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD + EFFECT_TYPE_CONTINUOUS)
  	e2:SetCode(EVENT_SUMMON_SUCCESS)
  	e2:SetRange(LOCATION_SZONE)
  	e2:SetCondition(s.reccon)
  	e2:SetOperation(s.recop)
  	c:RegisterEffect(e2)
  	local e3 = e2:Clone()
  	e3:SetCode(EVENT_SPSUMMON_SUCCESS)
  	c:RegisterEffect(e3)
  	local e4 = e2:Clone()
  	e4:SetCode(EVENT_FLIP_SUMMON_SUCCESS)
  	c:RegisterEffect(e4)
  	--indes
  	local e5 = Effect.CreateEffect(c)
  	e5:SetType(EFFECT_TYPE_FIELD)
  	e5:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
  	e5:SetRange(LOCATION_SZONE)
  	e5:SetTargetRange(LOCATION_MZONE, 0)
  	e5:SetCondition(s.indcon)
  	e5:SetValue(1)
  	c:RegisterEffect(e5)
  end
  function s.cfilter(c, tp)
  	return c:IsSummonPlayer(tp)
  end
  function s.reccon(e, tp, eg, ep, ev, re, r, rp)
  	return eg:IsExists(s.cfilter, 1, nil, 1 - tp)
  end
  function s.recop(e, tp, eg, ep, ev, re, r, rp)
  	Duel.Hint(HINT_CARD, 0, id)
  	Duel.Recover(tp, 300, REASON_EFFECT)
  end
  function s.indcon(e)
  	return Duel.GetLP(e:GetHandlerPlayer()) >= 10000
  end
  
  