Commit 59ea1f8b authored by Tachibana's avatar Tachibana

eme

parent b99e8501
Pipeline #6428 failed with stages
in 1 minute and 12 seconds
No preview for this file type
...@@ -205,21 +205,21 @@ function XY.mayuribfcon(e) ...@@ -205,21 +205,21 @@ function XY.mayuribfcon(e)
end end
function XY.mayuriregop(e,tp,eg,ep,ev,re,r,rp) function XY.mayuriregop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
c:RegisterFlagEffect(c:GetCode(),RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,nil,0,aux.Stringid(33401601,0)) c:RegisterFlagEffect(c:GetCode(),RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,0,0,aux.Stringid(33401601,0))
end end
function XY.mayuriregcon(e,tp,eg,ep,ev,re,r,rp) function XY.mayuriregcon(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler()==e:GetHandler() return re:GetHandler()==e:GetHandler()
end end
function XY.mayuriregop1(e,tp,eg,ep,ev,re,r,rp) function XY.mayuriregop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
c:RegisterFlagEffect(c:GetCode(),RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,nil,0,aux.Stringid(33401601,0)) c:RegisterFlagEffect(c:GetCode(),RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,0,0,aux.Stringid(33401601,0))
end end
function XY.mayuriregop2(e,tp,eg,ep,ev,re,r,rp) function XY.mayuriregop2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local fs=c:GetFlagEffect(c:GetCode()) local fs=c:GetFlagEffect(c:GetCode())
c:ResetFlagEffect(c:GetCode()) c:ResetFlagEffect(c:GetCode())
for i=1,fs-1 do for i=1,fs-1 do
c:RegisterFlagEffect(c:GetCode(),RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,nil,0,aux.Stringid(33401601,0)) c:RegisterFlagEffect(c:GetCode(),RESET_EVENT+0x1fe0000,EFFECT_FLAG_CLIENT_HINT,0,0,aux.Stringid(33401601,0))
end end
end end
--sp --sp
...@@ -765,7 +765,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp) ...@@ -765,7 +765,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp)
Duel.SelectYesNo(tp,aux.Stringid(cd,2)) then Duel.SelectYesNo(tp,aux.Stringid(cd,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler()) local g1=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_HAND+LOCATION_ONFIELD,0,1,1,e:GetHandler())
if Duel.SendtoGrave(g1,REASON_EFFECT)~=0 then if Duel.SendtoGrave(g1,REASON_EFFECT)~=0 then
Duel.Hint(HINT_MESSAGE,1-tp,aux.Stringid(cd,3)) Duel.Hint(HINT_MESSAGE,1-tp,aux.Stringid(cd,3))
local e0=Effect.CreateEffect(e:GetHandler()) local e0=Effect.CreateEffect(e:GetHandler())
e0:SetType(EFFECT_TYPE_FIELD) e0:SetType(EFFECT_TYPE_FIELD)
...@@ -1000,7 +1000,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp) ...@@ -1000,7 +1000,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.SortDecktop(tp,1-tp,3) Duel.SortDecktop(tp,1-tp,3)
else Duel.SortDecktop(tp,1-tp,4) else Duel.SortDecktop(tp,1-tp,4)
end end
if Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and if Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and
Duel.SelectYesNo(tp,aux.Stringid(cd,2)) then Duel.SelectYesNo(tp,aux.Stringid(cd,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
...@@ -1265,7 +1265,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp) ...@@ -1265,7 +1265,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp)
local e5=e4:Clone() local e5=e4:Clone()
e5:SetCode(EFFECT_SET_DEFENSE_FINAL) e5:SetCode(EFFECT_SET_DEFENSE_FINAL)
tc:RegisterEffect(e5) tc:RegisterEffect(e5)
end end
if Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(XY.maganethfilter7,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and if Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(XY.maganethfilter7,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) and
Duel.SelectYesNo(tp,aux.Stringid(ac,2)) then Duel.SelectYesNo(tp,aux.Stringid(ac,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
...@@ -1339,7 +1339,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp) ...@@ -1339,7 +1339,7 @@ function XY.maganechop(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.SortDecktop(tp,1-tp,3) Duel.SortDecktop(tp,1-tp,3)
else Duel.SortDecktop(tp,1-tp,4) else Duel.SortDecktop(tp,1-tp,4)
end end
if Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and if Duel.IsExistingMatchingCard(Card.IsAbleToGrave,tp,LOCATION_ONFIELD+LOCATION_HAND,0,1,e:GetHandler()) and Duel.IsExistingMatchingCard(Card.IsAbleToHand,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,e:GetHandler()) and
Duel.SelectYesNo(tp,aux.Stringid(ac,2)) then Duel.SelectYesNo(tp,aux.Stringid(ac,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
...@@ -34,7 +34,7 @@ function cm.initial_effect(c) ...@@ -34,7 +34,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e6) c:RegisterEffect(e6)
end end
function cm.ckfilter2(c,at) function cm.ckfilter2(c,at)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAttribute(at) return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:GetAttribute()&at~=0
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
......
...@@ -33,7 +33,7 @@ function cm.intg(e,c) ...@@ -33,7 +33,7 @@ function cm.intg(e,c)
end end
function cm.refilter(c) function cm.refilter(c)
return c:IsAbleToRemove() and c:IsSetCard(0x6344) and c:IsType(TYPE_MONSTER) and c:IsFaceup() return c:IsAbleToRemove() and c:IsSetCard(0x6344) and c:IsType(TYPE_MONSTER)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingMatchingCard(cm.refilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(cm.refilter,tp,LOCATION_MZONE+LOCATION_HAND,0,1,nil) end
...@@ -47,7 +47,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +47,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 then if Duel.Remove(g,POS_FACEUP,REASON_EFFECT)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,1,nil,e,tp)
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
end end
local c=e:GetHandler() local c=e:GetHandler()
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -73,7 +73,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +73,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCountLimit(1) e2:SetCountLimit(1)
e2:SetTarget(cm.sptg3) e2:SetTarget(cm.sptg3)
e2:SetOperation(cm.spop3) e2:SetOperation(cm.spop3)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function cm.spcon2(e,tp,eg,ep,ev,re,r,rp) function cm.spcon2(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()~=e:GetLabel() and Duel.GetFlagEffect(tp,m)>Duel.GetFlagEffect(tp,m+1) return Duel.GetTurnCount()~=e:GetLabel() and Duel.GetFlagEffect(tp,m)>Duel.GetFlagEffect(tp,m+1)
......
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