name: The
card_text: Flip all face-down Defense Position Monster Cards on the field face-up. Flip Effects are not activated at this time. Increase your Life Points by 400 points for each Effect Monster Card on the field.
lua: local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_POSITION + CATEGORY_RECOVER)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsType(TYPE_EFFECT)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(nil, tp, LOCATION_MZONE, LOCATION_MZONE, 1, nil)
  	end
  	local rec = Duel.GetMatchingGroupCount(s.filter, tp, LOCATION_MZONE, LOCATION_MZONE, nil) * 400
  	Duel.SetTargetPlayer(tp)
  	Duel.SetTargetParam(rec)
  	if rec > 0 then
  		Duel.SetOperationInfo(0, CATEGORY_RECOVER, nil, 0, tp, rec)
  	end
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetMatchingGroup(Card.IsFacedown, tp, LOCATION_MZONE, LOCATION_MZONE, nil)
  	Duel.ChangePosition(g, POS_FACEUP_ATTACK, POS_FACEUP_ATTACK, POS_FACEUP_DEFENSE, POS_FACEUP_DEFENSE, true)
  	local p = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER)
  	local rec = Duel.GetMatchingGroupCount(s.filter, tp, LOCATION_MZONE, LOCATION_MZONE, nil) * 400
  	Duel.Recover(p, rec, REASON_EFFECT)
  end
  
  
source_text: The
  Flip all face-down Defense Position Monster Cards on the field face-up. Flip Effects are not activated at this time. Increase your Life Points by 400 points for each Effect Monster Card on the field.
target_text: -- The
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--Activate
  	local e1 = Effect.CreateEffect(c)
  	e1:SetCategory(CATEGORY_POSITION + CATEGORY_RECOVER)
  	e1:SetType(EFFECT_TYPE_ACTIVATE)
  	e1:SetCode(EVENT_FREE_CHAIN)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.activate)
  	c:RegisterEffect(e1)
  end
  function s.filter(c)
  	return c:IsFaceup() and c:IsType(TYPE_EFFECT)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(nil, tp, LOCATION_MZONE, LOCATION_MZONE, 1, nil)
  	end
  	local rec = Duel.GetMatchingGroupCount(s.filter, tp, LOCATION_MZONE, LOCATION_MZONE, nil) * 400
  	Duel.SetTargetPlayer(tp)
  	Duel.SetTargetParam(rec)
  	if rec > 0 then
  		Duel.SetOperationInfo(0, CATEGORY_RECOVER, nil, 0, tp, rec)
  	end
  end
  function s.activate(e, tp, eg, ep, ev, re, r, rp)
  	local g = Duel.GetMatchingGroup(Card.IsFacedown, tp, LOCATION_MZONE, LOCATION_MZONE, nil)
  	Duel.ChangePosition(g, POS_FACEUP_ATTACK, POS_FACEUP_ATTACK, POS_FACEUP_DEFENSE, POS_FACEUP_DEFENSE, true)
  	local p = Duel.GetChainInfo(0, CHAININFO_TARGET_PLAYER)
  	local rec = Duel.GetMatchingGroupCount(s.filter, tp, LOCATION_MZONE, LOCATION_MZONE, nil) * 400
  	Duel.Recover(p, rec, REASON_EFFECT)
  end
  
  