Commit 08d3ce62 authored by Huangnan's avatar Huangnan

fix

parent dd4852e0
No preview for this file type
...@@ -91,7 +91,7 @@ function c11600515.rtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -91,7 +91,7 @@ function c11600515.rtg(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetRitualMaterial(tp) local mg=Duel.GetRitualMaterial(tp)
if chk==0 then if chk==0 then
return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true) return c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,false,true)
and mg:CheckWithSumGreater(Card.GetRitualLevel,8,c) and mg:CheckWithSumEqual(Card.GetRitualLevel,8,1,8,c)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_SZONE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_SZONE)
end end
...@@ -103,6 +103,7 @@ function c11600515.rop(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,6 +103,7 @@ function c11600515.rop(e,tp,eg,ep,ev,re,r,rp)
aux.GCheckAdditional=aux.RitualCheckAdditional(c,8,"Equal") aux.GCheckAdditional=aux.RitualCheckAdditional(c,8,"Equal")
local mat=mg:SelectSubGroup(tp,aux.RitualCheck,false,1,8,tp,c,8,"Equal") local mat=mg:SelectSubGroup(tp,aux.RitualCheck,false,1,8,tp,c,8,"Equal")
aux.GCheckAdditional=nil aux.GCheckAdditional=nil
if not mat or #mat<1 then return end
c:SetMaterial(mat) c:SetMaterial(mat)
Duel.ReleaseRitualMaterial(mat) Duel.ReleaseRitualMaterial(mat)
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -18,7 +18,7 @@ function s.initial_effect(c) ...@@ -18,7 +18,7 @@ function s.initial_effect(c)
--link as level --link as level
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+EFFECT_FLAG_UNCOPYABLE) --e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI) e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI)
e2:SetValue(function(e,c) e2:SetValue(function(e,c)
return e:GetHandler():GetLink() return e:GetHandler():GetLink()
......
...@@ -13,7 +13,7 @@ function c12869025.initial_effect(c) ...@@ -13,7 +13,7 @@ function c12869025.initial_effect(c)
--link as level --link as level
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+EFFECT_FLAG_UNCOPYABLE) --e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI) e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI)
e2:SetValue(function(e,c) e2:SetValue(function(e,c)
return e:GetHandler():GetLink() return e:GetHandler():GetLink()
......
...@@ -12,7 +12,7 @@ function c12869030.initial_effect(c) ...@@ -12,7 +12,7 @@ function c12869030.initial_effect(c)
--link as level --link as level
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+EFFECT_FLAG_UNCOPYABLE) --e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI) e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI)
e2:SetValue(function(e,c) e2:SetValue(function(e,c)
return e:GetHandler():GetLink() return e:GetHandler():GetLink()
......
...@@ -12,7 +12,7 @@ function c12869035.initial_effect(c) ...@@ -12,7 +12,7 @@ function c12869035.initial_effect(c)
--link as level --link as level
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+EFFECT_FLAG_UNCOPYABLE) --e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI) e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI)
e2:SetValue(function(e,c) e2:SetValue(function(e,c)
return e:GetHandler():GetLink() return e:GetHandler():GetLink()
......
...@@ -12,7 +12,7 @@ function c12869040.initial_effect(c) ...@@ -12,7 +12,7 @@ function c12869040.initial_effect(c)
--link as level --link as level
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+EFFECT_FLAG_UNCOPYABLE) --e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI) e2:SetCode(EFFECT_ALLOW_SYNCHRO_KOISHI)
e2:SetValue(function(e,c) e2:SetValue(function(e,c)
return e:GetHandler():GetLink() return e:GetHandler():GetLink()
......
...@@ -99,9 +99,11 @@ end ...@@ -99,9 +99,11 @@ end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsSSetable() end if chk==0 then return c:IsSSetable() end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) if c:IsLocation(LOCATION_GRAVE) then
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0)
end
end end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) and aux.NecroValleyFilter()(c) then Duel.SSet(tp,c) end
end end
\ No newline at end of file
...@@ -90,11 +90,13 @@ end ...@@ -90,11 +90,13 @@ end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsSSetable() end if chk==0 then return c:IsSSetable() end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) if c:IsLocation(LOCATION_GRAVE) then
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0)
end
end end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) and aux.NecroValleyFilter()(c) then Duel.SSet(tp,c) end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,4)) e1:SetDescription(aux.Stringid(id,4))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -154,11 +154,13 @@ end ...@@ -154,11 +154,13 @@ end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsSSetable() end if chk==0 then return c:IsSSetable() end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) if c:IsLocation(LOCATION_GRAVE) then
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0)
end
end end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) and aux.NecroValleyFilter()(c) then Duel.SSet(tp,c) end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,4)) e1:SetDescription(aux.Stringid(id,4))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -65,11 +65,13 @@ end ...@@ -65,11 +65,13 @@ end
function s.settg(e,tp,eg,ep,ev,re,r,rp,chk) function s.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsSSetable() end if chk==0 then return c:IsSSetable() end
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0) if c:IsLocation(LOCATION_GRAVE) then
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,c,1,0,0)
end
end end
function s.setop(e,tp,eg,ep,ev,re,r,rp) function s.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then Duel.SSet(tp,c) end if c:IsRelateToEffect(e) and aux.NecroValleyFilter()(c) then Duel.SSet(tp,c) end
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,4)) e1:SetDescription(aux.Stringid(id,4))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -27,13 +27,23 @@ function c60001172.initial_effect(c) ...@@ -27,13 +27,23 @@ function c60001172.initial_effect(c)
e3:SetRange(LOCATION_REMOVED) e3:SetRange(LOCATION_REMOVED)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--修改全局检查效果
if not c60001172.global_check then if not c60001172.global_check then
c60001172.global_check=true c60001172.global_check=true
local e4=Effect.CreateEffect(c) local e4=Effect.GlobalEffect()
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_SSET) e4:SetCode(EVENT_SSET)
e4:SetCondition(c60001172.setcon) e4:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
e4:SetOperation(c60001172.setop) local tg=eg:Filter(function(c)
return c:IsCode(60001172) and c:IsType(TYPE_SPELL+TYPE_TRAP)
end,nil)
if tg:GetCount()<=0 then return end
local tc=tg:GetFirst()
while tc do
tc:RegisterFlagEffect(60001168,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
tc=tg:GetNext()
end
end)
Duel.RegisterEffect(e4,0) Duel.RegisterEffect(e4,0)
end end
end end
...@@ -45,12 +55,17 @@ function c60001172.setcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -45,12 +55,17 @@ function c60001172.setcon(e,tp,eg,ep,ev,re,r,rp)
end end
function c60001172.setop(e,tp,eg,ep,ev,re,r,rp) function c60001172.setop(e,tp,eg,ep,ev,re,r,rp)
local tg=eg:Filter(c60001172.setter,nil) local tg=eg:Filter(c60001172.setter,nil)
for tc in aux.Next(tg) do if tg:GetCount()<=0 then return end
local tc=tg:GetFirst()
while tc do
tc:RegisterFlagEffect(60001168,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) tc:RegisterFlagEffect(60001168,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
tc=tg:GetNext()
end end
end end
function c60001172.fscon(e,tp,eg,ep,ev,re,r,rp) function c60001172.fscon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and re:IsHasCategory(CATEGORY_SPECIAL_SUMMON) --原代码只检查特殊召唤效果,需要加入类型判定
return rp==1-tp and re:IsHasCategory(CATEGORY_SPECIAL_SUMMON)
and (re:IsActiveType(TYPE_SPELL+TYPE_TRAP) or re:IsActiveType(TYPE_MONSTER))
end end
function c60001172.cwter(c) function c60001172.cwter(c)
return c:IsSummonType(SUMMON_TYPE_SPECIAL) return c:IsSummonType(SUMMON_TYPE_SPECIAL)
...@@ -61,17 +76,18 @@ function c60001172.fstg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -61,17 +76,18 @@ function c60001172.fstg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c60001172.cwter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c60001172.cwter,tp,0,LOCATION_MZONE,nil)
end end
function c60001172.fsop(e,tp,eg,ep,ev,re,r,rp) function c60001172.fsop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local a1,a2,a3,a4,zone=Duel.GetOperationInfo() --修改这一行
local e1=Effect.CreateEffect(c) local loc=re:GetHandler():GetLocation()
e1:SetType(EFFECT_TYPE_FIELD) local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_OATH)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e1:SetTargetRange(1,0) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetLabel(zone) e1:SetTargetRange(1,0)
e1:SetTarget(c60001172.splimit) e1:SetLabel(loc) --使用获取到的位置
Duel.RegisterEffect(e1,1-tp) e1:SetTarget(c60001172.splimit)
Duel.RegisterEffect(e1,1-tp)
local g=Duel.GetMatchingGroup(c60001172.cwter,tp,0,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c60001172.cwter,tp,0,LOCATION_MZONE,nil)
if c:GetFlagEffect(60001168)>0 and c:IsLocation(LOCATION_SZONE) and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(60001172,2)) then if c:GetFlagEffect(60001168)>0 and c:IsLocation(LOCATION_SZONE) and #g>0 and Duel.SelectYesNo(tp,aux.Stringid(60001172,2)) then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
...@@ -85,12 +101,11 @@ function c60001172.fsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,12 +101,11 @@ function c60001172.fsop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e4,1-tp) Duel.RegisterEffect(e4,1-tp)
end end
function c60001172.ntop(e,tp,eg,ep,ev,re,r,rp) function c60001172.ntop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() Duel.Recover(tp,2000,REASON_EFFECT)
Duel.Recover(tp,2000,REASON_EFFECT) e:Reset()
e:Reset()
end end
function c60001172.splimit(e,c) function c60001172.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsLocation(zone) return c:IsLocation(e:GetLabel())
end end
function c60001172.filter2(c) function c60001172.filter2(c)
return aux.IsCodeListed(c,60001179) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable() return aux.IsCodeListed(c,60001179) and c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSSetable()
......
...@@ -11,7 +11,7 @@ function c60159912.initial_effect(c) ...@@ -11,7 +11,7 @@ function c60159912.initial_effect(c)
--act in hand --act in hand
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_TRAP_ACT_IN_HAND) e2:SetCode(EFFECT_QP_ACT_IN_NTPHAND)
e2:SetCondition(c60159912.handcon) e2:SetCondition(c60159912.handcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -33,5 +33,5 @@ function c60159912.chainop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,5 +33,5 @@ function c60159912.chainop(e,tp,eg,ep,ev,re,r,rp)
Duel.SetChainLimit(aux.FALSE) Duel.SetChainLimit(aux.FALSE)
end end
function c60159912.handcon(e,tp,eg,ep,ev,re,r,rp) function c60159912.handcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()>1 return Duel.GetCurrentChain()>2
end end
\ No newline at end of file
...@@ -104,12 +104,19 @@ function c62625125.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -104,12 +104,19 @@ function c62625125.target(e,tp,eg,ep,ev,re,r,rp,chk)
{b1,aux.Stringid(62625125,1)}, {b1,aux.Stringid(62625125,1)},
{b2,aux.Stringid(62625125,2)}) {b2,aux.Stringid(62625125,2)})
e:SetLabel(op) e:SetLabel(op)
if op==1 then
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(2)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,2)
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,0,tp,LOCATION_HAND)
end
end end
function c62625125.operation(e,tp,eg,ep,ev,re,r,rp) function c62625125.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local op=e:GetLabel() local op=e:GetLabel()
if op==1 then if op==1 then
if Duel.Draw(tp,2,REASON_EFFECT)==2 then local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
if Duel.Draw(p,d,REASON_EFFECT)==2 then
Duel.ShuffleHand(p) Duel.ShuffleHand(p)
Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,p,HINTMSG_TODECK)
local sg=Duel.SelectMatchingCard(p,Card.IsAbleToDeck,p,LOCATION_HAND,0,1,1,nil) local sg=Duel.SelectMatchingCard(p,Card.IsAbleToDeck,p,LOCATION_HAND,0,1,1,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