name: S-Force
card_text: Your opponent cannot target any of their monsters in the same column as one of your "S-Force" monsters with card effects. When a monster your opponent controls activates its effect (Quick Effect): You can banish 1 "S-Force" card from your hand; destroy that monster. You can only use this effect of "S-Force Orrafist" once per turn.
external_ids: local CARD_ID_0 = 55049722 --S-Force Chase
  local SETCARD_ID_0 = 0x156 --S-Force
  
lua: local CARD_ID_0 = 55049722 --S-Force Chase
  local SETCARD_ID_0 = 0x156 --S-Force
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--can not be effect target
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
  	e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(0, LOCATION_MZONE)
  	e1:SetTarget(s.ettg)
  	e1:SetValue(aux.tgoval)
  	c:RegisterEffect(e1)
  	--destroy
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_DESTROY)
  	e2:SetType(EFFECT_TYPE_QUICK_O)
  	e2:SetCode(EVENT_CHAINING)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetCountLimit(1, id)
  	e2:SetCondition(s.descon)
  	e2:SetCost(s.descost)
  	e2:SetTarget(s.destg)
  	e2:SetOperation(s.desop)
  	c:RegisterEffect(e2)
  end
  function s.etfilter(c, tp)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp)
  end
  function s.ettg(e, c)
  	local cg = c:GetColumnGroup()
  	return cg:IsExists(s.etfilter, 1, nil, e:GetHandlerPlayer())
  end
  function s.descon(e, tp, eg, ep, ev, re, r, rp)
  	return re:GetHandler():IsRelateToEffect(re) and re:GetHandler():IsLocation(LOCATION_MZONE) and re:IsActiveType(TYPE_MONSTER) and rp == 1 - tp
  end
  function s.costfilter(c, e, tp)
  	if c:IsLocation(LOCATION_HAND) then
  		return c:IsSetCard(SETCARD_ID_0) and c:IsAbleToRemoveAsCost()
  	else
  		return e:GetHandler():IsSetCard(SETCARD_ID_0) and c:IsHasEffect(CARD_ID_0, tp) and c:IsAbleToRemoveAsCost()
  	end
  end
  function s.descost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(s.costfilter, tp, LOCATION_HAND + LOCATION_GRAVE, 0, 1, nil, e, tp)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_REMOVE)
  	local tg = Duel.SelectMatchingCard(tp, s.costfilter, tp, LOCATION_HAND + LOCATION_GRAVE, 0, 1, 1, nil, e, tp)
  	local te = tg:GetFirst():IsHasEffect(CARD_ID_0, tp)
  	if te then
  		te:UseCountLimit(tp)
  		Duel.Remove(tg, POS_FACEUP, REASON_REPLACE)
  	else
  		Duel.Remove(tg, POS_FACEUP, REASON_COST)
  	end
  end
  function s.destg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, eg, 1, 0, 0)
  end
  function s.desop(e, tp, eg, ep, ev, re, r, rp)
  	if re:GetHandler():IsRelateToEffect(re) then
  		Duel.Destroy(eg, REASON_EFFECT)
  	end
  end
  
  
source_text: S-Force
  Your opponent cannot target any of their monsters in the same column as one of your "S-Force" monsters with card effects. When a monster your opponent controls activates its effect (Quick Effect): You can banish 1 "S-Force" card from your hand; destroy that monster. You can only use this effect of "S-Force Orrafist" once per turn.
target_text: -- S-Force
  local CARD_ID_0 = 55049722 --S-Force Chase
  local SETCARD_ID_0 = 0x156 --S-Force
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--can not be effect target
  	local e1 = Effect.CreateEffect(c)
  	e1:SetType(EFFECT_TYPE_FIELD)
  	e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
  	e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTargetRange(0, LOCATION_MZONE)
  	e1:SetTarget(s.ettg)
  	e1:SetValue(aux.tgoval)
  	c:RegisterEffect(e1)
  	--destroy
  	local e2 = Effect.CreateEffect(c)
  	e2:SetDescription(aux.Stringid(id, 0))
  	e2:SetCategory(CATEGORY_DESTROY)
  	e2:SetType(EFFECT_TYPE_QUICK_O)
  	e2:SetCode(EVENT_CHAINING)
  	e2:SetRange(LOCATION_MZONE)
  	e2:SetCountLimit(1, id)
  	e2:SetCondition(s.descon)
  	e2:SetCost(s.descost)
  	e2:SetTarget(s.destg)
  	e2:SetOperation(s.desop)
  	c:RegisterEffect(e2)
  end
  function s.etfilter(c, tp)
  	return c:IsFaceup() and c:IsSetCard(SETCARD_ID_0) and c:IsLocation(LOCATION_MZONE) and c:IsControler(tp)
  end
  function s.ettg(e, c)
  	local cg = c:GetColumnGroup()
  	return cg:IsExists(s.etfilter, 1, nil, e:GetHandlerPlayer())
  end
  function s.descon(e, tp, eg, ep, ev, re, r, rp)
  	return re:GetHandler():IsRelateToEffect(re) and re:GetHandler():IsLocation(LOCATION_MZONE) and re:IsActiveType(TYPE_MONSTER) and rp == 1 - tp
  end
  function s.costfilter(c, e, tp)
  	if c:IsLocation(LOCATION_HAND) then
  		return c:IsSetCard(SETCARD_ID_0) and c:IsAbleToRemoveAsCost()
  	else
  		return e:GetHandler():IsSetCard(SETCARD_ID_0) and c:IsHasEffect(CARD_ID_0, tp) and c:IsAbleToRemoveAsCost()
  	end
  end
  function s.descost(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return Duel.IsExistingMatchingCard(s.costfilter, tp, LOCATION_HAND + LOCATION_GRAVE, 0, 1, nil, e, tp)
  	end
  	Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_REMOVE)
  	local tg = Duel.SelectMatchingCard(tp, s.costfilter, tp, LOCATION_HAND + LOCATION_GRAVE, 0, 1, 1, nil, e, tp)
  	local te = tg:GetFirst():IsHasEffect(CARD_ID_0, tp)
  	if te then
  		te:UseCountLimit(tp)
  		Duel.Remove(tg, POS_FACEUP, REASON_REPLACE)
  	else
  		Duel.Remove(tg, POS_FACEUP, REASON_COST)
  	end
  end
  function s.destg(e, tp, eg, ep, ev, re, r, rp, chk)
  	if chk == 0 then
  		return true
  	end
  	Duel.SetOperationInfo(0, CATEGORY_DESTROY, eg, 1, 0, 0)
  end
  function s.desop(e, tp, eg, ep, ev, re, r, rp)
  	if re:GetHandler():IsRelateToEffect(re) then
  		Duel.Destroy(eg, REASON_EFFECT)
  	end
  end
  
  