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)
if sg:GetCount()>0 then
Duel.ChangePosition(sg,POS_FACEUP_ATTACK,0,POS_FACEUP_ATTACK,0)
end
local e2=Effect.CreateEffect(c)
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)
Duel.SetChainLimit(c12006012.chlimit)
end
function c12006012.chlimit(e,ep,tp)
return tp==ep
......
......@@ -47,7 +47,7 @@ function c12010037.filter(c,tp)
and c:IsPreviousLocation(LOCATION_DECK) and c:GetPreviousControler()==tp
end
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)
if g:GetCount()==1 then
Duel.ConfirmCards(1-tp,g)
......@@ -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
local tc=Duel.GetFirstTarget()
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())
end
end
......
......@@ -6,7 +6,7 @@ function c12026031.initial_effect(c)
--material
local e3=Effect.CreateEffect(c)
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:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetTarget(c12026031.xyztg)
......@@ -63,7 +63,7 @@ end
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
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)
end
function c12026031.xyzop(e,tp,eg,ep,ev,re,r,rp)
......@@ -85,7 +85,6 @@ function c12026031.cfilter(c,e,tp)
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())
end
function c12026031.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local cs=e:GetLabel()
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 cm=_G["c"..m]
......
Duel.LoadScript("c12048000.lua")
--至妙之漂浮 墓城姬涅依
local m=12048008
local cm=_G["c"..m]
......
......@@ -11,7 +11,7 @@ function cm.initial_effect(c)
end
function cm.limitval(e,re)
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)
end
function cm.sptg(e,c)
......
......@@ -55,35 +55,41 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
Duel.BreakEffect()
Duel.Draw(tp,5,REASON_EFFECT)
local hg1=Duel.GetOperatedGroup()
Duel.Draw(1-tp,5,REASON_EFFECT)
-- g:Merge(tg)
local g=Duel.GetFieldGroup(tp,LOCATION_HAND,LOCATION_HAND)
local g=Duel.GetOperatedGroup()
g:Merge(hg1)
if g:GetCount()>0 then
local sc=g:GetFirst()
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())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_TRIGGER)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1)
sc:RegisterEffect(e1)
sc:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(m,2))
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetCode(EFFECT_CANNOT_ACTIVATE)
e1:SetTargetRange(1,1)
e1:SetValue(cm.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
local e5=Effect.CreateEffect(e:GetHandler())
e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e5:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e5:SetTargetRange(1,1)
e5:SetLabelObject(sc)
e5:SetTarget(cm.distg)
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e5:SetTarget(cm.sumlimit)
e5:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e5,tp)
local e6=e5:Clone()
e6:SetCode(EFFECT_CANNOT_SUMMON)
Duel.RegisterEffect(e6,tp)
sc=g:GetNext()
end
end
end
function cm.distg(e,c)
local sc=e:GetLabelObject()
return c:IsOriginalCodeRule(sc)
function cm.aclimit(e,re,tp)
return re:GetHandler():GetFlagEffect(m)~=0
end
function cm.sumlimit(e,c)
return c:GetFlagEffect(m)~=0
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