Commit 7a877677 authored by TanakaKotoha's avatar TanakaKotoha

fix

parent f39ca1fd
...@@ -23,14 +23,7 @@ function c12006012.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -23,14 +23,7 @@ function c12006012.operation(e,tp,eg,ep,ev,re,r,rp)
if sg:GetCount()>0 then if sg:GetCount()>0 then
Duel.ChangePosition(sg,POS_FACEUP_ATTACK,0,POS_FACEUP_ATTACK,0) Duel.ChangePosition(sg,POS_FACEUP_ATTACK,0,POS_FACEUP_ATTACK,0)
end end
local e2=Effect.CreateEffect(c) Duel.SetChainLimit(c12006012.chlimit)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCode(EFFECT_CANNOT_ACTIVATE)
e2:SetTargetRange(0,1)
e2:SetValue(c12006012.aclimit)
e2:SetReset(RESET_PHASE+PHASE_BATTLE)
Duel.RegisterEffect(e2,tp)
end end
function c12006012.chlimit(e,ep,tp) function c12006012.chlimit(e,ep,tp)
return tp==ep return tp==ep
......
...@@ -47,7 +47,7 @@ function c12010037.filter(c,tp) ...@@ -47,7 +47,7 @@ function c12010037.filter(c,tp)
and c:IsPreviousLocation(LOCATION_DECK) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_DECK) and c:GetPreviousControler()==tp
end end
function c12010037.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c12010037.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and eg:IsExists(c12010037.filter,1,nil,tp) end if chk==0 then return Duel.GetTurnPlayer()==1-tp and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and eg:IsExists(c12010037.filter,1,nil,tp) end
local g=eg:Filter(c12010037.filter,nil,tp) local g=eg:Filter(c12010037.filter,nil,tp)
if g:GetCount()==1 then if g:GetCount()==1 then
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
...@@ -98,7 +98,7 @@ function c12010037.spop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -98,7 +98,7 @@ function c12010037.spop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.MoveToField(tc,tp,tp,LOCATION_FZONE,POS_FACEUP,true) Duel.MoveToField(tc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
Duel.RaiseEvent(tc,EVENT_CHAIN_SOLVED,tc:GetActivateEffect(),0,tp,tp,Duel.GetCurrentChain()) Duel.RaiseEvent(tc,EVENT_CHAIN_SOLVED,tc:GetActivateEffect(),0,tp,tp,Duel.GetCurrentChain())
end end
end end
......
...@@ -6,7 +6,7 @@ function c12026031.initial_effect(c) ...@@ -6,7 +6,7 @@ function c12026031.initial_effect(c)
--material --material
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(12026031,2)) e3:SetDescription(aux.Stringid(12026031,2))
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_0) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetTarget(c12026031.xyztg) e3:SetTarget(c12026031.xyztg)
...@@ -63,7 +63,7 @@ end ...@@ -63,7 +63,7 @@ end
function c12026031.xyztg(e,tp,eg,ep,ev,re,r,rp,chk) function c12026031.xyztg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(c12026031.xyzfilter,tp,LOCATION_GRAVE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c12026031.xyzfilter,tp,LOCATION_GRAVE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12026031,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(12026031,2))
local g=Duel.SelectTarget(tp,c12026031.xyzfilter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,c12026031.xyzfilter,tp,LOCATION_GRAVE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,g,1,0,0)
end end
function c12026031.xyzop(e,tp,eg,ep,ev,re,r,rp) function c12026031.xyzop(e,tp,eg,ep,ev,re,r,rp)
...@@ -85,7 +85,6 @@ function c12026031.cfilter(c,e,tp) ...@@ -85,7 +85,6 @@ function c12026031.cfilter(c,e,tp)
local cs=e:GetLabel() local cs=e:GetLabel()
return c:IsSetCard(0x1fbd) and c:IsAbleToHand() and Duel.IsExistingMatchingCard(c12026031.tfilter,tp,LOCATION_DECK,0,cs-1,c,c:GetCode()) return c:IsSetCard(0x1fbd) and c:IsAbleToHand() and Duel.IsExistingMatchingCard(c12026031.tfilter,tp,LOCATION_DECK,0,cs-1,c,c:GetCode())
end end
function c12026031.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c12026031.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local cs=e:GetLabel() local cs=e:GetLabel()
if chk==0 then return Duel.IsExistingMatchingCard(c12026031.cfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end if chk==0 then return Duel.IsExistingMatchingCard(c12026031.cfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
......
Duel.LoadScript("c12048000.lua")
--万圣狼娘 墓城姬涅依 --万圣狼娘 墓城姬涅依
local m=12048007 local m=12048007
local cm=_G["c"..m] local cm=_G["c"..m]
......
Duel.LoadScript("c12048000.lua")
--至妙之漂浮 墓城姬涅依 --至妙之漂浮 墓城姬涅依
local m=12048008 local m=12048008
local cm=_G["c"..m] local cm=_G["c"..m]
......
...@@ -11,7 +11,7 @@ function cm.initial_effect(c) ...@@ -11,7 +11,7 @@ function cm.initial_effect(c)
end end
function cm.limitval(e,re) function cm.limitval(e,re)
local rc=re:GetHandler() local rc=re:GetHandler()
if rc:IsRace(RACE_WARRIOR) then return false end if rc:IsRace(RACE_WARRIOR) or not rc:IsType(TYPE_MONSTER) then return false end
return rc:IsStatus(STATUS_BATTLE_DESTROYED) or rc:IsComplexReason(REASON_DESTROY,true,REASON_EFFECT,REASON_BATTLE) return rc:IsStatus(STATUS_BATTLE_DESTROYED) or rc:IsComplexReason(REASON_DESTROY,true,REASON_EFFECT,REASON_BATTLE)
end end
function cm.sptg(e,c) function cm.sptg(e,c)
......
...@@ -55,35 +55,41 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp) ...@@ -55,35 +55,41 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end end
Duel.BreakEffect() Duel.BreakEffect()
Duel.Draw(tp,5,REASON_EFFECT) Duel.Draw(tp,5,REASON_EFFECT)
local hg1=Duel.GetOperatedGroup()
Duel.Draw(1-tp,5,REASON_EFFECT) Duel.Draw(1-tp,5,REASON_EFFECT)
-- g:Merge(tg) -- g:Merge(tg)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,LOCATION_HAND) local g=Duel.GetOperatedGroup()
g:Merge(hg1)
if g:GetCount()>0 then if g:GetCount()>0 then
local sc=g:GetFirst() local sc=g:GetFirst()
while sc do while sc do
sc:RegisterFlagEffect(m,RESET_PHASE+PHASE_END+RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,2))
sc=g:GetNext()
end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_TRIGGER) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1) e1:SetCode(EFFECT_CANNOT_ACTIVATE)
sc:RegisterEffect(e1) e1:SetTargetRange(1,1)
sc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,2)) e1:SetValue(cm.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e5=Effect.CreateEffect(e:GetHandler()) local e5=Effect.CreateEffect(e:GetHandler())
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e5:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetTargetRange(1,1) e5:SetTargetRange(1,1)
e5:SetLabelObject(sc) e5:SetTarget(cm.sumlimit)
e5:SetTarget(cm.distg) e5:SetReset(RESET_PHASE+PHASE_END)
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e5,tp) Duel.RegisterEffect(e5,tp)
local e6=e5:Clone() local e6=e5:Clone()
e6:SetCode(EFFECT_CANNOT_SUMMON) e6:SetCode(EFFECT_CANNOT_SUMMON)
Duel.RegisterEffect(e6,tp) Duel.RegisterEffect(e6,tp)
sc=g:GetNext()
end
end end
end end
function cm.distg(e,c) function cm.aclimit(e,re,tp)
local sc=e:GetLabelObject() return re:GetHandler():GetFlagEffect(m)~=0
return c:IsOriginalCodeRule(sc) end
function cm.sumlimit(e,c)
return c:GetFlagEffect(m)~=0
end end
\ No newline at end of file
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