Commit e14a151b authored by POLYMER's avatar POLYMER

fix

parent dd7e0afd
......@@ -71,13 +71,14 @@ function c28315443.lvfilter(c,lv)
return c:IsRace(RACE_FAIRY) and c:IsFaceup() and not c:IsLevel(lv) and c:IsLevelAbove(1)
end
function c28315443.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c28315443.lvfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetLevel()) end
if chk==0 then return Duel.IsExistingMatchingCard(c28315443.lvfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetLevel()) and e:GetHandler():IsLevelAbove(1) end
end
function c28315443.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectTarget(tp,c28315443.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,c:GetLevel()):GetFirst()
local tc=Duel.SelectMatchingCard(tp,c28315443.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,c:GetLevel()):GetFirst()
if not tc then return end
Duel.HintSelection(Group.FromCards(tc))
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
......@@ -86,6 +87,7 @@ function c28315443.lvop(e,tp,eg,ep,ev,re,r,rp)
e0:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e0)
if Duel.SelectYesNo(tp,aux.Stringid(28315443,2)) then
Duel.BreakEffect()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
......
......@@ -72,13 +72,14 @@ function c28315548.lvfilter(c,lv)
return c:IsRace(RACE_FAIRY) and c:IsFaceup() and not c:IsLevel(lv) and c:IsLevelAbove(1)
end
function c28315548.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c28315548.lvfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetLevel()) end
if chk==0 then return Duel.IsExistingMatchingCard(c28315548.lvfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetLevel()) and e:GetHandler():IsLevelAbove(1) end
end
function c28315548.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectTarget(tp,c28315548.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,c:GetLevel()):GetFirst()
local tc=Duel.SelectMatchingCard(tp,c28315548.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,c:GetLevel()):GetFirst()
if not tc then return end
Duel.HintSelection(Group.FromCards(tc))
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
......@@ -87,6 +88,7 @@ function c28315548.lvop(e,tp,eg,ep,ev,re,r,rp)
e0:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e0)
if Duel.SelectYesNo(tp,aux.Stringid(28315548,2)) then
Duel.BreakEffect()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
......
......@@ -70,14 +70,15 @@ end
function c28315746.lvfilter(c,lv)
return c:IsRace(RACE_FAIRY) and c:IsFaceup() and not c:IsLevel(lv) and c:IsLevelAbove(1)
end
function c28315746.lvtg(e,tp,eg,ep,ev,re,r,rp,chk,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c28315746.lvfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetLevel()) end
function c28315746.lvtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c28315746.lvfilter,tp,LOCATION_MZONE,0,1,nil,e:GetHandler():GetLevel()) and e:GetHandler():IsLevelAbove(1) end
end
function c28315746.lvop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) or c:IsFacedown() then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local tc=Duel.SelectTarget(tp,c28315746.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,c:GetLevel()):GetFirst()
local tc=Duel.SelectMatchingCard(tp,c28315746.lvfilter,tp,LOCATION_MZONE,0,1,1,nil,c:GetLevel()):GetFirst()
if not tc then return end
Duel.HintSelection(Group.FromCards(tc))
local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_SINGLE)
......@@ -86,6 +87,7 @@ function c28315746.lvop(e,tp,eg,ep,ev,re,r,rp)
e0:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_DISABLE)
c:RegisterEffect(e0)
if Duel.SelectYesNo(tp,aux.Stringid(28315746,2)) then
Duel.BreakEffect()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_LEVEL)
......
......@@ -2,34 +2,12 @@ local m=31400022
local cm=_G["c"..m]
cm.name="娱乐伙伴 异色眼时空之灵摆魔术师"
function cm.initial_effect(c)
if not Auxiliary.PendulumChecklist then
Auxiliary.PendulumChecklist=0
local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_PHASE_START+PHASE_DRAW)
ge1:SetOperation(Auxiliary.PendulumReset)
Duel.RegisterEffect(ge1,0)
end
local e1=Effect.CreateEffect(c)
e1:SetDescription(1163)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_SPSUMMON_PROC_G)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_PZONE)
e1:SetCondition(Auxiliary.PendCondition())
e1:SetOperation(Auxiliary.PendOperation())
e1:SetValue(SUMMON_TYPE_PENDULUM)
c:RegisterEffect(e1)
--register by default
local e2=Effect.CreateEffect(c)
e2:SetDescription(1160)
e2:SetType(EFFECT_TYPE_ACTIVATE)
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_HAND)
e2:SetCost(function(e,tp,eg,ep,ev,re,r,rp)
Auxiliary.EnablePendulumAttribute(c)
c:GetActivateEffect():SetCost(function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
local c=e:GetHandler()
c:RegisterFlagEffect(m,RESET_EVENT+RESETS_STANDARD-RESET_TURN_SET+RESET_PHASE+PHASE_END,0,1) end)
c:RegisterEffect(e2)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
......
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