name: Zefrasaber,
card_text: Pendulum Scale = 1
  [ Pendulum Effect ]
  You cannot Pendulum Summon monsters, except "Nekroz" and "Zefra" monsters. This effect cannot be negated.
  ----------------------------------------
  [ Monster Effect ]
  You can Tribute this card from your hand or face-up from your side of the field; Tribute monsters from your hand or field, then Ritual Summon 1 "Nekroz" Ritual Monster from your hand whose Level exactly equals the total Levels of those monsters. You can only use this effect of "Zefrasaber, Swordmaster of the Nekroz" once per turn.
external_ids: local SETCARD_ID_0 = 0xb4 --Nekroz
  
lua: local SETCARD_ID_0 = 0xb4 --Nekroz
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--pendulum summon
  	aux.EnablePendulumAttribute(c)
  	--splimit
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_PZONE)
  	e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
  	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET + EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_CAN_FORBIDDEN)
  	e2:SetTargetRange(1, 0)
  	e2:SetTarget(s.splimit)
  	c:RegisterEffect(e2)
  	--spsummon
  	local e3 = aux.AddRitualProcEqual2(c, s.filter, nil, nil, s.mfilter, true)
  	e3:SetDescription(aux.Stringid(id, 1))
  	e3:SetType(EFFECT_TYPE_IGNITION)
  	e3:SetCode(0)
  	e3:SetCountLimit(1, id)
  	e3:SetRange(LOCATION_MZONE + LOCATION_HAND)
  	e3:SetCost(s.cost)
  	c:RegisterEffect(e3)
  end
  function s.splimit(e, c, sump, sumtype, sumpos, targetp)
  	if c:IsSetCard(SETCARD_ID_0, 0xc4) then
  		return false
  	end
  	return bit.band(sumtype, SUMMON_TYPE_PENDULUM) == SUMMON_TYPE_PENDULUM
  end
  function s.filter(c)
  	return c:IsSetCard(SETCARD_ID_0)
  end
  function s.mfilter(c, e, tp, chk)
  	return not chk or c ~= e:GetHandler()
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return e:GetHandler():IsReleasable()
  	end
  	Duel.Release(e:GetHandler(), REASON_COST)
  end
  
  
source_text: Zefrasaber,
  Pendulum Scale = 1
  [ Pendulum Effect ]
  You cannot Pendulum Summon monsters, except "Nekroz" and "Zefra" monsters. This effect cannot be negated.
  ----------------------------------------
  [ Monster Effect ]
  You can Tribute this card from your hand or face-up from your side of the field; Tribute monsters from your hand or field, then Ritual Summon 1 "Nekroz" Ritual Monster from your hand whose Level exactly equals the total Levels of those monsters. You can only use this effect of "Zefrasaber, Swordmaster of the Nekroz" once per turn.
target_text: -- Zefrasaber,
  local SETCARD_ID_0 = 0xb4 --Nekroz
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--pendulum summon
  	aux.EnablePendulumAttribute(c)
  	--splimit
  	local e2 = Effect.CreateEffect(c)
  	e2:SetType(EFFECT_TYPE_FIELD)
  	e2:SetRange(LOCATION_PZONE)
  	e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
  	e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET + EFFECT_FLAG_CANNOT_DISABLE + EFFECT_FLAG_CAN_FORBIDDEN)
  	e2:SetTargetRange(1, 0)
  	e2:SetTarget(s.splimit)
  	c:RegisterEffect(e2)
  	--spsummon
  	local e3 = aux.AddRitualProcEqual2(c, s.filter, nil, nil, s.mfilter, true)
  	e3:SetDescription(aux.Stringid(id, 1))
  	e3:SetType(EFFECT_TYPE_IGNITION)
  	e3:SetCode(0)
  	e3:SetCountLimit(1, id)
  	e3:SetRange(LOCATION_MZONE + LOCATION_HAND)
  	e3:SetCost(s.cost)
  	c:RegisterEffect(e3)
  end
  function s.splimit(e, c, sump, sumtype, sumpos, targetp)
  	if c:IsSetCard(SETCARD_ID_0, 0xc4) then
  		return false
  	end
  	return bit.band(sumtype, SUMMON_TYPE_PENDULUM) == SUMMON_TYPE_PENDULUM
  end
  function s.filter(c)
  	return c:IsSetCard(SETCARD_ID_0)
  end
  function s.mfilter(c, e, tp, chk)
  	return not chk or c ~= e:GetHandler()
  end
  function s.cost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return e:GetHandler():IsReleasable()
  	end
  	Duel.Release(e:GetHandler(), REASON_COST)
  end
  
  