Commit dd196eb7 authored by Tachibana's avatar Tachibana

eme

parent ce3d3578
Pipeline #8292 passed with stages
in 22 minutes and 24 seconds
No preview for this file type
......@@ -38,5 +38,6 @@ function c33200505.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c33200505.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
\ No newline at end of file
......@@ -41,6 +41,7 @@ function c33200514.thop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c33200514.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
......@@ -70,7 +71,7 @@ function c33200514.eqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c33200514.eqlimit)
tc:RegisterEffect(e1)
local fid=e:GetHandler():GetFieldID()
tc:RegisterFlagEffect(33200515,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1,fid)
tc:RegisterFlagEffect(33200515,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,2,fid)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
......@@ -88,9 +89,9 @@ function c33200514.eqop(e,tp,eg,ep,ev,re,r,rp)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EFFECT_CHANGE_CODE)
e3:SetValue(code)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
c:RegisterEffect(e3)
local cid2=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD,1)
local cid2=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,2)
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetCode(EVENT_ADJUST)
......@@ -141,7 +142,7 @@ end
--ef
function c33200514.rstfilter(c)
return c:GetFlagEffect(33200515)>=1
return c:GetFlagEffect(33200514)>=1
end
function c33200514.rstop(e,tp,eg,ep,ev,re,r,rp)
local eg=e:GetHandler():GetEquipGroup()
......@@ -155,6 +156,7 @@ function c33200514.rstop(e,tp,eg,ep,ev,re,r,rp)
end
local e3=e:GetLabelObject()
e3:Reset()
e:Reset()
end
--Destroy
......
......@@ -56,7 +56,7 @@ function c65020050.reacon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c65020050.reafil,1,nil,tp)
end
function c65020050.reatg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFieldGroup(tp,0,1):IsExists(c65020050.abletoremove,1,nil) end
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,0)
end
function c65020050.abletoremove(c)
......
......@@ -24,7 +24,15 @@ function c65020052.tdfil(c)
return c:IsFacedown() and c:IsAbleToDeck()
end
function c65020052.tdtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c65020052.tdfil,tp,LOCATION_REMOVED,0,1,nil) end
local g=Duel.GetMatchingGroup(c65020052.setfil,tp,LOCATION_MZONE,0,nil)
local num=0
local tc=g:GetFirst()
while tc do
local lv=tc:GetLevel()
num=num+lv
tc=g:GetNext()
end
if chk==0 then return Duel.IsExistingMatchingCard(c65020052.tdfil,tp,LOCATION_REMOVED,0,1,nil) and num>0 end
Duel.SetOperationInfo(0,CATEGORY_TODECK,nil,1,tp,LOCATION_REMOVED)
end
function c65020052.setfil(c)
......
......@@ -75,16 +75,16 @@ end
function cm.reop(e,tp,eg,ep,ev,re,r,rp)
local tt=Duel.GetFlagEffect(tp,m)
local tt1=(Duel.GetFlagEffect(tp,m+100)+1)*4
local tt1=(Duel.GetFlagEffect(tp,m+100)+1)*7
if tt<tt1 then
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1000)
Duel.Recover(tp,1000,REASON_EFFECT)
Duel.SetTargetParam(700)
Duel.Recover(tp,700,REASON_EFFECT)
Duel.RegisterFlagEffect(tp,m,nil,0,1)
elseif Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1000)
Duel.Recover(tp,1000,REASON_EFFECT)
Duel.SetTargetParam(700)
Duel.Recover(tp,700,REASON_EFFECT)
Duel.SetTargetPlayer(tp)
Duel.SetTargetParam(1)
Duel.Draw(tp,1,REASON_EFFECT)
......
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