Commit 62f9f136 authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Raidraptor - Ultimate Falcon and HEROs and so on (#2035)

parent c19e9603
...@@ -32,7 +32,7 @@ function c22061412.initial_effect(c) ...@@ -32,7 +32,7 @@ function c22061412.initial_effect(c)
end end
c22061412.material_setcode=0x8 c22061412.material_setcode=0x8
function c22061412.atkfilter(c) function c22061412.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x3008) return c:IsFaceup() and c:IsSetCard(0x3008) and c:IsType(TYPE_MONSTER)
end end
function c22061412.atkup(e,c) function c22061412.atkup(e,c)
return Duel.GetMatchingGroupCount(c22061412.atkfilter,c:GetControler(),LOCATION_REMOVED,0,nil)*300 return Duel.GetMatchingGroupCount(c22061412.atkfilter,c:GetControler(),LOCATION_REMOVED,0,nil)*300
......
...@@ -32,8 +32,11 @@ function c26964762.initial_effect(c) ...@@ -32,8 +32,11 @@ function c26964762.initial_effect(c)
e3:SetOperation(c26964762.deckop) e3:SetOperation(c26964762.deckop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
function c26964762.spcfilter(c)
return c:IsSetCard(0xc008) and c:IsType(TYPE_MONSTER)
end
function c26964762.spcon(e,tp,eg,ep,ev,re,r,rp) function c26964762.spcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,3,nil,0xc008) return Duel.IsExistingMatchingCard(c26964762.spcfilter,tp,LOCATION_GRAVE,0,3,nil)
end end
function c26964762.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c26964762.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() end
...@@ -68,7 +71,7 @@ function c26964762.deckcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,7 +71,7 @@ function c26964762.deckcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp return Duel.GetTurnPlayer()==tp
end end
function c26964762.cfilter(c) function c26964762.cfilter(c)
return c:IsSetCard(0xc008) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0xc008) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function c26964762.deckcost(e,tp,eg,ep,ev,re,r,rp,chk) function c26964762.deckcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -20,6 +20,9 @@ function c33574806.initial_effect(c) ...@@ -20,6 +20,9 @@ function c33574806.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
end end
c33574806.material_setcode=0x8 c33574806.material_setcode=0x8
function c33574806.atkfilter(c)
return c:IsSetCard(0x3008) and c:IsType(TYPE_MONSTER)
end
function c33574806.atkup(e,c) function c33574806.atkup(e,c)
return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0x3008)*100 return Duel.GetMatchingGroupCount(c33574806.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*100
end end
...@@ -17,6 +17,9 @@ function c58147549.initial_effect(c) ...@@ -17,6 +17,9 @@ function c58147549.initial_effect(c)
e2:SetValue(c58147549.atkup) e2:SetValue(c58147549.atkup)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c58147549.atkfilter(c)
return c:IsSetCard(0x8) and c:IsType(TYPE_MONSTER)
end
function c58147549.atkup(e,c) function c58147549.atkup(e,c)
return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0x8)*100 return Duel.GetMatchingGroupCount(c58147549.atkfilter,c:GetControler(),LOCATION_GRAVE,0,nil)*100
end end
...@@ -41,7 +41,7 @@ function c63060238.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c63060238.thop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c63060238.tgfilter(c) function c63060238.tgfilter(c)
return c:IsSetCard(0x3008) and not c:IsCode(63060238) and c:IsAbleToGrave() return c:IsSetCard(0x3008) and c:IsType(TYPE_MONSTER) and not c:IsCode(63060238) and c:IsAbleToGrave()
end end
function c63060238.tgtg(e,tp,eg,ep,ev,re,r,rp,chk) function c63060238.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c63060238.tgfilter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c63060238.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......
...@@ -17,7 +17,7 @@ function c69572169.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c69572169.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE) return e:GetHandler():IsLocation(LOCATION_GRAVE) and e:GetHandler():IsReason(REASON_BATTLE)
end end
function c69572169.rfilter(c) function c69572169.rfilter(c)
return c:IsSetCard(0x3008) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x3008) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function c69572169.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c69572169.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetMatchingGroup(c69572169.rfilter,tp,LOCATION_GRAVE,0,e:GetHandler()) local rg=Duel.GetMatchingGroup(c69572169.rfilter,tp,LOCATION_GRAVE,0,e:GetHandler())
......
...@@ -56,8 +56,11 @@ function c86221741.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,8 +56,11 @@ function c86221741.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_PHASE+PHASE_END) e2:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
function c86221741.cfilter(c)
return c:IsSetCard(0xba) and c:IsType(TYPE_MONSTER)
end
function c86221741.atkcon(e,tp,eg,ep,ev,re,r,rp) function c86221741.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetOverlayGroup():IsExists(Card.IsSetCard,1,nil,0xba) return e:GetHandler():GetOverlayGroup():IsExists(c86221741.cfilter,1,nil)
end end
function c86221741.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c86221741.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -13,7 +13,7 @@ function c9201964.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -13,7 +13,7 @@ function c9201964.condition(e,tp,eg,ep,ev,re,r,rp)
return tp~=Duel.GetTurnPlayer() and Duel.GetAttackTarget()==nil return tp~=Duel.GetTurnPlayer() and Duel.GetAttackTarget()==nil
end end
function c9201964.cfilter(c) function c9201964.cfilter(c)
return c:IsSetCard(0xc008) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0xc008) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
end end
function c9201964.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c9201964.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c9201964.cfilter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c9201964.cfilter,tp,LOCATION_GRAVE,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