Commit 2b9e0c03 authored by mercury233's avatar mercury233 Committed by DailyShana

fix setcode (#453)

parent f2088235
...@@ -24,14 +24,14 @@ function c80831721.initial_effect(c) ...@@ -24,14 +24,14 @@ function c80831721.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c80831721.condition(e,tp,eg,ep,ev,re,r,rp) function c80831721.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0xa4) return Duel.IsExistingMatchingCard(Card.IsSetCard,tp,LOCATION_GRAVE,0,1,nil,0x10a4)
end end
function c80831721.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c80831721.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end end
function c80831721.filter(c) function c80831721.filter(c)
return c:IsSetCard(0x1046) and c:IsType(TYPE_SPELL) and c:IsAbleToHand() return c:IsSetCard(0x46) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end end
function c80831721.target(e,tp,eg,ep,ev,re,r,rp,chk) function c80831721.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c80831721.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c80831721.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