Commit c48187ff authored by TanakaKotoha's avatar TanakaKotoha

iidx goooooooooooooooold

parent 1969f156
No preview for this file type
...@@ -87,10 +87,17 @@ function c65010517.costchk(e,te_or_c,tp) ...@@ -87,10 +87,17 @@ function c65010517.costchk(e,te_or_c,tp)
local tc=e:GetLabelObject() local tc=e:GetLabelObject()
local ct=Duel.GetFlagEffect(tp,65010517) local ct=Duel.GetFlagEffect(tp,65010517)
local g=Duel.GetDecktopGroup(tp,ct*4) local g=Duel.GetDecktopGroup(tp,ct*4)
return g:FilterCount(Card.IsAbleToRemoveAsCost,nil)==ct*4 and tc:GetFlagEffect(65010517)~=0 and tc:IsLocation(LOCATION_MZONE) local check=0
if not tc:IsLocation(LOCATION_MZONE) or (g:FilterCount(Card.IsAbleToRemoveAsCost,nil)==ct*4 and tc:GetFlagEffect(65010517)~=0 and tc:IsLocation(LOCATION_MZONE)) then
check=1
end
return check==1
end end
function c65010517.costop(e,tp,eg,ep,ev,re,r,rp) function c65010517.costop(e,tp,eg,ep,ev,re,r,rp)
local tc=e:GetLabelObject()
if tc:GetFlagEffect(65010517)~=0 and tc:IsLocation(LOCATION_MZONE) then
Duel.Hint(HINT_CARD,0,65010517) Duel.Hint(HINT_CARD,0,65010517)
local g=Duel.GetDecktopGroup(tp,4) local g=Duel.GetDecktopGroup(tp,4)
Duel.Remove(g,POS_FACEDOWN,REASON_COST) Duel.Remove(g,POS_FACEDOWN,REASON_COST)
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