Commit e3571e99 authored by Tachibana's avatar Tachibana

1145141919810

parent 8c1ad568
Pipeline #15047 passed with stages
in 33 minutes and 48 seconds
...@@ -56,7 +56,7 @@ end ...@@ -56,7 +56,7 @@ end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local op=e:GetLabel() local op=e:GetLabel()
local c=e:GetHandler() local c=e:GetHandler()
if e:GetHandler():IsLocation(LOCATION_HAND) then if e:GetHandler():IsLocation(LOCATION_MAND) then
if chk==0 then return Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_ONFIELD,0,1,nil,e,tp,c) end if chk==0 then return Duel.IsExistingTarget(cm.desfilter,tp,LOCATION_ONFIELD,0,1,nil,e,tp,c) end
else else
if chk==0 then return e:GetHandler():IsLocation(LOCATION_HAND) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) if chk==0 then return e:GetHandler():IsLocation(LOCATION_HAND) and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -129,7 +129,7 @@ function cm.valcheck(e,c) ...@@ -129,7 +129,7 @@ function cm.valcheck(e,c)
end end
end end
function cm.tncon(e,tp,eg,ep,ev,re,r,rp) function cm.tncon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and e:GetLabel()==1 return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) and e:GetLabel()==1
end end
function cm.tnop(e,tp,eg,ep,ev,re,r,rp) function cm.tnop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -162,7 +162,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -162,7 +162,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return not ct or ct<2 return not ct or ct<2
end end
function cm.efilter(e,te) function cm.efilter(e,te)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer() return re and e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end end
function cm.costfilter(c,tp) function cm.costfilter(c,tp)
return c:IsSetCard(0xfa4) and c:IsPosition(POS_FACEUP) and c:IsReleasable() return c:IsSetCard(0xfa4) and c:IsPosition(POS_FACEUP) and c:IsReleasable()
...@@ -192,21 +192,21 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -192,21 +192,21 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EFFECT_DISABLE) e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetValue(RESET_TURN_SET) e2:SetValue(RESET_TURN_SET)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
if tc:IsType(TYPE_TRAPMONSTER) then if tc:IsType(TYPE_TRAPMONSTER) then
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EFFECT_DISABLE_TRAPMONSTER) e3:SetCode(EFFECT_DISABLE_TRAPMONSTER)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e3:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e3) tc:RegisterEffect(e3)
end end
end end
......
...@@ -30,7 +30,7 @@ function cm.initial_effect(c) ...@@ -30,7 +30,7 @@ function cm.initial_effect(c)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_UPDATE_LEVEL) e3:SetCode(EFFECT_UPDATE_LEVEL)
e3:SetRange(LOCATION_ONFIELD) e3:SetRange(LOCATION_FZONE)
e3:SetTargetRange(LOCATION_HAND,0) e3:SetTargetRange(LOCATION_HAND,0)
e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xfa4)) e3:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0xfa4))
e3:SetValue(1) e3:SetValue(1)
...@@ -46,6 +46,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -46,6 +46,8 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_SZONE,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,cm.costfilter,tp,LOCATION_SZONE,0,1,1,e:GetHandler())
Duel.Release(g,REASON_EFFECT) Duel.Release(g,REASON_EFFECT)
e:SetLabel(1) e:SetLabel(1)
else
e:SetLabel(0)
end end
end end
function cm.filter(c) function cm.filter(c)
......
...@@ -38,7 +38,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -38,7 +38,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp) local mg1=Duel.GetFusionMaterial(tp)
if true then if true then
mg1:Merge(Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_SZONE,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_SZONE,0,e:GetHandler(),e))
end end
local res=Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf) local res=Duel.IsExistingMatchingCard(cm.filter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,mg1,nil,chkf)
if not res then if not res then
...@@ -70,7 +70,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local chkf=tp local chkf=tp
local mg1=Duel.GetFusionMaterial(tp):Filter(cm.filter1,nil,e) local mg1=Duel.GetFusionMaterial(tp):Filter(cm.filter1,nil,e)
if true then if true then
mg1:Merge(Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_SZONE,0,nil,e)) mg1:Merge(Duel.GetMatchingGroup(cm.filter0,tp,LOCATION_SZONE,0,e:GetHandler(),e))
end end
local sg1=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf) local sg1=Duel.GetMatchingGroup(cm.filter2,tp,LOCATION_EXTRA,0,nil,e,tp,mg1,nil,chkf)
local mg2=nil local mg2=nil
......
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