Commit 5705729a authored by GuGu's avatar GuGu

Update c4031106.lua

parent be7f0dd4
Pipeline #33279 passed with stage
in 8 seconds
......@@ -29,8 +29,8 @@ function c4031106.initial_effect(c)
end
function c4031106.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and c:IsDiscardable() end
Duel.SendtoGrave(c,REASON_COST+REASON_DISCARD)
if chk==0 then return c:IsAbleToGraveAsCost() end
Duel.SendtoGrave(c,REASON_COST)
end
function c4031106.refilter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
......@@ -60,7 +60,7 @@ function c4031106.descost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c4031106.filter(c)
return c:IsFaceup() and c:IsDestructable()
return c:IsFaceup()
end
function c4031106.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c4031106.filter(chkc) end
......@@ -71,7 +71,7 @@ function c4031106.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function c4031106.desop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,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