Commit 08c1f3d7 authored by Nemo Ma's avatar Nemo Ma

fix

parent ba7a53b1
...@@ -88,11 +88,27 @@ function cm.imop(e,tp,eg,ep,ev,re,r,rp) ...@@ -88,11 +88,27 @@ function cm.imop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_SOLVING) e1:SetCode(EVENT_CHAIN_SOLVING)
e1:SetCondition(cm.flcon)
e1:SetOperation(cm.thop) e1:SetOperation(cm.thop)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
if not Duel.SelectYesNo(1-tp,aux.Stringid(m,2)) then
e1:SetLabel(1)
end
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(0x10000000+m)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetTargetRange(1,0)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e2)
end
function cm.flcon(e)
return Duel.GetFlagEffect(e:GetHandlerPlayer(),m)~=0
end end
function cm.thop(e,tp,eg,ep,ev,re,r,rp) function cm.thop(e,tp,eg,ep,ev,re,r,rp)
if rp==1-tp and e:GetLabel()==1 then return end
local g=Duel.GetMatchingGroup(Card.IsAbleToHand,rp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(Card.IsAbleToHand,rp,LOCATION_DECK,0,nil)
if #g>0 then--and Duel.SelectYesNo(rp,aux.Stringid(m,1)) then if #g>0 then--and Duel.SelectYesNo(rp,aux.Stringid(m,1)) then
Duel.Hint(HINT_SELECTMSG,rp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,rp,HINTMSG_ATOHAND)
......
--闪光魔术栗子球 --闪光魔术栗子球
--21.08.25 --21.08.25
local m=11451623 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--tohand --tohand
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -59,11 +58,23 @@ function cm.imop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,11 +58,23 @@ function cm.imop(e,tp,eg,ep,ev,re,r,rp)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_IMMUNE_EFFECT) e1:SetCode(EFFECT_IMMUNE_EFFECT)
e1:SetTargetRange(LOCATION_MZONE,0) e1:SetTargetRange(LOCATION_MZONE,0)
e1:SetCondition(cm.flcon)
e1:SetTarget(cm.imlimit) e1:SetTarget(cm.imlimit)
e1:SetValue(cm.efilter) e1:SetValue(cm.efilter)
e1:SetOwnerPlayer(tp) e1:SetOwnerPlayer(tp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(0x10000000+m)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_GRAVE)
e2:SetTargetRange(1,0)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
e:GetHandler():RegisterEffect(e2)
end
function cm.flcon(e)
return Duel.GetFlagEffect(e:GetHandlerPlayer(),m)~=0
end end
function cm.imlimit(e,c) function cm.imlimit(e,c)
return c:IsFaceup() and c:IsSetCard(0xa4) return c:IsFaceup() and c:IsSetCard(0xa4)
......
...@@ -22,7 +22,7 @@ function c11560707.initial_effect(c) ...@@ -22,7 +22,7 @@ function c11560707.initial_effect(c)
--to deck --to deck
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TODECK) e1:SetCategory(CATEGORY_TODECK)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_SPSUMMON_SUCCESS) e1:SetCode(EVENT_SPSUMMON_SUCCESS)
e1:SetProperty(EFFECT_FLAG_DELAY) e1:SetProperty(EFFECT_FLAG_DELAY)
e1:SetCountLimit(1,11560707) e1:SetCountLimit(1,11560707)
......
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