Commit be96358d authored by POLYMER's avatar POLYMER

fix

parent 9e5b800e
......@@ -27,7 +27,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
local codelist2=0
while codelist2==0 do
local l=Duel.GetRandomNumber(1,999999999)
local mt=cm.load_metatable(l)
local mt=cm.load_metatable_load(l)
if mt then
local token=Duel.CreateToken(tp,l)
if token and token:IsType(TYPE_MONSTER) and token:IsType(TYPE_EFFECT) and not token:IsForbidden() and token:CheckUniqueOnField(tp) then
......@@ -41,6 +41,10 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp,c)
end
end
end
function cm.load_metatable_load(code)
local type=Duel.ReadCard(code,CARDDATA_TYPE)
return type
end
function cm.load_metatable(code)
local m1=_G["c"..code]
if m1 then return m1 end
......
......@@ -67,6 +67,7 @@ function c22348368.efffilter(c,e,tp,eg,ep,ev,re,r,rp)
local te=c.bfg_effect
if not te then return false end
local tg=te:GetTarget()
local e=te
return not tg or tg and tg(e,tp,eg,ep,ev,re,r,rp,0)
end
function c22348368.effctg(e,tp,eg,ep,ev,re,r,rp,chk)
......@@ -91,8 +92,8 @@ function c22348368.effcop(e,tp,eg,ep,ev,re,r,rp)
local te=tc.bfg_effect
local op=te:GetOperation()
if op then op(e,tp,eg,ep,ev,re,r,rp) end
-- Duel.BreakEffect()
-- Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD,nil)
-- Duel.BreakEffect()
-- Duel.DiscardHand(tp,nil,1,1,REASON_EFFECT+REASON_DISCARD,nil)
end
end
......
......@@ -71,7 +71,7 @@ function c67670305.spop(e,tp,eg,ep,ev,re,r,rp,c)
end
--to grave
function c67670305.costfilter(c)
return c:IsSetCard(0x1b7) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
return c:IsSetCard(0x1b7) and c:IsAbleToRemoveAsCost()
end
function c67670305.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local tp=e:GetHandlerPlayer()
......@@ -84,7 +84,7 @@ function c67670305.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Remove(sg,POS_FACEUP,REASON_COST)
end
function c67670305.spfilter2(c,e,tp)
return c:IsSetCard(0x1b7) and not c:IsCode(67670305) and c:IsAbleToHand()
return c:IsSetCard(0x1b7) and not c:IsCode(67670305) and c:IsAbleToGrave()
end
function c67670305.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
......
......@@ -24,8 +24,9 @@ function c67670314.initial_effect(c)
--double damge
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(67670314,2))
e3:SetType(EFFECT_TYPE_IGNITION)
e3:SetRange(LOCATION_GRAVE)
e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetRange(LOCATION_GRAVE)
e2:SetCode(EVENT_FREE_CHAIN)
e3:SetCountLimit(1,67670314)
e3:SetCost(aux.bfgcost)
e3:SetOperation(c67670314.operation)
......
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