Commit 6496a94e authored by zengsxing's avatar zengsxing Committed by GitHub

fix Rise Rank-Up-Magic Raidraptor's Force (#2949)

parent fe5d3a8d
......@@ -36,6 +36,9 @@ function s.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.SetOperationInfo(0,CATEGORY_LEAVE_GRAVE,sg:Filter(Card.IsLocation,nil,LOCATION_GRAVE),1,0,0)
end
function s.ovfilter(c,e)
return c:IsCanOverlay() and not c:IsImmuneToEffect(e)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tg=Duel.GetTargetsRelateToChain()
......@@ -45,7 +48,7 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
local sc=sg:GetFirst()
if sc and Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)~=0 then
sc:CompleteProcedure()
local og=tg:Filter(Card.IsCanOverlay,nil)
local og=tg:Filter(s.ovfilter,nil,e)
for tc in aux.Next(og) do
local mg=tc:GetOverlayGroup()
if mg:GetCount()~=0 then
......
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