Commit 79418b32 authored by Tachibana's avatar Tachibana

rar

parent d842404c
......@@ -2,7 +2,7 @@
if not pcall(function() require("expansions/script/c10199991") end) then require("script/c10199991") end
local m = 10199990
local vm = 10199991
local Version_Number = 20210513
local Version_Number = 20210614
if rsv.Library_Switch then return end
rsv.Library_Switch = true
-----------------------"Part_Effect_Base"-----------------------
......
......@@ -58,7 +58,7 @@ function c12045017.thop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c12045017.hspcon(e,c)
local tp=c:GetControler()
local tp=e:GetHandler():GetControler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 and ft>0
end
......
......@@ -70,7 +70,7 @@ function c12051020.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c12051020.tgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c12051020.tgfilter,tp,LOCATION_DECK,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,Card.IsAbleToGrave,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT)
end
......@@ -90,7 +90,7 @@ function c12051020.disop(e,tp,eg,ep,ev,re,r,rp)
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_SINGLE)
e7:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e7:SetRange(LOCATION_FZONE)
e7:SetRange(LOCATION_MZONE)
e7:SetCode(EFFECT_IMMUNE_EFFECT)
e7:SetValue(c12051020.efilter3)
e7:SetReset(RESET_EVENT+0x1fe0000+RESET_CHAIN)
......
......@@ -13,6 +13,9 @@ function cm.initial_effect(c)
local e5 = rsef.STO(c,EVENT_DESTROYED,"sp",nil,"sp",nil,cm.spcon,
nil,rsop.target(cm.spfilter,"sp",LOCATION_REMOVED),cm.spop)
end
function cm.imtg(e,c)
return c:IsType(TYPE_XYZ+TYPE_SYNCHRO) and rsxjm.IsSet(c)
end
function cm.tdop(e,tp)
rsop.SelectOperate("td",tp,Card.IsAbleToDeck,tp,0,LOCATION_MZONE,1,1,nil,{})
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