Commit 9b5d9454 authored by gg123gg's avatar gg123gg Committed by GitHub

Update c12026024.lua

parent cf668759
...@@ -59,7 +59,7 @@ function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -59,7 +59,7 @@ function c12026024.target(e,tp,eg,ep,ev,re,r,rp,chk)
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)
end end
return re:GetHandler():IsRelateToEffect(re) and c:IsAbleToGrave() and not re:IsHasType(EFFECT_TYPE_ACTIVATE) and eg:GetHandler():IsAbleToGrave() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return re:GetHandler():IsRelateToEffect(re) and c:IsAbleToGrave() and ( not re:IsHasType(EFFECT_TYPE_ACTIVATE) or re:IsType(TYPE_CONTINUOUS) ) and eg:GetHandler():IsAbleToGrave() and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end end
local event=re:GetCode() local event=re:GetCode()
e:SetLabelObject(re) e:SetLabelObject(re)
...@@ -85,4 +85,4 @@ function c12026024.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -85,4 +85,4 @@ function c12026024.activate(e,tp,eg,ep,ev,re,r,rp)
local op=te:GetOperation() local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end if op then op(e,tp,eg,ep,ev,re,r,rp) end
Duel.SendtoGrave(c+eg,REASON_EFFECT) Duel.SendtoGrave(c+eg,REASON_EFFECT)
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