Commit e9802fd5 authored by Tachibana's avatar Tachibana

sign out

parent 88418f56
Pipeline #2996 canceled with stages
in 1 minute and 22 seconds
No preview for this file type
......@@ -71,7 +71,7 @@ function cm.efilter(e,te)
return te:GetOwner()~=e:GetOwner()
end
function cm.rthcfilter(c)
local cp=c:GetHandlerPlayer()
local cp=e:GetHandlerPlayer()
return c:IsFaceup() and c:IsType(TYPE_MONSTER) and c:IsAbleToHandAsCost() and Duel.GetMZoneCount(tp,c,cp)>0
e:SetLabel(cp)
end
......
......@@ -31,7 +31,7 @@ function cm.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_GRAVE)
e2;SetCondition(cm.thcon)
e2:SetCondition(cm.thcon)
e2:SetCountLimit(1,m)
e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop)
......
......@@ -32,7 +32,6 @@ function cm.initial_effect(c)
e2:SetCode(EVENT_PHASE+PHASE_END)
e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,m)
e2:SetCondition(cm.thcon)
e2:SetTarget(cm.thtg)
e2:SetOperation(cm.thop)
c:RegisterEffect(e2)
......
......@@ -71,7 +71,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(cm.spfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,ft,nil,e,tp)
if g:GetCount()>0 then
while tc in aux.Next(g) do
for tc in aux.Next(g) do
if Duel.SpecialSummonStep(tc,0,tp,tp,false,false,POS_FACEUP) then
tc:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD,0,1)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL)
e1:SetCode(EVENT_LEAVE_FIELD)
e3:SetCountLimit(1,m+100)
e1:SetCountLimit(1,m+100)
e1:SetCondition(cm.tgcon)
e1:SetTarget(cm.tgtg)
e1:SetOperation(cm.tgop)
......
......@@ -83,7 +83,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
local c=e:GetHandler()
if tc:IsRelateToEffect(e) and c:IsRelateToEffect(e) and c:IsFaceup() then
if not Duel.Equip(tp,tc,c,false) then return end
if Duel.Equip(tp,tc,c,false) then
--Add Equip limit
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......
......@@ -23,7 +23,7 @@ function cm.initial_effect(c)
e2:SetCountLimit(1,m)
e2:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return true)
return true
end)
e2:SetOperation(function(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -14,7 +14,6 @@ function cm.initial_effect(c)
e1:SetTarget(cm.target)
e1:SetOperation(cm.operation)
c:RegisterEffect(e1)
end
function cm.cfilter(c)
return c:IsFaceup() and Duel.IsExistingMatchingCard(cm.filter,0,LOCATION_MZONE,0,2,c,c:GetCode())
......@@ -22,6 +21,9 @@ end
function cm.filter(c,code)
return c:IsFaceup() and c:IsCode(code)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_MZONE,0,1,nil,tp)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(cm.cfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
......@@ -29,7 +29,7 @@ function cm.initial_effect(c)
local ge2=ge1:Clone()
ge2:SetCode(EVENT_TOSS_DICE)
ge2:SetOperation(cm.diceop)
Duel.RegisterEffect(ge2)
Duel.RegisterEffect(ge2,0)
local ge3=Effect.CreateEffect(c)
ge3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge3:SetCode(EVENT_PHASE_START+PHASE_DRAW)
......
......@@ -95,7 +95,7 @@ function cm.spfilter(c,e,tp)
end
function cm.op2(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.spfilter,tp,LOCATION_EXTRA+LOCATION_DECK,0,nil,e,tp)
if g:GetCount()>0 Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=g:Select(tp,1,1,nil)
if g:GetCount()>0 then
......
......@@ -61,7 +61,7 @@ end
function cm.tgcon(e,tp,eg,ep,ev,re,r,rp)
local t=Duel.GetAttackTarget()
local c=e:GetHandler()
return Duel.GetAttacker()==c and t~=nil and t:GetAttack()<c:GetAttack() and
return Duel.GetAttacker()==c and t~=nil and t:GetAttack()<c:GetAttack()
end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local t=Duel.GetFirstTarget()
......
......@@ -60,7 +60,6 @@ function cm.drop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
tc=g:GetNext()
end
end
end
end
......
......@@ -124,7 +124,7 @@ function cm.dselect1(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoDeck(rg,nil,2,REASON_RULE)
end
e:GetLabelObject():DeleteGroup()
else op=1 then
elseif op=1 then
Duel.Recover(tp,5000,REASON_EFFECT)
end
end
......@@ -51,7 +51,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,0,:GetHandler())
local sg=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,0,e:GetHandler())
Duel.SendtoGrave(sg,REASON_EFFECT)
end
function cm.splimit(e,c)
......
......@@ -151,7 +151,7 @@ function cm.atop(e,tp,eg,ep,ev,re,r,rp)
if not ex then return end
if cp~=PLAYER_ALL then
if Duel.IsPlayerAffectedByEffect(cp,EFFECT_REVERSE_DAMAGE) then v=v+ev1 end
elseif Duel.IsPlayerAffectedByEffect(0,EFFECT_REVERSE_DAMAGE) or Duel.IsPlayerAffectedByEffect(1,EFFECT_REVERSE_DAMAGE) then v+ev1 end
elseif Duel.IsPlayerAffectedByEffect(0,EFFECT_REVERSE_DAMAGE) or Duel.IsPlayerAffectedByEffect(1,EFFECT_REVERSE_DAMAGE) then v=v+ev1 end
end
local g=Group.CreateGroup()
Duel.ChangeTargetCard(ev,g)
......
......@@ -109,7 +109,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.cfilter(c,tp,code)
return c:IsControler(tp) and not c:IsCode(code) and
return c:IsControler(tp) and not c:IsCode(code)
end
function cm.drcon1(e,tp,eg,ep,ev,re,r,rp)
local code=0
......
......@@ -51,7 +51,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local sc=sg:GetFirst()
if sc and Duel.SpecialSummon(sg,0,tp,tp,false,false,POS_FACEUP)>0 then
local op=Duel.SelectOption(tp,aux.Stringid(m,0),aux.Stringid(m,1))
if op=0 then
if op==0 then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
......
......@@ -80,7 +80,7 @@ end
function cm.spfilter(c,sc)
return c:IsCanBeLinkMaterial(sc) and c:IsAbleToRemoveAsCost()
end
function cm.spcon(e,c)
function cm.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
if Duel.GetLocationCountFromEx(tp,tp,nil,c)<=0 then return false end
......
......@@ -15,7 +15,7 @@ function cm.initial_effect(c)
e2:SetOperation(cm.condition)
e2:SetOperation(cm.operation)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(e:GetHandler())
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EFFECT_DESTROY_REPLACE)
e3:SetTarget(cm.reptg)
......
......@@ -68,7 +68,7 @@ function cm.actconb(e)
end
function cm.actlimit(e,re,tp)
if re:GetHandler() then return re:GetHandler()~=e:GetHandler()
else return re:GetOwner()~=e:GetHandler()
else return re:GetOwner()~=e:GetHandler() end
end
function cm.ctcon(e,tp,eg,ep,ev,re,r,rp)
return cm[2]>0 and cm[3]>0
......
......@@ -75,7 +75,7 @@ function cm.damop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.damcon1(e,tp,eg,ep,ev,re,r,rp)
return re=e:GetLabelObject() and e:GetHandlerPlayer()~=tp
return re==e:GetLabelObject() and e:GetHandlerPlayer()~=tp
end
function cm.damcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -87,5 +87,6 @@ function cm.damop1(e,tp,eg,ep,ev,re,r,rp)
end
end
end
end
end
end
--赤月礼赞·鹿沼叶子
local m=33701425
local m=33701426
local cm=_G["c"..m]
function cm.initial_effect(c)
--special summon
......
......@@ -96,7 +96,7 @@ function cm.tgcon1(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil
end
function cm.cfilter(c)
return c:IsSetCard(33701424) c:IsAbleToDeckAsCost()
return c:IsSetCard(33701424) and c:IsAbleToDeckAsCost()
end
function cm.tgcost1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.cfilter,tp,LOCATION_GRAVE,0,1,nil) end
......
......@@ -80,5 +80,6 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
elseif op==2 then
Duel.SendtoGrave(tc,REASON_EFFECT)
end
end
end
end
......@@ -28,7 +28,7 @@ function cm.tgfilter(c)
end
function cm.recop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(cm.tgfilter,tp,LOCATION_HAND,0,e:GetHandler())
if g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0) then
if g>0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g1=g:Select(tp,1,1,nil)
Duel.SendtoGrave(g1,REASON_EFFECT)
......
......@@ -167,6 +167,7 @@ function c9300324.nameop(e,tp,eg,ep,ev,re,r,rp)
e2:SetTarget(c9300324.splimit)
e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp)
end
end
function c9300324.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x1f99) and c:IsLocation(LOCATION_EXTRA)
......
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