Commit 2786dbc7 authored by Nemo Ma's avatar Nemo Ma

fix

parent 11c21dc8
No preview for this file type
--翱翔之折纸使
function c9910001.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--battle indes
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetCondition(c9910001.condtion)
e1:SetValue(1)
c:RegisterEffect(e1)
--immune
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c9910001.condtion)
e2:SetValue(c9910001.efilter)
c:RegisterEffect(e2)
--to hand
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(9910001,0))
e3:SetCategory(CATEGORY_TOHAND)
e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetRange(LOCATION_MZONE)
e3:SetCountLimit(1,9910001)
e3:SetCode(EVENT_FREE_CHAIN)
e3:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e3:SetCondition(c9910001.thcon)
e3:SetOperation(c9910001.thop)
c:RegisterEffect(e3)
end
function c9910001.mfilter(c)
return not c:IsType(TYPE_PENDULUM)
end
function c9910001.condtion(e)
local c=e:GetHandler()
local mg=c:GetMaterial()
return c:IsSummonType(SUMMON_TYPE_SYNCHRO) and mg:GetCount()>0 and not mg:IsExists(c9910001.mfilter,1,nil)
end
function c9910001.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer() and te:IsActiveType(TYPE_MONSTER)
end
function c9910001.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO)
and Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_CONTROL)>0
end
function c9910001.thfilter(c,g)
return c:IsAbleToHand() and g:IsContains(c)
end
function c9910001.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsControler(1-tp) or c:IsImmuneToEffect(e) or Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
local s=Duel.SelectDisableField(tp,1,LOCATION_MZONE,0,0)
local nseq=math.log(s,2)
Duel.MoveSequence(c,nseq)
local tg=c:GetColumnGroup()
tg:AddCard(c)
local g=Duel.GetMatchingGroup(c9910001.thfilter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,tg)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(9910001,1)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local sg=g:Select(tp,1,1,nil)
Duel.BreakEffect()
Duel.SendtoHand(sg,nil,REASON_EFFECT)
end
end
......@@ -33,13 +33,13 @@ function c9980700.initial_effect(c)
e2:SetOperation(c9980700.seqop)
c:RegisterEffect(e2)
end
function c9980700.filter(c)
function c9980700.filter2(c)
return c:IsFaceup() and c:IsSetCard(0xbc8) and c:GetCode()~=9980700
end
function c9980700.spcon(e,c)
if c==nil then return true end
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0 and
Duel.IsExistingMatchingCard(c9980700.filter,c:GetControler(),LOCATION_MZONE,0,1,nil)
Duel.IsExistingMatchingCard(c9980700.filter2,c:GetControler(),LOCATION_MZONE,0,1,nil)
end
function c9980700.condition(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp
......
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