Commit 9ff8efab authored by DailyShana's avatar DailyShana

fix

parent 30b3088b
......@@ -41,8 +41,11 @@ function c4081665.spop(e,tp,eg,ep,ev,re,r,rp,c)
e2:SetCode(EFFECT_CANNOT_MSET)
Duel.RegisterEffect(e2,tp)
end
function c4081665.cfilter(c)
return c:IsSetCard(0xc6) and c:IsType(TYPE_MONSTER)
end
function c4081665.damcon(e,tp,eg,ep,ev,re,r,rp)
if not Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,e:GetHandler(),0xc6) then return false end
if not Duel.IsExistingMatchingCard(c4081665.cfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) then return false end
local ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_DAMAGE)
if ex and (cp==1-tp or cp==PLAYER_ALL) then return true end
ex,cg,ct,cp,cv=Duel.GetOperationInfo(ev,CATEGORY_RECOVER)
......
......@@ -14,7 +14,7 @@ function c58446973.initial_effect(c)
c:RegisterEffect(e2)
end
function c58446973.filter(c)
return c:IsSetCard(0xbb) and not c:IsCode(58446973) and c:IsAbleToGrave()
return c:IsSetCard(0xbb) and c:IsType(TYPE_MONSTER) and not c:IsCode(58446973) and c:IsAbleToGrave()
end
function c58446973.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c58446973.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -21,7 +21,7 @@ function c79531196.initial_effect(c)
c:RegisterEffect(e2)
end
function c79531196.filter(c)
return (c:IsSetCard(0x1047) or c:IsSetCard(0x9b)) and c:IsAbleToGrave()
return (c:IsSetCard(0x1047) or c:IsSetCard(0x9b)) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c79531196.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c79531196.filter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil) end
......
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