Commit 66e46ae6 authored by POLYMER's avatar POLYMER

fix

parent 8f9be68e
...@@ -58,13 +58,14 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,13 +58,14 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPPO)
local g=Duel.SelectMatchingCard(tp,s.filter,tp,0,LOCATION_MZONE,1,1,nil) local g=Duel.SelectMatchingCard(tp,s.filter,tp,0,LOCATION_MZONE,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.HintSelection(g)
local ec=g:GetFirst() local ec=g:GetFirst()
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_TRIGGER) e2:SetCode(EFFECT_CANNOT_TRIGGER)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
ec:RegisterEffect(e2,true) ec:RegisterEffect(e2,true)
ec:RegisterFlagEffect(0,RESET_EVENT+RESETS_REDIRECT,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2)) ec:RegisterFlagEffect(0,RESET_EVENT+RESETS_REDIRECT+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,2))
end end
end end
end end
...@@ -76,18 +77,16 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,18 +77,16 @@ function s.indop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local rc=c:GetReasonCard() local rc=c:GetReasonCard()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1) e1:SetValue(1)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT) e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetValue(1) e2:SetValue(1)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
rc:RegisterEffect(e2,true) rc:RegisterEffect(e2,true)
rc:RegisterFlagEffect(id,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,1)) rc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,1))
end end
...@@ -9,7 +9,7 @@ function c75000006.initial_effect(c) ...@@ -9,7 +9,7 @@ function c75000006.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE) e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetCondition(c77610772.incon) e1:SetCondition(c75000006.incon)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
......
--连结的绊炎 传承琉迩 --连结的绊炎 传承琉迩
function c75000007.initial_effect(c) function c75000007.initial_effect(c)
aux.AddCodeList(c,75000001) aux.AddCodeList(c,75000001)
c:SetUniqueOnField(1,0,75000007)
--fusion material --fusion material
c:EnableReviveLimit() c:EnableReviveLimit()
aux.AddFusionProcCodeFunRep(c,75000001,c75000007.mfilter,1,63,true,true) aux.AddFusionProcCodeFunRep(c,75000001,c75000007.mfilter,1,63,true,true)
...@@ -75,7 +74,7 @@ function c75000007.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +74,7 @@ function c75000007.regop(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE+EFFECT_FLAG_SET_AVAILABLE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c75000007.indtg) e2:SetTarget(c75000007.indtg)
e2:SetValue(aux.tgoval) e2:SetValue(aux.tgoval)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
...@@ -104,7 +103,7 @@ function c75000007.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,7 +103,7 @@ function c75000007.spcon(e,tp,eg,ep,ev,re,r,rp)
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2 return ph==PHASE_MAIN1 or ph==PHASE_MAIN2
end end
function c75000007.spfilter(c,e,tp) function c75000007.spfilter(c,e,tp)
return aux.IsCodeListed(c,75000001) and not c:IsType(TYPE_FUSION+TYPE_LINK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (not c:IsLocation(LOCATION_EXTRA) and Duel.GetMZoneCount(tp)>0 or c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0) return aux.IsCodeListed(c,75000001) and not c:IsType(TYPE_FUSION) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (not c:IsLocation(LOCATION_EXTRA) and Duel.GetMZoneCount(tp)>0 or c:IsLocation(LOCATION_EXTRA) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0)
end end
function c75000007.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c75000007.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c75000007.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c75000007.spfilter,tp,LOCATION_DECK+LOCATION_EXTRA+LOCATION_GRAVE,0,1,nil,e,tp) end
......
...@@ -89,7 +89,7 @@ function c75011001.arop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,7 +89,7 @@ function c75011001.arop(e,tp,eg,ep,ev,re,r,rp)
local tg=te:GetTarget() local tg=te:GetTarget()
if tg then tg(te,tp,eg,ep,ev,re,r,rp,1) end if tg then tg(te,tp,eg,ep,ev,re,r,rp,1) end
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if #g>0 then if g and g:GetCount()>0 then
for oc in aux.Next(g) do for oc in aux.Next(g) do
oc:CreateEffectRelation(te) oc:CreateEffectRelation(te)
end end
...@@ -97,7 +97,7 @@ function c75011001.arop(e,tp,eg,ep,ev,re,r,rp) ...@@ -97,7 +97,7 @@ function c75011001.arop(e,tp,eg,ep,ev,re,r,rp)
local op=te:GetOperation() local op=te:GetOperation()
if op then op(te,tp,eg,ep,ev,re,r,rp) end if op then op(te,tp,eg,ep,ev,re,r,rp) end
--tc:ReleaseEffectRelation(te) --tc:ReleaseEffectRelation(te)
if #g>0 then if g and g:GetCount()>0 then
for oc in aux.Next(g) do for oc in aux.Next(g) do
oc:ReleaseEffectRelation(te) oc:ReleaseEffectRelation(te)
end end
......
...@@ -26,12 +26,12 @@ function c76029021.initial_effect(c) ...@@ -26,12 +26,12 @@ function c76029021.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c76029021.named_with_Kazimierz=true c76029021.named_with_Kazimierz=true
function c76029021.ctfil(c) function c76029021.ctfil(c,tp)
return c.named_with_Kazimierz and c:IsReleasable() and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_MZONE,0,1,c,RACE_BEASTWARRIOR+RACE_WINDBEAST) return c.named_with_Kazimierz and c:IsReleasable() and Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_MZONE,0,1,c,RACE_BEASTWARRIOR+RACE_WINDBEAST)
end end
function c76029021.incost(e,tp,eg,ep,ev,re,r,rp,chk) function c76029021.incost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c76029021.ctfil,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c76029021.ctfil,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil,tp) end
local g=Duel.SelectMatchingCard(tp,c76029021.ctfil,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c76029021.ctfil,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil,tp)
Duel.Release(g,REASON_COST) Duel.Release(g,REASON_COST)
end end
function c76029021.intg(e,tp,eg,ep,ev,re,r,rp,chk) function c76029021.intg(e,tp,eg,ep,ev,re,r,rp,chk)
......
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