Commit 2f784c45 authored by Nemo Ma's avatar Nemo Ma

fix

parent 9ca91b3f
--居合万钧切 --居合万钧切
--21.12.15 --21.12.15
local m=11451647 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--activate --activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -13,7 +12,7 @@ function cm.initial_effect(c) ...@@ -13,7 +12,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and Duel.GetTurnPlayer()==1-tp and not Duel.CheckPhaseActivity() return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and Duel.GetTurnPlayer()==1-tp and Duel.GetCurrentChain()==0 and not Duel.CheckPhaseActivity()
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)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -146,6 +146,14 @@ function c22348267.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -146,6 +146,14 @@ function c22348267.operation(e,tp,eg,ep,ev,re,r,rp)
local tg=g:Filter(Card.IsRelateToEffect,nil,e) local tg=g:Filter(Card.IsRelateToEffect,nil,e)
local ttg=g:Filter(c22348267.ovfilter,nil,e) local ttg=g:Filter(c22348267.ovfilter,nil,e)
if c:IsRelateToEffect(e) and ttg:GetCount()>0 then if c:IsRelateToEffect(e) and ttg:GetCount()>0 then
local ttc=ttg:GetFirst()
while ttc do
local og=ttc:GetOverlayGroup()
if og:GetCount()>0 then
Duel.SendtoGrave(og,REASON_RULE)
end
ttc=ttg:GetNext()
end
Duel.Overlay(c,ttg) Duel.Overlay(c,ttg)
end end
end end
\ No newline at end of file
...@@ -56,6 +56,7 @@ function cm.initial_effect(c) ...@@ -56,6 +56,7 @@ function cm.initial_effect(c)
end end
cm.named_with_treasure=true cm.named_with_treasure=true
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -34,6 +34,7 @@ function cm.initial_effect(c) ...@@ -34,6 +34,7 @@ function cm.initial_effect(c)
end end
end end
function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function cm.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_PUBLIC) e1:SetCode(EFFECT_PUBLIC)
......
...@@ -56,7 +56,7 @@ function s.filter1(c,e,tp,m,f,chkf) ...@@ -56,7 +56,7 @@ function s.filter1(c,e,tp,m,f,chkf)
return res return res
end end
function s.cfilter(c,tp) function s.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_ONFIELD) return c:IsPreviousControler(tp) and c:IsPreviousLocation(LOCATION_MZONE)
and c:IsReason(REASON_EFFECT) and c:IsReason(REASON_EFFECT)
end end
function s.fuscon(e,tp,eg,ep,ev,re,r,rp) function s.fuscon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -55,7 +55,7 @@ function s.initial_effect(c) ...@@ -55,7 +55,7 @@ function s.initial_effect(c)
e7:SetCode(EVENT_CHAINING) e7:SetCode(EVENT_CHAINING)
e7:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e7:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e7:SetRange(LOCATION_MZONE) e7:SetRange(LOCATION_MZONE)
e7:SetLabel(1) e7:SetLabel(7)
--e7:SetCountLimit(1,id+1) --e7:SetCountLimit(1,id+1)
e7:SetCost(s.discost) e7:SetCost(s.discost)
e7:SetCondition(s.discon) e7:SetCondition(s.discon)
...@@ -74,7 +74,7 @@ function s.matcheck(e,c) ...@@ -74,7 +74,7 @@ function s.matcheck(e,c)
re:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD) re:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD)
c:RegisterEffect(re) c:RegisterEffect(re)
tc=cg:GetNext() tc=cg:GetNext()
end end
end end
function s.rafilter(c) function s.rafilter(c)
return c:IsFaceup() and c:GetRace()~=0 return c:IsFaceup() and c:GetRace()~=0
......
...@@ -81,7 +81,7 @@ if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then ...@@ -81,7 +81,7 @@ if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
Duel.SendtoGrave(g1,REASON_EFFECT) end Duel.SendtoGrave(g1,REASON_EFFECT) end
end end
function cm.cfilter(c,tp) function cm.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) and c:IsSetCard(0x9d2)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,e:GetHandler(),tp) return eg:IsExists(cm.cfilter,1,e:GetHandler(),tp)
......
...@@ -83,7 +83,7 @@ if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then ...@@ -83,7 +83,7 @@ if Duel.SendtoGrave(g,REASON_EFFECT)~=0 then
Duel.SendtoGrave(g1,REASON_EFFECT) end Duel.SendtoGrave(g1,REASON_EFFECT) end
end end
function cm.cfilter(c,tp) function cm.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) and c:IsSetCard(0x9d2)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp) function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.cfilter,1,e:GetHandler(),tp) return eg:IsExists(cm.cfilter,1,e:GetHandler(),tp)
......
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