Commit fa6d7820 authored by POLYMER's avatar POLYMER

fix

parent 746be7d7
......@@ -47,7 +47,9 @@ function cm.settg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk then return Duel.IsExistingMatchingCard(cm.filter1,tp,LOCATION_HAND,0,1,c) and Duel.IsExistingMatchingCard(cm.filter6,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end
if e:IsHasType(EFFECT_TYPE_ACTIVATE) then
Duel.SetChainLimit(aux.FALSE)
end
end
function cm.setop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......
......@@ -5539,16 +5539,18 @@ function cm.ActivatedAsSpellorTrapCheck(c)
ADIMI_GetChainInfo=Duel.GetChainInfo
Duel.GetChainInfo=function(chainc,...)
local re=ADIMI_GetChainInfo(chainc,CHAININFO_TRIGGERING_EFFECT)
local rc=re:GetHandler()
local xe={}
if rc then xe={rc:IsHasEffect(53765099)} end
local b=false
local ls,typ=0
for _,v in pairs(xe) do
if re==v:GetLabelObject() then
b=true
ls,typ=v:GetLabel()
break
if re and aux.GetValueType(re)=="Effect" then
local rc=re:GetHandler()
local xe={}
if rc then xe={rc:IsHasEffect(53765099)} end
local ls,typ=0
for _,v in pairs(xe) do
if re==v:GetLabelObject() then
b=true
ls,typ=v:GetLabel()
break
end
end
end
local t={ADIMI_GetChainInfo(chainc,...)}
......
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