暗黒大要塞鯱
自分フィールド上の「魚雷魚」1体を生け贄に捧げる事で、フィールド上のモンスター1体を破壊する。
自分フィールド上の「砲弾ヤリ貝」1体を生け贄に捧げる事で、フィールド上の魔法・罠カード1枚を破壊する。
local CARD_ID_0 = 90337190 --魚雷魚
local CARD_ID_1 = 95614612 --砲弾ヤリ貝

local CARD_ID_0 = 90337190 --魚雷魚
local CARD_ID_1 = 95614612 --砲弾ヤリ貝
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


暗黒大要塞鯱
自分フィールド上の「魚雷魚」1体を生け贄に捧げる事で、フィールド上のモンスター1体を破壊する。
自分フィールド上の「砲弾ヤリ貝」1体を生け贄に捧げる事で、フィールド上の魔法・罠カード1枚を破壊する。
-- 暗黒大要塞鯱
local CARD_ID_0 = 90337190 --魚雷魚
local CARD_ID_1 = 95614612 --砲弾ヤリ貝
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

