Commit a29368bf authored by nanahira's avatar nanahira

fixes

parent e9f58d84
......@@ -4,6 +4,7 @@ function c13254078.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c13254078.pccon)
e1:SetTarget(c13254078.pctg)
e1:SetOperation(c13254078.pcop)
c:RegisterEffect(e1)
......@@ -18,6 +19,9 @@ function c13254078.initial_effect(c)
c:RegisterEffect(e2)
end
function c13254078.pccon(e,tp,eg,ep,ev,re,r,rp)
return not Duel.GetFieldCard(tp,LOCATION_PZONE,0) and not Duel.GetFieldCard(tp,LOCATION_PZONE,1)
end
function c13254078.pcfilter(c)
return c:IsType(TYPE_PENDULUM) and c:IsSetCard(0x5356) and not c:IsForbidden() and c:IsLevelBelow(2)
end
......
......@@ -29,11 +29,16 @@ function c13257326.filter(c)
local eflist=mt[c]
local i=1
while eflist[i] do
if eflist[i]=="power_capsule" then i=i+1 break end
--if eflist[i]=="power_capsule" then i=i+1 break end
if eflist[i]=="power_capsule" then
--i=i+1
--local PCe=eflist[i]
--return PCe
return true
end
i=i+1
end
local PCe=eflist[i]
return PCe -- and PCe:IsActivatable(PCe:GetOwnerPlayer())
return false -- and PCe:IsActivatable(PCe:GetOwnerPlayer())
end
function c13257326.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and c13257326.filter(chkc) end
......@@ -51,22 +56,24 @@ function c13257326.activate(e,tp,eg,ep,ev,re,r,rp)
local eflist=mt[tc]
local i=1
while eflist[i] do
if eflist[i]=="power_capsule" then i=i+1 break end
if eflist[i]=="power_capsule" then i=i+1
if eflist[i] then
local PCe=eflist[i]
local cost=PCe:GetCost()
local target=PCe:GetTarget()
local operation=PCe:GetOperation()
Duel.ClearTargetCard()
e:SetProperty(PCe:GetProperty())
tc:CreateEffectRelation(PCe)
if cost then cost(PCe,tep,eg,ep,ev,re,r,rp,1) end
if target then target(PCe,tep,eg,ep,ev,re,r,rp,1) end
if operation then operation(PCe,tep,eg,ep,ev,re,r,rp) end
tc:ReleaseEffectRelation(PCe)
end
return
end
i=i+1
end
if eflist[i] then
local PCe=eflist[i]
local cost=PCe:GetCost()
local target=PCe:GetTarget()
local operation=PCe:GetOperation()
Duel.ClearTargetCard()
e:SetProperty(PCe:GetProperty())
tc:CreateEffectRelation(PCe)
if cost then cost(PCe,tep,eg,ep,ev,re,r,rp,1) end
if target then target(PCe,tep,eg,ep,ev,re,r,rp,1) end
if operation then operation(PCe,tep,eg,ep,ev,re,r,rp) end
tc:ReleaseEffectRelation(PCe)
end
end
end
end
......
......@@ -47,13 +47,13 @@ function c9980200.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_EXTRA)
end
function c9980200.mfilter(c)
return c:IsCode(9980205) or c:IsCode(9980206) or c:IsCode(9980207)or c:IsCode(9980208)
return c:IsCode(9980205,9980206,9980207,9980208)
end
function c9980200.activate(e,tp,eg,ep,ev,re,r,rp)
local mg=Duel.GetRitualMaterial(tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local tg=Duel.SelectMatchingCard(tp,c9980200.filter,tp,LOCATION_HAND,0,1,1,nil,e,tp,mg,ft)
local tg=Duel.SelectMatchingCard(tp,c9980200.filter,tp,LOCATION_HAND+LOCATION_GRAVE+LOCATION_EXTRA,0,1,1,nil,e,tp,mg,ft)
local tc=tg:GetFirst()
if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
......
......@@ -56,7 +56,7 @@ function c9980205.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(9980205,0))
e1:SetCategory(CATEGORY_REMOVE)
e1:SetType(EFFECT_TYPE_TRIGGER_O)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_MZONE)
......
......@@ -52,10 +52,10 @@ function c9980207.initial_effect(c)
e2:SetCode(EVENT_SPSUMMON)
e2:SetRange(LOCATION_MZONE)
e2:SetCountLimit(1)
e2:SetCondition(c9980207.discon)
e2:SetCost(c9980207.discost)
e2:SetTarget(c9980207.distg)
e2:SetOperation(c9980207.disop)
e2:SetCondition(c9980207.discon3)
e2:SetCost(c9980207.discost3)
e2:SetTarget(c9980207.distg3)
e2:SetOperation(c9980207.disop3)
c:RegisterEffect(e2)
end
function c9980207.filter(c,e,tp,m1,m2,ft)
......@@ -166,24 +166,24 @@ function c9980207.desop2(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(g,REASON_EFFECT)
end
end
function c9980207.discon(e,tp,eg,ep,ev,re,r,rp)
function c9980207.discon3(e,tp,eg,ep,ev,re,r,rp)
return tp~=ep and Duel.GetCurrentChain()==0
end
function c9980207.disfilter(c)
return c:IsFaceup() and c:IsSetCard(0xbc8) and c:IsAbleToHandAsCost()
end
function c9980207.discost(e,tp,eg,ep,ev,re,r,rp,chk)
function c9980207.discost3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c9980207.disfilter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,c9980207.disfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SendtoHand(g,nil,REASON_COST)
end
function c9980207.distg(e,tp,eg,ep,ev,re,r,rp,chk)
function c9980207.distg3(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DISABLE_SUMMON,eg,eg:GetCount(),0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,eg,eg:GetCount(),0,0)
end
function c9980207.disop(e,tp,eg,ep,ev,re,r,rp)
function c9980207.disop3(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateSummon(eg)
Duel.Remove(eg,POS_FACEUP,REASON_EFFECT)
end
\ No newline at end of file
--美丽的守护女神next·翠绿之心next
function c9980208.initial_effect(c)
--pendulum summon
aux.EnablePendulumAttribute(c)
c:EnableReviveLimit()
--Activate
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(9980208,2))
......
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