name: Orca
card_text: By tributing 1 "Torpedo Fish" on your side of the field, destroy 1 monster on the field. By Tributing 1 "Cannonball Spear Shellfish" on your side of the field, destroy 1 Spell or Trap Card on the field.
external_ids: local CARD_ID_0 = 90337190 --Torpedo Fish
  local CARD_ID_1 = 95614612 --Cannonball Spear Shellfish
  
lua: local CARD_ID_0 = 90337190 --Torpedo Fish
  local CARD_ID_1 = 95614612 --Cannonball Spear Shellfish
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--destroy
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.rfilter(c)
  	return c:IsCode(CARD_ID_0, CARD_ID_1)
  end
  function s.dfilter(c)
  	return c:IsType(TYPE_SPELL + TYPE_TRAP)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		if e:GetLabel() == CARD_ID_0 then
  			return chkc:IsLocation(LOCATION_MZONE)
  		else
  			return chkc:IsOnField() and s.dfilter(chkc)
  		end
  	end
  	local b1 = Duel.CheckReleaseGroup(tp, Card.IsCode, 1, nil, CARD_ID_0) and Duel.IsExistingTarget(aux.TRUE, tp, LOCATION_MZONE, LOCATION_MZONE, 1, nil)
  	local b2 = Duel.CheckReleaseGroup(tp, Card.IsCode, 1, nil, CARD_ID_1) and Duel.IsExistingTarget(s.dfilter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, nil)
  	if chk == 0 then
  		return b1 or b2
  	end
  	local code = 0
  	if b1 and b2 then
  		local rg = Duel.SelectReleaseGroup(tp, s.rfilter, 1, 1, nil)
  		code = rg:GetFirst():GetCode()
  		Duel.Release(rg, REASON_COST)
  	elseif b1 then
  		local rg = Duel.SelectReleaseGroup(tp, Card.IsCode, 1, 1, nil, CARD_ID_0)
  		code = 90337190
  		Duel.Release(rg, REASON_COST)
  	else
  		local rg = Duel.SelectReleaseGroup(tp, Card.IsCode, 1, 1, nil, CARD_ID_1)
  		code = 95614612
  		Duel.Release(rg, REASON_COST)
  	end
  	e:SetLabel(code)
  	if code == CARD_ID_0 then
  		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  		local g = Duel.SelectTarget(tp, aux.TRUE, tp, LOCATION_MZONE, LOCATION_MZONE, 1, 1, nil)
  		Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
  	else
  		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  		local g = Duel.SelectTarget(tp, s.dfilter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, 1, nil)
  		Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
  	end
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if tc and tc:IsRelateToEffect(e) then
  		Duel.Destroy(tc, REASON_EFFECT)
  	end
  end
  
  
source_text: Orca
  By tributing 1 "Torpedo Fish" on your side of the field, destroy 1 monster on the field. By Tributing 1 "Cannonball Spear Shellfish" on your side of the field, destroy 1 Spell or Trap Card on the field.
target_text: -- Orca
  local CARD_ID_0 = 90337190 --Torpedo Fish
  local CARD_ID_1 = 95614612 --Cannonball Spear Shellfish
  local s, id, o = GetID()
  function s.initial_effect(c)
  	--destroy
  	local e1 = Effect.CreateEffect(c)
  	e1:SetDescription(aux.Stringid(id, 0))
  	e1:SetCategory(CATEGORY_DESTROY)
  	e1:SetType(EFFECT_TYPE_IGNITION)
  	e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
  	e1:SetRange(LOCATION_MZONE)
  	e1:SetTarget(s.target)
  	e1:SetOperation(s.operation)
  	c:RegisterEffect(e1)
  end
  function s.rfilter(c)
  	return c:IsCode(CARD_ID_0, CARD_ID_1)
  end
  function s.dfilter(c)
  	return c:IsType(TYPE_SPELL + TYPE_TRAP)
  end
  function s.target(e, tp, eg, ep, ev, re, r, rp, chk, chkc)
  	if chkc then
  		if e:GetLabel() == CARD_ID_0 then
  			return chkc:IsLocation(LOCATION_MZONE)
  		else
  			return chkc:IsOnField() and s.dfilter(chkc)
  		end
  	end
  	local b1 = Duel.CheckReleaseGroup(tp, Card.IsCode, 1, nil, CARD_ID_0) and Duel.IsExistingTarget(aux.TRUE, tp, LOCATION_MZONE, LOCATION_MZONE, 1, nil)
  	local b2 = Duel.CheckReleaseGroup(tp, Card.IsCode, 1, nil, CARD_ID_1) and Duel.IsExistingTarget(s.dfilter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, nil)
  	if chk == 0 then
  		return b1 or b2
  	end
  	local code = 0
  	if b1 and b2 then
  		local rg = Duel.SelectReleaseGroup(tp, s.rfilter, 1, 1, nil)
  		code = rg:GetFirst():GetCode()
  		Duel.Release(rg, REASON_COST)
  	elseif b1 then
  		local rg = Duel.SelectReleaseGroup(tp, Card.IsCode, 1, 1, nil, CARD_ID_0)
  		code = 90337190
  		Duel.Release(rg, REASON_COST)
  	else
  		local rg = Duel.SelectReleaseGroup(tp, Card.IsCode, 1, 1, nil, CARD_ID_1)
  		code = 95614612
  		Duel.Release(rg, REASON_COST)
  	end
  	e:SetLabel(code)
  	if code == CARD_ID_0 then
  		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  		local g = Duel.SelectTarget(tp, aux.TRUE, tp, LOCATION_MZONE, LOCATION_MZONE, 1, 1, nil)
  		Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
  	else
  		Duel.Hint(HINT_SELECTMSG, tp, HINTMSG_DESTROY)
  		local g = Duel.SelectTarget(tp, s.dfilter, tp, LOCATION_ONFIELD, LOCATION_ONFIELD, 1, 1, nil)
  		Duel.SetOperationInfo(0, CATEGORY_DESTROY, g, 1, 0, 0)
  	end
  end
  function s.operation(e, tp, eg, ep, ev, re, r, rp)
  	local tc = Duel.GetFirstTarget()
  	if tc and tc:IsRelateToEffect(e) then
  		Duel.Destroy(tc, REASON_EFFECT)
  	end
  end
  
  