Commit fdcaec7b authored by Nemo Ma's avatar Nemo Ma

fix

parent ba6051b8
...@@ -60,7 +60,7 @@ function c40009304.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -60,7 +60,7 @@ function c40009304.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c40009304.spfilter(c,sync) function c40009304.spfilter(c,tp,sync)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
...@@ -71,7 +71,7 @@ function c40009304.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -71,7 +71,7 @@ function c40009304.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and ct>0
and mg:FilterCount(c40009304.spfilter,nil,c)==ct end and mg:FilterCount(c40009304.spfilter,nil,tp,c)==ct end
Duel.SetTargetCard(mg) Duel.SetTargetCard(mg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE)
......
...@@ -49,21 +49,15 @@ end ...@@ -49,21 +49,15 @@ end
function c40009308.setop2(e,tp,eg,ep,ev,re,r,rp) function c40009308.setop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c40009308.setfilter3,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,tp) local g=Duel.SelectMatchingCard(tp,c40009308.setfilter3,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,tp)
local tc=g:GetFirst() if g:GetCount()>0 then
if tc and Duel.SSet(tp,tc)~=0 then Duel.SSet(tp,g:GetFirst())
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e1:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
end end
end end
function c40009308.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c40009308.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c40009308.spfilter(c,sync) function c40009308.spfilter(c,tp,sync)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
...@@ -74,7 +68,7 @@ function c40009308.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -74,7 +68,7 @@ function c40009308.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and ct>0
and mg:FilterCount(c40009308.spfilter,nil,c)==ct end and mg:FilterCount(c40009308.spfilter,nil,tp,c)==ct end
Duel.SetTargetCard(mg) Duel.SetTargetCard(mg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE)
......
...@@ -61,7 +61,7 @@ function c40009310.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,7 +61,7 @@ function c40009310.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c40009310.spfilter(c,sync) function c40009310.spfilter(c,tp,sync)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
...@@ -72,7 +72,7 @@ function c40009310.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -72,7 +72,7 @@ function c40009310.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and ct>0
and mg:FilterCount(c40009310.spfilter,nil,c)==ct end and mg:FilterCount(c40009310.spfilter,nil,tp,c)==ct end
Duel.SetTargetCard(mg) Duel.SetTargetCard(mg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE)
......
...@@ -41,7 +41,7 @@ function c40009312.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -41,7 +41,7 @@ function c40009312.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c40009312.spfilter(c,sync) function c40009312.spfilter(c,tp,sync)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
...@@ -52,7 +52,7 @@ function c40009312.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -52,7 +52,7 @@ function c40009312.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and ct>0
and mg:FilterCount(c40009312.spfilter,nil,c)==ct end and mg:FilterCount(c40009312.spfilter,nil,tp,c)==ct end
Duel.SetTargetCard(mg) Duel.SetTargetCard(mg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE)
......
...@@ -50,7 +50,7 @@ function c40009313.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -50,7 +50,7 @@ function c40009313.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c40009313.spfilter(c,sync) function c40009313.spfilter(c,tp,sync)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
...@@ -61,7 +61,7 @@ function c40009313.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,7 +61,7 @@ function c40009313.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and ct>0
and mg:FilterCount(c40009313.spfilter,nil,c)==ct end and mg:FilterCount(c40009313.spfilter,nil,tp,c)==ct end
Duel.SetTargetCard(mg) Duel.SetTargetCard(mg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE)
......
...@@ -109,7 +109,7 @@ function c40009314.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -109,7 +109,7 @@ function c40009314.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end if chk==0 then return e:GetHandler():IsAbleToExtraAsCost() end
Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST) Duel.SendtoDeck(e:GetHandler(),nil,0,REASON_COST)
end end
function c40009314.spfilter(c,sync) function c40009314.spfilter(c,tp,sync)
return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync and bit.band(c:GetReason(),0x80008)==0x80008 and c:GetReasonCard()==sync
and c:IsAbleToHand() and c:IsAbleToHand()
...@@ -120,7 +120,7 @@ function c40009314.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -120,7 +120,7 @@ function c40009314.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ct=mg:GetCount() local ct=mg:GetCount()
if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO) if chk==0 then return c:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and ct>0
and mg:FilterCount(c40009314.spfilter,nil,c)==ct end and mg:FilterCount(c40009314.spfilter,nil,tp,c)==ct end
Duel.SetTargetCard(mg) Duel.SetTargetCard(mg)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,mg,ct,tp,LOCATION_GRAVE)
......
...@@ -18,7 +18,7 @@ function c82224002.initial_effect(c) ...@@ -18,7 +18,7 @@ function c82224002.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c82224002.handcon(e) function c82224002.handcon(e)
return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD)>5 return Duel.GetFieldGroupCount(e:GetHandlerPlayer(),LOCATION_ONFIELD,LOCATION_ONFIELD)>=5
end end
function c82224002.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c82224002.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
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