Commit 26351e86 authored by 想象力很好的毛虫's avatar 想象力很好的毛虫 Committed by GitHub

Fix RR-ライジング・リベリオン・ファルコン (#2565)

parent 17a1416f
...@@ -56,9 +56,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -56,9 +56,14 @@ function s.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local atk=g:GetSum(s.damval1) local atk=g:GetSum(s.damval1)
if atk>0 then Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0) end if atk>0 then Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,0) end
end end
function s.xfilter(c)
return c:IsType(TYPE_XYZ) and c:IsSetCard(0xba)
end
function s.desop(e,tp,eg,ep,ev,re,r,rp) function s.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
if Duel.Destroy(g,REASON_EFFECT)>0 and e:GetHandler():GetOverlayGroup():Filter(Card.IsType,nil,TYPE_XYZ):GetClassCount(Card.GetCode)>=3 then if Duel.Destroy(g,REASON_EFFECT)>0 and c:IsRelateToEffect(e)
and c:GetOverlayGroup():Filter(s.xfilter,nil):GetClassCount(Card.GetCode)>=3 then
local dg=Duel.GetOperatedGroup() local dg=Duel.GetOperatedGroup()
local atk=dg:GetSum(s.damval2) local atk=dg:GetSum(s.damval2)
if atk>0 then if atk>0 then
...@@ -68,7 +73,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +73,7 @@ function s.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.filter(c) function s.filter(c)
return c:IsSetCard(0xba) and c:IsType(TYPE_MONSTER) and c:IsType(TYPE_XYZ) and not c:IsForbidden() return c:IsSetCard(0xba) and c:IsType(TYPE_MONSTER) and c:IsType(TYPE_XYZ)
end end
function s.copycost(e,tp,eg,ep,ev,re,r,rp,chk) function s.copycost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -89,4 +94,4 @@ function s.copyop(e,tp,eg,ep,ev,re,r,rp) ...@@ -89,4 +94,4 @@ function s.copyop(e,tp,eg,ep,ev,re,r,rp)
local code=tc:GetOriginalCode() local code=tc:GetOriginalCode()
local cid=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1) local cid=c:CopyEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,1)
end end
end end
\ No newline at end of file
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