Commit 3d41002f authored by mercury233's avatar mercury233 Committed by GitHub

fix Pendulum Encore (#2709)

broken since #2567
parent 77f4e031
...@@ -25,8 +25,7 @@ function c6992184.check(e,tp,exc) ...@@ -25,8 +25,7 @@ function c6992184.check(e,tp,exc)
if lpz==nil then return false end if lpz==nil then return false end
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_HAND+LOCATION_EXTRA,0,exc,TYPE_PENDULUM) local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_HAND+LOCATION_EXTRA,0,exc,TYPE_PENDULUM)
if #g==0 then return false end if #g==0 then return false end
local pcon=aux.PendCondition() return aux.PendCondition(e,lpz,g)
return pcon(e,lpz,g)
end end
function c6992184.cfilter(c,e,tp) function c6992184.cfilter(c,e,tp)
return c:IsDiscardable() and c6992184.check(e,tp,c) return c:IsDiscardable() and c6992184.check(e,tp,c)
...@@ -78,8 +77,7 @@ function c6992184.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,8 +77,7 @@ function c6992184.activate(e,tp,eg,ep,ev,re,r,rp)
if #g==0 then return end if #g==0 then return end
--the summon should be done after the chain end --the summon should be done after the chain end
local sg=Group.CreateGroup() local sg=Group.CreateGroup()
local pop=aux.PendOperation() aux.PendOperation(e,tp,eg,ep,ev,re,r,rp,lpz,sg,g)
pop(e,tp,eg,ep,ev,re,r,rp,lpz,sg,g)
Duel.RaiseEvent(sg,EVENT_SPSUMMON_SUCCESS_G_P,e,REASON_EFFECT,tp,tp,0) Duel.RaiseEvent(sg,EVENT_SPSUMMON_SUCCESS_G_P,e,REASON_EFFECT,tp,tp,0)
Duel.SpecialSummon(sg,SUMMON_TYPE_PENDULUM,tp,tp,true,true,POS_FACEUP) Duel.SpecialSummon(sg,SUMMON_TYPE_PENDULUM,tp,tp,true,true,POS_FACEUP)
end end
......
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