Skip to content

Commit

Permalink
"Rise-Rank-Up-Magic Raidraptor's Force" fix
Browse files Browse the repository at this point in the history
Fixed a bug where it would not treat the monster as properly Xyz summoned
  • Loading branch information
NaimSantos committed Nov 30, 2023
1 parent 5c69c1b commit 3b5c577
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions official/c38044854.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ function s.initial_effect(c)
e1:SetCondition(function(e,tp) return Duel.IsMainPhase() or (Duel.IsTurnPlayer(1-tp) and Duel.IsBattlePhase()) end)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
c:RegisterEffect(e1)
c:RegisterEffect(e1)
end
s.listed_series={SET_RAIDRAPTOR}
function s.tgfilter(c,tp)
Expand Down Expand Up @@ -46,8 +46,9 @@ function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=Duel.SelectMatchingCard(tp,s.spfilter,tp,LOCATION_EXTRA,0,1,1,nil,e,tp,tg:GetSum(Card.GetRank)):GetFirst()
if sc and Duel.SpecialSummon(sc,SUMMON_TYPE_XYZ,tp,tp,false,false,POS_FACEUP)>0 then
sc:CompleteProcedure()
tg=tg:Match(aux.NOT(Card.IsImmuneToEffect),nil,e)
if #tg==0 then return end
Duel.Overlay(sc,tg)
end
end
end

0 comments on commit 3b5c577

Please sign in to comment.