Commit 4dd0f913 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12026024.lua

parent 8d171946
...@@ -50,6 +50,7 @@ function c12026024.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,6 +50,7 @@ function c12026024.spop(e,tp,eg,ep,ev,re,r,rp)
end end
function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk) function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
local b2=(re:GetHandler():IsRelateToEffect(re) and c:IsAbleToGrave() and ( not re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:GetHandler():IsType(TYPE_CONTINUOUS) ) and not bit.band(Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION),re:GetHandler():GetLocation())==0 and eg:GetHandler():IsAbleToGrave() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 )
if chk==0 then if chk==0 then
local tg=re:GetTarget() local tg=re:GetTarget()
local event=re:GetCode() local event=re:GetCode()
...@@ -57,9 +58,9 @@ function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,9 +58,9 @@ function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk)
not tg or tg(e,tp,eg,ep,ev,re,r,rp,0) not tg or tg(e,tp,eg,ep,ev,re,r,rp,0)
else else
local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true) local res,teg,tep,tev,tre,tr,trp=Duel.CheckEvent(event,true)
return not tg or tg(e,tp,teg,tep,tev,tre,tr,trp,0) return (not tg or tg(e,tp,teg,tep,tev,tre,tr,trp,0) ) and b2
end end
return re:GetHandler():IsRelateToEffect(re) and c:IsAbleToGrave() and ( not re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:GetHandler():IsType(TYPE_CONTINUOUS) ) and not bit.band(Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION),re:GetHandler():GetLocation())==0 and eg:GetHandler():IsAbleToGrave() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return b2
end end
local event=re:GetCode() local event=re:GetCode()
e:SetLabelObject(re) e:SetLabelObject(re)
......
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