Commit 454ca449 authored by mercury233's avatar mercury233

fix レベルアップ!

parent b5eb2764
......@@ -12,7 +12,7 @@ function c25290459.initial_effect(c)
end
function c25290459.costfilter(c,e,tp)
if not c:IsSetCard(0x41) or not c:IsAbleToGraveAsCost() or not c:IsFaceup() then return false end
local code=c:GetCode()
local code=c:GetOriginalCodeRule()
local class=_G["c"..code]
if class==nil or class.lvup==nil then return false end
return Duel.IsExistingMatchingCard(c25290459.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,class,e,tp)
......@@ -26,7 +26,7 @@ function c25290459.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c25290459.costfilter,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
Duel.SendtoGrave(g,REASON_COST)
e:SetLabel(g:GetFirst():GetCode())
e:SetLabel(g:GetFirst():GetOriginalCodeRule())
end
function c25290459.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 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