Commit ae5add8d authored by wind2009's avatar wind2009

Fix

parent 8d1eeee8
--Ame no Murakumo no Mitsurugi --Ame no Habakiri no Mitsurugi
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
......
--Mitsurugi Mirror --Mitsurugi Mirror
local s,id,o=GetID() local s,id,o=GetID()
function s.initial_effect(c) function s.initial_effect(c)
aux.AddCodeList(c,101208192,19899073,55397172) aux.AddCodeList(c,101208092,19899073,55397172)
--Activate --Activate
local e1=aux.AddRitualProcGreater2(c,s.spfilter,LOCATION_HAND+LOCATION_GRAVE,nil,s.mfilter,true) local e1=aux.AddRitualProcGreater2(c,s.spfilter,LOCATION_HAND+LOCATION_GRAVE,nil,s.mfilter,true)
e1:SetCountLimit(1,id) e1:SetCountLimit(1,id)
...@@ -28,7 +28,7 @@ function s.mfilter(c) ...@@ -28,7 +28,7 @@ function s.mfilter(c)
end end
function s.cfilter(c,tp) function s.cfilter(c,tp)
return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp) return c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousControler(tp)
and (c:GetPreviousCodeOnField()==101208192 or c:GetPreviousCodeOnField()==19899073 or c:GetPreviousCodeOnField()==55397172) and (c:GetPreviousCodeOnField()==101208092 or c:GetPreviousCodeOnField()==19899073 or c:GetPreviousCodeOnField()==55397172)
end end
function s.tdcon(e,tp,eg,ep,ev,re,r,rp) function s.tdcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler()) return eg:IsExists(s.cfilter,1,nil,tp) and not eg:IsContains(e:GetHandler())
......
...@@ -56,17 +56,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -56,17 +56,14 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
if e:GetLabel()==1 then if e:GetLabel()==1 then
s.operation1(e,tp,eg,ep,ev,re,r,rp) local tc=Duel.GetFirstTarget()
if tc:IsRelateToChain() then
Duel.Destroy(tc,REASON_EFFECT)
end
elseif e:GetLabel()==2 then elseif e:GetLabel()==2 then
aux.RitualUltimateOperation(s.ritual_filter,Card.GetLevel,"Greater",LOCATION_HAND,nil,s.mfilter)(e,tp,eg,ep,ev,re,r,rp) aux.RitualUltimateOperation(s.ritual_filter,Card.GetLevel,"Greater",LOCATION_HAND,nil,s.mfilter)(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.operation1(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT)
end
end
function s.mfilter(c) function s.mfilter(c)
return c:IsLocation(LOCATION_MZONE) return c:IsLocation(LOCATION_MZONE)
end end
......
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