Commit 1c7db241 authored by mercury233's avatar mercury233

fix

parent 92d06db3
......@@ -19,7 +19,7 @@ end
function c33846209.desfilter(c,tc,ec)
return c:GetEquipTarget()~=tc and c~=ec
end
function c33846209.costfilter(c,ec)
function c33846209.costfilter(c,ec,tp)
if c:IsFacedown() or not c:IsLevel(4) or not c:IsType(TYPE_DUAL) then return false end
return Duel.IsExistingTarget(c33846209.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,c,ec)
end
......@@ -30,14 +30,14 @@ function c33846209.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if not Duel.IsPlayerCanDraw(tp,1) then return false end
if e:GetLabel()==1 then
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c33846209.costfilter,1,c,c)
return Duel.CheckReleaseGroup(tp,c33846209.costfilter,1,c,c,tp)
else
return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
end
if e:GetLabel()==1 then
e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c33846209.costfilter,1,1,c,c)
local sg=Duel.SelectReleaseGroup(tp,c33846209.costfilter,1,1,c,c,tp)
Duel.Release(sg,REASON_COST)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -23,7 +23,7 @@ end
function c4333086.desfilter(c,tc,ec)
return c:GetEquipTarget()~=tc and c~=ec
end
function c4333086.costfilter(c,ec)
function c4333086.costfilter(c,ec,tp)
if not c:IsRace(RACE_ZOMBIE) then return false end
return Duel.IsExistingTarget(c4333086.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c,c,ec)
end
......@@ -33,7 +33,7 @@ function c4333086.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then
if e:GetLabel()==1 then
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c4333086.costfilter,1,c,c)
return Duel.CheckReleaseGroup(tp,c4333086.costfilter,1,c,c,tp)
and Duel.IsExistingMatchingCard(c4333086.filter,tp,LOCATION_DECK,0,1,nil)
else
return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c)
......@@ -42,7 +42,7 @@ function c4333086.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
if e:GetLabel()==1 then
e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c4333086.costfilter,1,1,c,c)
local sg=Duel.SelectReleaseGroup(tp,c4333086.costfilter,1,1,c,c,tp)
Duel.Release(sg,REASON_COST)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -19,7 +19,7 @@ end
function c53567095.desfilter(c,tc,ec)
return c:GetEquipTarget()~=tc and c~=ec
end
function c53567095.costfilter(c,ec)
function c53567095.costfilter(c,ec,tp)
if not c:IsRace(RACE_WINDBEAST) then return false end
return Duel.IsExistingTarget(c53567095.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c,c,ec)
end
......@@ -29,14 +29,14 @@ function c53567095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then
if e:GetLabel()==1 then
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c53567095.costfilter,1,c,c)
return Duel.CheckReleaseGroup(tp,c53567095.costfilter,1,c,c,tp)
else
return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,2,c)
end
end
if e:GetLabel()==1 then
e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c53567095.costfilter,1,1,c,c)
local sg=Duel.SelectReleaseGroup(tp,c53567095.costfilter,1,1,c,c,tp)
Duel.Release(sg,REASON_COST)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -25,7 +25,7 @@ function c5795980.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabel(1)
return true
end
function c5795980.cfilter(c,ec)
function c5795980.cfilter(c,ec,tp)
if c:IsFacedown() or not c:IsLevelAbove(5) or not c:IsSummonType(SUMMON_TYPE_NORMAL) then return false end
return Duel.IsExistingTarget(c5795980.tgfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,c,ec)
end
......@@ -39,14 +39,14 @@ function c5795980.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if not Duel.IsPlayerCanDraw(tp,1) then return false end
if e:GetLabel()==1 then
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c5795980.cfilter,1,c,c)
return Duel.CheckReleaseGroup(tp,c5795980.cfilter,1,c,c,tp)
else
return Duel.IsExistingTarget(aux.disfilter1,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
end
if e:GetLabel()==1 then
e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c5795980.cfilter,1,1,c,c)
local sg=Duel.SelectReleaseGroup(tp,c5795980.cfilter,1,1,c,c,tp)
Duel.Release(sg,REASON_COST)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
......@@ -19,7 +19,7 @@ end
function c58873391.desfilter(c,tc,ec)
return c:GetEquipTarget()~=tc and c~=ec
end
function c58873391.costfilter(c,ec)
function c58873391.costfilter(c,ec,tp)
if not c:IsRace(RACE_FISH) then return false end
return Duel.IsExistingTarget(c58873391.desfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c,c,ec)
end
......@@ -30,14 +30,14 @@ function c58873391.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if not Duel.IsPlayerCanDraw(tp,1) then return false end
if e:GetLabel()==1 then
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c58873391.costfilter,1,c,c)
return Duel.CheckReleaseGroup(tp,c58873391.costfilter,1,c,c,tp)
else
return Duel.IsExistingTarget(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
end
end
if e:GetLabel()==1 then
e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c58873391.costfilter,1,1,c,c)
local sg=Duel.SelectReleaseGroup(tp,c58873391.costfilter,1,1,c,c,tp)
Duel.Release(sg,REASON_COST)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
......@@ -19,7 +19,7 @@ end
function c80584548.desfilter(c,tc,ec)
return c:GetEquipTarget()~=tc and c~=ec
end
function c80584548.costfilter(c,ec)
function c80584548.costfilter(c,ec,tp)
return Duel.IsExistingTarget(c80584548.desfilter,tp,0,LOCATION_ONFIELD,1,c,c,ec)
end
function c80584548.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......@@ -28,14 +28,14 @@ function c80584548.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then
if e:GetLabel()==1 then
e:SetLabel(0)
return Duel.CheckReleaseGroup(tp,c80584548.costfilter,1,c,c)
return Duel.CheckReleaseGroup(tp,c80584548.costfilter,1,c,c,tp)
else
return Duel.IsExistingTarget(nil,tp,0,LOCATION_ONFIELD,1,c)
end
end
if e:GetLabel()==1 then
e:SetLabel(0)
local sg=Duel.SelectReleaseGroup(tp,c80584548.costfilter,1,1,c,c)
local sg=Duel.SelectReleaseGroup(tp,c80584548.costfilter,1,1,c,c,tp)
Duel.Release(sg,REASON_COST)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......
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