Commit de870136 authored by mercury233's avatar mercury233

fix

parent 141422d4
Pipeline #12016 passed with stages
in 26 seconds
field/101109060.jpg

60.6 KB | W: | H:

field/101109060.jpg

104 KB | W: | H:

field/101109060.jpg
field/101109060.jpg
field/101109060.jpg
field/101109060.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -99,12 +99,12 @@ function c100290044.disop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
tc:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(RESET_TURN_SET)
tc:RegisterEffect(e2)
tc=g:GetNext()
......
......@@ -69,13 +69,13 @@ function c100290045.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2)
bc:RegisterEffect(e2)
local e3=Effect.CreateEffect(e:GetHandler())
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_DISABLE_EFFECT)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e3:SetValue(RESET_TURN_SET)
tc:RegisterEffect(e3)
bc:RegisterEffect(e3)
end
end
function c100290045.acfilter(c,tp)
......
......@@ -45,10 +45,10 @@ function c100427005.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if ft<=0 or c:IsFacedown() or not c:IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(aux.NecroValleyFilter(c100427005.eqfilter),tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,c,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,1,math.min(ft,3))
local tc=sg:GetFirst()
while tc do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.Equip(tp,tc,c,true,true)
tc=sg:GetNext()
end
......@@ -82,15 +82,17 @@ function c100427005.pnop(e,tp,eg,ep,ev,re,r,rp)
if not (tc:IsFaceup() and tc:IsRelateToEffect(e)) then return end
local b1=tc:IsCanChangePosition()
local b2=aux.NegateMonsterFilter(tc)
local op=0
local op=-1
if b1 and b2 then
op=Duel.SelectOption(tp,aux.Stringid(100427005,2),aux.Stringid(100427005,3))
elseif b1 then
op=0
elseif b2 then
op=1
end
if b1 then op=0 end
if b2 then op=1 end
if op==0 then
Duel.ChangePosition(tc,POS_FACEUP_DEFENSE,POS_FACEUP_DEFENSE,POS_FACEUP_ATTACK,POS_FACEUP_ATTACK)
else
elseif op==1 then
if not tc:IsDisabled() and not tc:IsImmuneToEffect(e) then
Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(e:GetHandler())
......
......@@ -46,7 +46,8 @@ function c101109012.filter1(c,e,tp,m,f,chkf)
return res
end
function c101109012.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT)
local ph=Duel.GetCurrentPhase()
return ph~=PHASE_DAMAGE and ph~=PHASE_DAMAGE_CAL and e:GetHandler():IsReason(REASON_EFFECT)
end
function c101109012.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -52,7 +52,8 @@ function c101109013.filter1(c,e,tp,m,f,chkf)
return res
end
function c101109013.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT)
local ph=Duel.GetCurrentPhase()
return ph~=PHASE_DAMAGE and ph~=PHASE_DAMAGE_CAL and e:GetHandler():IsReason(REASON_EFFECT)
end
function c101109013.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -59,7 +59,8 @@ function c101109014.filter1(c,e,tp,m,f,chkf)
return res
end
function c101109014.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsReason(REASON_EFFECT)
local ph=Duel.GetCurrentPhase()
return ph~=PHASE_DAMAGE and ph~=PHASE_DAMAGE_CAL and e:GetHandler():IsReason(REASON_EFFECT)
end
function c101109014.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
--EN ウェーブ
--ENウェーブ
--Script by JSY1728
local s,id,o=GetID()
function s.initial_effect(c)
......@@ -37,7 +37,9 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.dspconfilter(c,tp)
return c:IsSetCard(0x3008) and c:IsPreviousControler(tp) and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED)
return c:IsPreviousControler(tp) and c:IsLocation(LOCATION_GRAVE+LOCATION_REMOVED)
and (c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsPreviousSetCard(0x3008)
or not c:IsPreviousLocation(LOCATION_ONFIELD) and c:IsSetCard(0x3008))
end
function s.dspcon(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_FUSION and eg:IsExists(s.dspconfilter,1,nil,tp)
......
......@@ -25,7 +25,7 @@ function c101109060.initial_effect(c)
e3:SetCategory(CATEGORY_DESTROY)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DELAY)
e3:SetRange(LOCATION_SZONE)
e3:SetRange(LOCATION_FZONE)
e3:SetCountLimit(1,101109060+100)
e3:SetCode(EVENT_TO_DECK)
e3:SetCondition(c101109060.descon)
......@@ -49,9 +49,9 @@ function c101109060.atktg(e,c)
return c:IsType(TYPE_FUSION) or c:IsSetCard(0x284)
end
function c101109060.cfilter(c,tp)
return c:IsPreviousControler(tp) and c:IsSetCard(0x284) and c:IsType(TYPE_MONSTER) and c:IsPreviousSetCard(0x284)
return c:IsPreviousControler(tp) and c:IsSetCard(0x284) and c:IsType(TYPE_MONSTER)
and (c:IsPreviousLocation(LOCATION_GRAVE)
or (c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)))
or (c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousSetCard(0x284)))
end
function c101109060.descon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c101109060.cfilter,1,nil,tp)
......
......@@ -29,7 +29,6 @@ function c101109073.actcfilter(c)
end
function c101109073.condition(e,tp,eg,ep,ev,re,r,rp)
return (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev)
and re:GetHandler():IsAbleToDeck()
and Duel.IsExistingMatchingCard(c101109073.actcfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function c101109073.cfilter(c)
......
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