Commit 25173dcc authored by Nemo Ma's avatar Nemo Ma

fix

parent 659e725b
...@@ -38,7 +38,7 @@ function cm.initial_effect(c) ...@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e3:SetCountLimit(1,m) e3:SetCountLimit(1,m)
e3:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e3:SetCondition(cm.condition4) e3:SetCondition(cm.condition4)
e3:SetTarget(cm.target4) --e3:SetTarget(cm.target4)
e3:SetOperation(cm.operation4) e3:SetOperation(cm.operation4)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e5=e3:Clone() local e5=e3:Clone()
......
...@@ -50,7 +50,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,nil,tp) return eg:IsExists(cm.cfilter,1,nil,tp)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local b1=Duel.IsExistingMatchingCard(cm.sfilter2,tp,LOCATION_DECK,0,1,nil) local b1=true--Duel.IsExistingMatchingCard(cm.sfilter2,tp,LOCATION_DECK,0,1,nil)
local b2=(Duel.GetCurrentPhase()~=PHASE_END) local b2=(Duel.GetCurrentPhase()~=PHASE_END)
if chk==0 then return true end if chk==0 then return true end
local op=1 local op=1
......
...@@ -32,18 +32,18 @@ function cm.redop(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,18 +32,18 @@ function cm.redop(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_DRAW) e2:SetCode(EFFECT_CANNOT_DRAW)
e2:SetTarget(cm.cttg)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
local e3=e1:Clone() local e3=e2:Clone()
e3:SetCode(EFFECT_CANNOT_TO_GRAVE) e3:SetCode(EFFECT_CANNOT_TO_GRAVE)
e3:SetTarget(cm.cttg)
Duel.RegisterEffect(e3,tp) Duel.RegisterEffect(e3,tp)
local e4=e3:Clone() local e4=e2:Clone()
e4:SetCode(EFFECT_CANNOT_TO_HAND) e4:SetCode(EFFECT_CANNOT_TO_HAND)
Duel.RegisterEffect(e4,tp) Duel.RegisterEffect(e4,tp)
local e5=e3:Clone() local e5=e2:Clone()
e5:SetCode(EFFECT_CANNOT_REMOVE) e5:SetCode(EFFECT_CANNOT_REMOVE)
Duel.RegisterEffect(e5,tp) Duel.RegisterEffect(e5,tp)
local e6=e3:Clone() local e6=e2:Clone()
e6:SetCode(EFFECT_CANNOT_DISCARD_DECK) e6:SetCode(EFFECT_CANNOT_DISCARD_DECK)
Duel.RegisterEffect(e6,tp) Duel.RegisterEffect(e6,tp)
end end
......
...@@ -21,6 +21,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -21,6 +21,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
Duel.AddCustomActivityCounter(m,ACTIVITY_CHAIN,aux.FALSE)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
...@@ -35,7 +36,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -35,7 +36,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EVENT_CHAINING) e2:SetCode(EVENT_CHAINING)
e2:SetOperation(cm.aclimit) e2:SetOperation(cm.aclimit)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) --Duel.RegisterEffect(e2,tp)
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.BreakEffect() Duel.BreakEffect()
c:CancelToGrave() c:CancelToGrave()
...@@ -43,7 +44,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,7 +44,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.con(e) function cm.con(e)
return Duel.GetFlagEffect(e:GetHandlerPlayer(),m)<=3 local tp=e:GetHandlerPlayer()
return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)<=3
end end
function cm.aclimit(e,tp,eg,ep,ev,re,r,rp) function cm.aclimit(e,tp,eg,ep,ev,re,r,rp)
if ep==tp then Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1) end if ep==tp then Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1) end
......
...@@ -67,12 +67,12 @@ function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,12 +67,12 @@ function cm.mvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.mvfilter1,tp,LOCATION_MZONE,0,1,nil,tp) end if chk==0 then return Duel.IsExistingMatchingCard(cm.mvfilter1,tp,LOCATION_MZONE,0,1,nil,tp) end
end end
function cm.mvop(e,tp,eg,ep,ev,re,r,rp) function cm.mvop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(22198672,2))
local g1=Duel.SelectMatchingCard(tp,cm.mvfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp) local g1=Duel.SelectMatchingCard(tp,cm.mvfilter1,tp,LOCATION_MZONE,0,1,1,nil,tp)
local tc1=g1:GetFirst() local tc1=g1:GetFirst()
if not tc1 then return end if not tc1 then return end
Duel.HintSelection(g1) Duel.HintSelection(g1)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(22198672,2))
local g2=Duel.SelectMatchingCard(tp,cm.mvfilter2,tp,LOCATION_MZONE,0,1,1,tc1) local g2=Duel.SelectMatchingCard(tp,cm.mvfilter2,tp,LOCATION_MZONE,0,1,1,tc1)
Duel.HintSelection(g2) Duel.HintSelection(g2)
local tc2=g2:GetFirst() local tc2=g2:GetFirst()
......
...@@ -37,6 +37,8 @@ ...@@ -37,6 +37,8 @@
!counter 0x1442 传记指示物 !counter 0x1442 传记指示物
!counter 0x144b 虚空指示物(Void Counter !counter 0x144b 虚空指示物(Void Counter
!counter 0x144e 晦空之础 !counter 0x144e 晦空之础
!counter 0x1441 Kemurikusa指示物
!victory 0x144f Kemurikusa特殊胜利
!setname 0x460 键★(K.E.Y !setname 0x460 键★(K.E.Y
!setname 0x3460 键★断片(K.E.Y Fragments !setname 0x3460 键★断片(K.E.Y Fragments
......
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