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