Commit 6a020548 authored by VanillaSalt's avatar VanillaSalt

fix

parent 77a72171
......@@ -20,7 +20,8 @@ function c20513882.cfilter(c,tp)
and Duel.IsExistingMatchingCard(c20513882.thfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,c)
end
function c20513882.thfilter(c,tc)
return c:GetOriginalLevel()==tc:GetOriginalLevel()
return c:IsType(TYPE_MONSTER)
and c:GetOriginalLevel()==tc:GetOriginalLevel()
and c:GetOriginalRace()==tc:GetOriginalRace()
and c:GetOriginalAttribute()==tc:GetOriginalAttribute()
and c:GetOriginalCode()~=tc:GetOriginalCode() and c:IsAbleToHand()
......
......@@ -40,7 +40,7 @@ function c27770341.addcount(e,tp,eg,ep,ev,re,r,rp)
if pl==LOCATION_MZONE and tc:GetPreviousRaceOnField()==RACE_DRAGON then
local p=tc:GetReasonPlayer()
c27770341[p]=c27770341[p]+1
elseif pl==LOCATION_HAND and tc:GetOriginalRace()==RACE_DRAGON then
elseif pl==LOCATION_HAND and tc:IsType(TYPE_MONSTER) and tc:GetOriginalRace()==RACE_DRAGON then
local p=tc:GetPreviousControler()
c27770341[p]=c27770341[p]+1
end
......
......@@ -21,7 +21,7 @@ function c34187685.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c34187685.filter1(c,tp)
local lv=c:GetOriginalLevel()
return lv>1 and c:IsDiscardable() and c:IsAbleToGraveAsCost()
return lv>1 and c:IsType(TYPE_MONSTER) and c:IsDiscardable() and c:IsAbleToGraveAsCost()
and Duel.IsExistingTarget(c34187685.filter2,tp,LOCATION_MZONE,0,1,nil,lv)
end
function c34187685.filter2(c,lv)
......
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