Commit 2788e532 authored by DailyShana's avatar DailyShana

fix

parent 009fc611
......@@ -19,7 +19,7 @@ function c10759529.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST)
end
function c10759529.filter(c)
return c:IsSetCard(0x3008) and c:IsAbleToHand()
return c:IsSetCard(0x3008) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c10759529.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c10759529.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -58,7 +58,7 @@ function c12644061.damcon(e,tp,eg,ep,ev,re,r,rp)
and ((a:IsControler(tp) and a:IsSetCard(0x1034)) or (at and at:IsControler(tp) and at:IsSetCard(0x1034)))
end
function c12644061.dfilter(c)
return c:IsSetCard(0x1034) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0x1034) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c12644061.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c12644061.dfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -18,7 +18,7 @@ end
function c1315120.spcon(e,c)
if c==nil then return true end
return Duel.GetFieldGroupCount(c:GetControler(),LOCATION_MZONE,0)==0
and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>0
and Duel.GetFieldGroupCount(c:GetControler(),0,LOCATION_MZONE)>0
and Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c1315120.regop(e,tp,eg,ep,ev,re,r,rp)
......@@ -38,7 +38,7 @@ function c1315120.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c1315120.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=1315120 and c:IsAbleToHand()
return c:IsSetCard(0x27) and c:GetCode()~=1315120 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c1315120.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1315120.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -25,7 +25,7 @@ function c16480084.schcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end
function c16480084.sfilter(c)
return c:IsSetCard(0x304e) and c:IsAbleToHand()
return c:IsSetCard(0x304e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c16480084.schtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c16480084.sfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -40,7 +40,7 @@ function c22061412.thcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetPreviousLocation(),LOCATION_ONFIELD)>0
end
function c22061412.filter(c)
return c:IsFaceup() and c:IsSetCard(0x3008) and c:IsAbleToHand()
return c:IsFaceup() and c:IsSetCard(0x3008) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c22061412.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetControler()==tp and chkc:IsLocation(LOCATION_REMOVED) and c22061412.filter(chkc) end
......
......@@ -74,7 +74,7 @@ function c23649496.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:IsCode(e:GetLabel())
end
function c23649496.tgfilter(c)
return c:IsSetCard(0x76) and c:IsAbleToGrave()
return c:IsSetCard(0x76) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c23649496.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c23649496.tgfilter,tp,LOCATION_DECK,0,2,nil) end
......
......@@ -19,7 +19,7 @@ function c2407147.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c2407147.cfilter,tp,LOCATION_GRAVE,0,1,nil)
end
function c2407147.filter(c)
return c:IsSetCard(0x39) and c:IsAbleToGrave()
return c:IsSetCard(0x39) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c2407147.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c2407147.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -38,7 +38,7 @@ function c28201945.spcon(e,tp,eg,ep,ev,re,r,rp)
return rp==tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) and c:GetType()==TYPE_TRAP and (c:IsSetCard(0x4c) or c:IsSetCard(0x89)) and e:GetHandler():GetFlagEffect(1)>0
end
function c28201945.filter(c,e,tp,ft)
return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
return c:IsSetCard(0x108a) and c:GetCode()~=28201945 and c:IsType(TYPE_MONSTER) and (c:IsAbleToHand() or (ft>0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)))
end
function c28201945.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
......@@ -54,7 +54,7 @@ function c293542.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c293542.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=293542 and c:IsAbleToHand()
return c:IsSetCard(0x27) and not c:IsCode(293542) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c293542.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c293542.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -24,7 +24,7 @@ function c31383545.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c31383545.filter(c)
return c:IsSetCard(0x100d) and c:IsAbleToHand()
return c:IsSetCard(0x100d) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c31383545.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c31383545.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -80,7 +80,7 @@ function c31533704.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(g,REASON_COST)
end
function c31533704.filter(c)
return c:IsSetCard(0x101b) and c:IsAbleToHand()
return c:IsSetCard(0x101b) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c31533704.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c31533704.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -37,7 +37,7 @@ function c36687247.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c36687247.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=36687247 and c:IsAbleToHand()
return c:IsSetCard(0x27) and c:GetCode()~=36687247 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c36687247.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c36687247.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -31,7 +31,7 @@ function c36734924.tgfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) and c:IsAbleToGrave()
end
function c36734924.thfilter(c)
return c:IsSetCard(0xdd) and c:IsAbleToHand()
return c:IsSetCard(0xdd) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c36734924.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c36734924.tgfilter,tp,LOCATION_MZONE,0,1,nil)
......
......@@ -22,7 +22,7 @@ function c38331564.initial_effect(c)
c:RegisterEffect(e3)
end
function c38331564.filter(c)
return c:IsSetCard(0x86) and not c:IsCode(38331564) and c:IsAbleToHand()
return c:IsSetCard(0x86) and not c:IsCode(38331564) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c38331564.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c38331564.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -19,7 +19,7 @@ function c39477584.con(e,tp,eg,ep,ev,re,r,rp)
return bit.band(r,REASON_DESTROY)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end
function c39477584.filter(c)
return c:IsSetCard(0x35) and c:IsAbleToHand()
return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c39477584.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c39477584.filter(chkc) end
......
......@@ -33,7 +33,7 @@ function c49919798.initial_effect(c)
c:RegisterEffect(e3)
end
function c49919798.thfilter(c)
return c:IsSetCard(0x1066) and not c:IsCode(49919798) and c:IsAbleToHand()
return c:IsSetCard(0x1066) and not c:IsCode(49919798) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c49919798.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c49919798.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -25,7 +25,7 @@ function c51916032.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST)
end
function c51916032.filter(c)
return c:IsSetCard(0xbc) and not c:IsCode(51916032) and c:IsAbleToHand()
return c:IsSetCard(0xbc) and not c:IsCode(51916032) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c51916032.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c51916032.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -49,7 +49,7 @@ function c5399521.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function c5399521.thfilter(c)
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsAbleToHand()
return c:IsFaceup() and c:IsSetCard(0x1066) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c5399521.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_REMOVED) and c5399521.thfilter(chkc) end
......
......@@ -23,7 +23,7 @@ function c60316373.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(g,POS_FACEUP,REASON_COST)
end
function c60316373.filter(c)
return c:IsSetCard(0x76) and c:IsAbleToHand()
return c:IsSetCard(0x76) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c60316373.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and c60316373.filter(chkc) end
......
......@@ -87,7 +87,7 @@ function c61965407.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,61965407,RESET_PHASE+PHASE_END,0,1)
end
function c61965407.thfilter(c)
return c:IsSetCard(0xbb) and c:IsAbleToHand()
return c:IsSetCard(0xbb) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c61965407.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c61965407.thfilter(chkc) end
......@@ -104,7 +104,7 @@ function c61965407.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterFlagEffect(tp,61965408,RESET_PHASE+PHASE_END,0,1)
end
function c61965407.tgfilter(c)
return c:IsFaceup() and c:IsSetCard(0xbb)
return c:IsFaceup() and c:IsSetCard(0xbb) and c:IsType(TYPE_MONSTER)
end
function c61965407.tgtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_REMOVED) and chkc:IsControler(tp) and c61965407.tgfilter(chkc) end
......
......@@ -62,7 +62,7 @@ function c64910482.regop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c64910482.filter(c)
return c:IsSetCard(0x27) and c:GetCode()~=64910482 and c:IsAbleToHand()
return c:IsSetCard(0x27) and c:GetCode()~=64910482 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c64910482.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c64910482.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -34,7 +34,7 @@ function c67328336.thcon(e,tp,eg,ep,ev,re,r,rp)
return c:IsReason(REASON_DESTROY) and bit.band(c:GetPreviousLocation(),LOCATION_ONFIELD)~=0
end
function c67328336.filter(c)
return c:IsSetCard(0x3013) and c:IsAbleToHand()
return c:IsSetCard(0x3013) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c67328336.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c67328336.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -13,7 +13,7 @@ function c75141056.tgfilter(c)
return c:IsFaceup() and Duel.IsExistingMatchingCard(c75141056.cfilter,c:GetControler(),LOCATION_DECK,0,1,nil,c)
end
function c75141056.cfilter(c,tc)
return c:IsSetCard(0x3008) and not c:IsCode(tc:GetCode()) and c:IsAbleToGrave()
return c:IsSetCard(0x3008) and not c:IsCode(tc:GetCode()) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c75141056.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c75141056.tgfilter(chkc) end
......
......@@ -35,7 +35,7 @@ function c80651316.atkop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e2)
end
function c80651316.sfilter(c)
return c:IsSetCard(0x304e) and c:IsAbleToHand()
return c:IsSetCard(0x304e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c80651316.schtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c80651316.sfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -15,13 +15,16 @@ function c8611007.initial_effect(c)
c:RegisterEffect(e1)
end
function c8611007.filter(c)
return c:IsSetCard(0x39) and c:IsAbleToHand()
return c:IsSetCard(0x39) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c8611007.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c8611007.filter,tp,LOCATION_DECK,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
Duel.SetOperationInfo(0,CATEGORY_TOGRAVE,nil,1,tp,LOCATION_HAND)
end
function c8611007.tgfilter(c)
return c:IsSetCard(0x39) and c:IsType(TYPE_MONSTER)
end
function c8611007.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c8611007.filter,tp,LOCATION_DECK,0,1,1,nil)
......@@ -31,6 +34,6 @@ function c8611007.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp)
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local dg=Duel.SelectMatchingCard(tp,Card.IsSetCard,tp,LOCATION_HAND,0,1,1,nil,0x39)
local dg=Duel.SelectMatchingCard(tp,c8611007.tgfilter,tp,LOCATION_HAND,0,1,1,nil)
Duel.SendtoGrave(dg,REASON_EFFECT)
end
......@@ -60,7 +60,7 @@ function c86943389.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(86943389)>0
end
function c86943389.thfilter(c)
return c:IsSetCard(0x2016) and not c:IsCode(86943389) and c:IsAbleToHand()
return c:IsSetCard(0x2016) and not c:IsCode(86943389) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c86943389.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c86943389.thfilter(chkc) end
......
......@@ -15,7 +15,7 @@ function c89893715.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end
function c89893715.filter(c)
return c:IsSetCard(0x39) and c:IsAbleToGrave()
return c:IsSetCard(0x39) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c89893715.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c89893715.filter,tp,LOCATION_DECK,0,2,nil) end
......
......@@ -61,7 +61,7 @@ function c90361010.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end
function c90361010.thfilter(c)
return c:IsSetCard(0x9a) and not c:IsCode(90361010) and c:IsAbleToHand()
return c:IsSetCard(0x9a) and not c:IsCode(90361010) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c90361010.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c90361010.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -38,7 +38,7 @@ function c90616316.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c90616316.cfilter(c)
return c:IsSetCard(0x35) and not c:IsPublic()
return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and not c:IsPublic()
end
function c90616316.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c90616316.cfilter,tp,LOCATION_HAND,0,1,nil) end
......@@ -48,7 +48,7 @@ function c90616316.cost2(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.ShuffleHand(tp)
end
function c90616316.filter2(c)
return c:IsSetCard(0x35) and c:IsAbleToGrave()
return c:IsSetCard(0x35) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c90616316.tg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c90616316.filter2,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -11,10 +11,10 @@ function c91188343.initial_effect(c)
c:RegisterEffect(e1)
end
function c91188343.filter1(c)
return c:IsSetCard(0x44) and c:GetCode()~=91188343 and c:IsAbleToHand()
return c:IsSetCard(0x44) and c:GetCode()~=91188343 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c91188343.filter2(c)
return ((c:IsSetCard(0x44) and c:GetCode()~=91188343) or c:IsCode(55794644)) and c:IsAbleToHand()
return ((c:IsSetCard(0x44) and c:GetCode()~=91188343 and c:IsType(TYPE_MONSTER)) or c:IsCode(55794644)) and c:IsAbleToHand()
end
function c91188343.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
......
......@@ -18,7 +18,7 @@ function c91903221.filter1(c)
return c:IsRace(RACE_DINOSAUR) and c:IsAbleToDeck()
end
function c91903221.filter2(c)
return c:IsSetCard(0x304e) and c:IsAbleToHand()
return c:IsSetCard(0x304e) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c91903221.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -33,7 +33,7 @@ function c923596.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function c923596.filter(c)
return c:IsSetCard(0x72) and c:GetCode()~=923596 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0x72) and not c:IsCode(923596) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c923596.shtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c923596.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -51,7 +51,7 @@ function c94432298.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RegisterFlagEffect(94432298,RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END,0,1)
end
function c94432298.filter(c)
return c:IsSetCard(0xbb) and c:IsAbleToGrave()
return c:IsSetCard(0xbb) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c94432298.tgtg2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c94432298.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -25,7 +25,7 @@ function c95027497.filter1(c)
return c:IsSetCard(0x61) and c:IsAbleToHand()
end
function c95027497.filter2(c)
return c:IsSetCard(0x2b) and c:GetCode()~=95027497 and c:IsAbleToHand()
return c:IsSetCard(0x2b) and c:GetCode()~=95027497 and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c95027497.tg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c95027497.filter1,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -23,7 +23,7 @@ function c97567736.initial_effect(c)
c:RegisterEffect(e2)
end
function c97567736.cfilter(c)
return c:IsSetCard(0xc3) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0xc3) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c97567736.damcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c97567736.cfilter,tp,LOCATION_HAND,0,1,nil) end
......@@ -40,7 +40,7 @@ function c97567736.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,d,REASON_EFFECT)
end
function c97567736.tgfilter(c)
return c:IsSetCard(0xc3) and not c:IsCode(97567736) and c:IsAbleToGraveAsCost()
return c:IsSetCard(0xc3) and not c:IsCode(97567736) and c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
end
function c97567736.tgcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c97567736.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -24,7 +24,7 @@ function c97750534.spcon(e,c)
return Duel.GetLocationCount(c:GetControler(),LOCATION_MZONE)>0
end
function c97750534.filter(c)
return c:IsSetCard(0x44) and c:IsAbleToGrave()
return c:IsSetCard(0x44) and c:IsType(TYPE_MONSTER) and c:IsAbleToGrave()
end
function c97750534.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c97750534.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -46,7 +46,7 @@ function c98287529.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end
function c98287529.filter(c)
return c:IsSetCard(0xda) and not c:IsCode(98287529) and c:IsAbleToHand()
return c:IsSetCard(0xda) and not c:IsCode(98287529) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c98287529.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c98287529.filter,tp,LOCATION_DECK,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