Commit 0da07b20 authored by TanakaKotoha's avatar TanakaKotoha

lua fix

parent 76386620
No preview for this file type
......@@ -83,7 +83,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function cm.filter(c)
return c:IsSetCard(0x87f2) and c:IsAbleToHand()
return c:IsSetCard(0x37f4) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.spfilter(c)
return c:IsFaceup() and c:IsSetCard(0x87f2) and c:IsAbleToDeckAsCost()
return c:IsFaceup() and c:IsSetCard(0x37f4) and c:IsAbleToDeckAsCost()
end
function cm.spcon(e,c)
if c==nil then return true end
......
......@@ -55,7 +55,7 @@ function cm.rmop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.damon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsSetCard(0xf7f2)
return re and re:GetHandler():IsSetCard(0x77f4)
end
function cm.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,17030034)
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.filter(c)
return c:IsSetCard(0xf7f2) and c:IsAbleToHand()
return c:IsSetCard(0x77f4) and c:IsAbleToHand()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.cfilter(c,tp)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xf7f2)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0x77f4)
and Duel.IsExistingMatchingCard(cm.thfilter,tp,LOCATION_DECK,0,1,c,c:GetCode())
end
function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -24,7 +24,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.filter(c)
return c:IsSetCard(0xf7f2) and c:IsAbleToDeck() and not c:IsPublic()
return c:IsSetCard(0x77f4) and c:IsAbleToDeck() and not c:IsPublic()
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp)
......@@ -45,7 +45,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.spfilter(c,e,tp)
return c:IsSetCard(0xf7f2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x77f4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -19,7 +19,7 @@ function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,400)
end
function cm.rccfilter(c)
return c:IsFaceup() and c:IsSetCard(0xf7f2)
return c:IsFaceup() and c:IsSetCard(0x77f4)
end
function cm.damop(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
......
......@@ -34,7 +34,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e2,tp)
end
function cm.indtg(e,c)
return c:IsSetCard(0xf7f2)
return c:IsSetCard(0x77f4)
end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp and (Duel.IsAbleToEnterBP() or (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE))
......
......@@ -19,7 +19,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function cm.rccfilter(c)
return c:IsFaceup() and c:IsSetCard(0xf7f2)
return c:IsFaceup() and c:IsSetCard(0x77f4)
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
......
......@@ -26,7 +26,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.filter(c)
return c:IsSetCard(0xf7f2) and c:IsType(TYPE_SPELL) and c:CheckActivateEffect(true,true,false)~=nil
return c:IsSetCard(0x77f4) and c:IsType(TYPE_SPELL) and c:CheckActivateEffect(true,true,false)~=nil
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then
......@@ -63,7 +63,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.negfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xf7f2) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD)
return c:IsFaceup() and c:IsSetCard(0x77f4) and c:IsControler(tp) and c:IsLocation(LOCATION_ONFIELD)
end
function cm.negcon(e,tp,eg,ep,ev,re,r,rp)
if rp==tp then return false end
......
......@@ -31,7 +31,7 @@ function cm.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SendtoGrave(e:GetHandler(),REASON_COST+REASON_DISCARD)
end
function cm.thfilter(c)
return c:IsSetCard(0xf7f2) and c:IsAbleToHand()
return c:IsSetCard(0x77f4) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and cm.thfilter(chkc) end
......@@ -50,7 +50,7 @@ function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()==tp
end
function cm.filter(c)
return c:IsSetCard(0xf7f2) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
return c:IsSetCard(0x77f4) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end
function cm.thtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -18,10 +18,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return re and re:GetHandler():IsSetCard(0xf7f2)
return re and re:GetHandler():IsSetCard(0x77f4)
end
function cm.spfilter(c,e,tp)
return c:IsSetCard(0xf7f2) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x77f4) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
......@@ -30,7 +30,7 @@ function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK)
end
function cm.lcheck(g,lc)
return g:IsExists(Card.IsLinkSetCard,1,nil,0xf7f2)
return g:IsExists(Card.IsLinkSetCard,1,nil,0x77f4)
end
function cm.linkcon(e)
local c=e:GetHandler()
......
......@@ -20,7 +20,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e2)
end
function cm.spfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0xf7f2)
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0x77f4)
end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.spfilter,1,nil,tp)
......
......@@ -36,7 +36,7 @@ function cm.spcon(e,c)
and Duel.IsExistingMatchingCard(cm.spfilter,tp,LOCATION_ONFIELD,0,1,nil)
end
function cm.thfilter(c,tp)
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0xf7f2)
return c:IsFaceup() and c:IsControler(tp) and c:IsSetCard(0x77f4)
end
function cm.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.thfilter,1,nil,tp)
......
......@@ -12,5 +12,5 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.val(e,c)
return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0xf7f2)*500
return Duel.GetMatchingGroupCount(Card.IsSetCard,c:GetControler(),LOCATION_GRAVE,0,nil,0x77f4)*500
end
\ No newline at end of file
......@@ -4,7 +4,7 @@ local cm=_G["c"..m]
function cm.initial_effect(c)
--fusion material
c:EnableReviveLimit()
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0xf7f2),2,true)
aux.AddFusionProcFunRep(c,aux.FilterBoolFunction(Card.IsFusionSetCard,0x77f4),2,true)
--inactivatable
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD)
......@@ -32,7 +32,7 @@ end
function cm.effectfilter(e,ct)
local p=e:GetHandler():GetControler()
local te,tp,loc=Duel.GetChainInfo(ct,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
return p==tp and te:GetHandler():IsSetCard(0xf7f2) and bit.band(loc,LOCATION_ONFIELD)~=0
return p==tp and te:GetHandler():IsSetCard(0x77f4) and bit.band(loc,LOCATION_ONFIELD)~=0
end
function cm.thfilter(c)
return c:IsCode(17030035) and c:IsAbleToHand()
......
......@@ -27,7 +27,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.tgfilter(c)
return c:IsSetCard(0xf7f2) and c:IsAbleToGrave()
return c:IsSetCard(0x77f4) and c:IsAbleToGrave()
end
function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.tgfilter,tp,LOCATION_DECK,0,1,nil) end
......@@ -41,7 +41,7 @@ function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
end
end
function cm.thfilter(c)
return c:IsSetCard(0xf7f2) and c:IsAbleToHand()
return c:IsSetCard(0x77f4) and c:IsAbleToHand()
end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -13,7 +13,7 @@ function cm.initial_effect(c)
c:RegisterEffect(e1)
end
function cm.cfilter(c)
return c:IsSetCard(0xf7f2)
return c:IsSetCard(0x77f4)
end
function cm.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.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