Commit 2e81ae0f authored by mercury233's avatar mercury233 Committed by GitHub

fix クロス・ブリード

parent cd56eaca
......@@ -20,10 +20,10 @@ function c20862918.costfilter1(c,tp)
return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and Duel.IsExistingMatchingCard(c20862918.costfilter2,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,c:GetOriginalRace(),c:GetOriginalAttribute(),c:GetCode(),tp)
end
function c20862918.costfilter2(c,rece,att,code,tp)
function c20862918.costfilter2(c,race,att,code,tp)
return (c:IsLocation(LOCATION_HAND) or c:IsFaceup()) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and c:GetOriginalRace()==race and c:GetOriginalAttribute()==att and not c:IsCode(code)
and Duel.IsExistingMatchingCard(c20862918.thfilter,tp,LOCATION_DECK,0,1,nil,rece,att,code,c:GetCode())
and Duel.IsExistingMatchingCard(c20862918.thfilter,tp,LOCATION_DECK,0,1,nil,race,att,code,c:GetCode())
end
function c20862918.thfilter(c,race,att,code1,code2)
return c:GetOriginalRace()==race and c:GetOriginalAttribute()==att and not c:IsCode(code1,code2)
......@@ -38,12 +38,12 @@ function c20862918.target(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g1=Duel.SelectMatchingCard(tp,c20862918.costfilter1,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil,tp)
local rece=g1:GetFirst():GetOriginalRace()
local race=g1:GetFirst():GetOriginalRace()
local att=g1:GetFirst():GetOriginalAttribute()
local code=g1:GetFirst():GetCode()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g2=Duel.SelectMatchingCard(tp,c20862918.costfilter2,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,g1:GetFirst(),rece,att,code,tp)
e:SetLabel(rece,att,code,g2:GetFirst():GetCode())
local g2=Duel.SelectMatchingCard(tp,c20862918.costfilter2,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,g1:GetFirst(),race,att,code,tp)
e:SetLabel(race,att,code,g2:GetFirst():GetCode())
g1:Merge(g2)
Duel.Remove(g1,POS_FACEUP,REASON_COST)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment