Commit 4f9c7c68 authored by mercury233's avatar mercury233

format: space

parent 5a64bbae
...@@ -17,7 +17,7 @@ function c10860121.initial_effect(c) ...@@ -17,7 +17,7 @@ function c10860121.initial_effect(c)
end end
function c10860121.cfilter(c,tp) function c10860121.cfilter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)
and c:IsSetCard(0x88) and c:IsRace(RACE_BEASTWARRIOR) and c:IsReason(REASON_BATTLE) and c:IsSetCard(0x88) and c:IsRace(RACE_BEASTWARRIOR) and c:IsReason(REASON_BATTLE)
end end
function c10860121.condition(e,tp,eg,ep,ev,re,r,rp) function c10860121.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c10860121.cfilter,1,nil,tp) return eg:IsExists(c10860121.cfilter,1,nil,tp)
......
...@@ -25,7 +25,7 @@ function c11834972.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -25,7 +25,7 @@ function c11834972.cost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert(ct,i) table.insert(ct,i)
end end
end end
if #ct==1 then if #ct==1 then
Duel.DiscardDeck(tp,ct[1],REASON_COST) Duel.DiscardDeck(tp,ct[1],REASON_COST)
else else
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(11834972,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(11834972,1))
......
...@@ -22,7 +22,7 @@ end ...@@ -22,7 +22,7 @@ end
function c12183332.operation(e,tp,eg,ep,ev,re,r,rp) function c12183332.operation(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local opt=Duel.SelectOption(tp,aux.Stringid(12183332,1),aux.Stringid(12183332,2)) local opt=Duel.SelectOption(tp,aux.Stringid(12183332,1),aux.Stringid(12183332,2))
if opt==0 then if opt==0 then
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
else else
Duel.ShuffleDeck(1-tp) Duel.ShuffleDeck(1-tp)
......
...@@ -14,7 +14,7 @@ function c12469386.initial_effect(c) ...@@ -14,7 +14,7 @@ function c12469386.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c12469386.filter(c,tp) function c12469386.filter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) return c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP)
and c:GetPreviousLevelOnField()>=5 and bit.band(c:GetPreviousRaceOnField(),RACE_PLANT)~=0 and c:GetPreviousLevelOnField()>=5 and bit.band(c:GetPreviousRaceOnField(),RACE_PLANT)~=0
end end
function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp) function c12469386.spcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -17,7 +17,7 @@ function c12538374.filter(c) ...@@ -17,7 +17,7 @@ function c12538374.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) or (c:IsCode(12538374) and c:IsFaceup()) return c:IsType(TYPE_SPELL+TYPE_TRAP) or (c:IsCode(12538374) and c:IsFaceup())
end end
function c12538374.condition(e,tp,eg,ep,ev,re,r,rp) function c12538374.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() and not Duel.IsExistingMatchingCard(c12538374.filter,tp,LOCATION_ONFIELD,0,1,nil) return tp==Duel.GetTurnPlayer() and not Duel.IsExistingMatchingCard(c12538374.filter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c12538374.target(e,tp,eg,ep,ev,re,r,rp,chk) function c12538374.target(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
......
...@@ -68,7 +68,7 @@ function c12644061.distg(e,c) ...@@ -68,7 +68,7 @@ function c12644061.distg(e,c)
end end
function c12644061.condition(e) function c12644061.condition(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_NECRO_VALLEY) return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_NECRO_VALLEY)
and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_NECRO_VALLEY) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_NECRO_VALLEY)
end end
function c12644061.damcon(e,tp,eg,ep,ev,re,r,rp) function c12644061.damcon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,7 +38,7 @@ function c1372887.cfilter(c,tp) ...@@ -38,7 +38,7 @@ function c1372887.cfilter(c,tp)
return c:IsControler(1-tp) and not c:IsReason(REASON_DRAW) and c:IsPreviousLocation(LOCATION_DECK+LOCATION_GRAVE) return c:IsControler(1-tp) and not c:IsReason(REASON_DRAW) and c:IsPreviousLocation(LOCATION_DECK+LOCATION_GRAVE)
end end
function c1372887.drcon1(e,tp,eg,ep,ev,re,r,rp) function c1372887.drcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c1372887.cfilter,1,nil,tp) return eg:IsExists(c1372887.cfilter,1,nil,tp)
and (not re:IsHasType(EFFECT_TYPE_ACTIONS) or re:IsHasType(EFFECT_TYPE_CONTINUOUS)) and (not re:IsHasType(EFFECT_TYPE_ACTIONS) or re:IsHasType(EFFECT_TYPE_CONTINUOUS))
end end
function c1372887.drop1(e,tp,eg,ep,ev,re,r,rp) function c1372887.drop1(e,tp,eg,ep,ev,re,r,rp)
...@@ -46,7 +46,7 @@ function c1372887.drop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -46,7 +46,7 @@ function c1372887.drop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Draw(tp,1,REASON_EFFECT) Duel.Draw(tp,1,REASON_EFFECT)
end end
function c1372887.regcon(e,tp,eg,ep,ev,re,r,rp) function c1372887.regcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c1372887.cfilter,1,nil,tp) and Duel.GetFlagEffect(tp,1372887)==0 return eg:IsExists(c1372887.cfilter,1,nil,tp) and Duel.GetFlagEffect(tp,1372887)==0
and re:IsHasType(EFFECT_TYPE_ACTIONS) and not re:IsHasType(EFFECT_TYPE_CONTINUOUS) and re:IsHasType(EFFECT_TYPE_ACTIONS) and not re:IsHasType(EFFECT_TYPE_CONTINUOUS)
end end
function c1372887.regop(e,tp,eg,ep,ev,re,r,rp) function c1372887.regop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -21,8 +21,8 @@ function c14391920.filter(c) ...@@ -21,8 +21,8 @@ function c14391920.filter(c)
end end
function c14391920.target(e,tp,eg,ep,ev,re,r,rp,chk) function c14391920.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
return Duel.IsExistingMatchingCard(c14391920.filter,tp,LOCATION_DECK+LOCATION_GRAVE,LOCATION_GRAVE,1,nil) return Duel.IsExistingMatchingCard(c14391920.filter,tp,LOCATION_DECK+LOCATION_GRAVE,LOCATION_GRAVE,1,nil)
and not Duel.IsExistingMatchingCard(c14391920.chkfilter,tp,LOCATION_DECK+LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and not Duel.IsExistingMatchingCard(c14391920.chkfilter,tp,LOCATION_DECK+LOCATION_GRAVE,LOCATION_GRAVE,1,nil)
end end
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end end
......
...@@ -14,7 +14,7 @@ function c14517422.filter(c,e,tp) ...@@ -14,7 +14,7 @@ function c14517422.filter(c,e,tp)
return c:IsSetCard(0xef) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0xef) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c14517422.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c14517422.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
and Duel.IsExistingMatchingCard(c14517422.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c14517422.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
......
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
function c14536035.sgop(e,tp,eg,ep,ev,re,r,rp) function c14536035.sgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c14536035.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c14536035.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
...@@ -12,7 +12,7 @@ function c16111820.initial_effect(c) ...@@ -12,7 +12,7 @@ function c16111820.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c16111820.filter(c,tp) function c16111820.filter(c,tp)
return c:GetPreviousControler()==tp and c:IsPreviousPosition(POS_DEFENSE) and c:IsReason(REASON_BATTLE) and c:IsLocation(LOCATION_GRAVE) return c:GetPreviousControler()==tp and c:IsPreviousPosition(POS_DEFENSE) and c:IsReason(REASON_BATTLE) and c:IsLocation(LOCATION_GRAVE)
and c:IsSetCard(0x22) and c:GetCode()~=16111820 and c:IsSetCard(0x22) and c:GetCode()~=16111820
end end
function c16111820.condition(e,tp,eg,ep,ev,re,r,rp) function c16111820.condition(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -39,7 +39,7 @@ function c1644289.eqlimit(e,c) ...@@ -39,7 +39,7 @@ function c1644289.eqlimit(e,c)
return c:IsSetCard(0x30) return c:IsSetCard(0x30)
end end
function c1644289.tglimit(e,re,rp) function c1644289.tglimit(e,re,rp)
return rp==1-e:GetHandlerPlayer() and re:IsActiveType(TYPE_TRAP+TYPE_MONSTER) return rp==1-e:GetHandlerPlayer() and re:IsActiveType(TYPE_TRAP+TYPE_MONSTER)
end end
function c1644289.filter(c) function c1644289.filter(c)
return c:IsFaceup() and c:IsSetCard(0x30) return c:IsFaceup() and c:IsSetCard(0x30)
......
...@@ -27,7 +27,7 @@ function c1662004.spfilter(c,e,tp) ...@@ -27,7 +27,7 @@ function c1662004.spfilter(c,e,tp)
return c:IsDefenseBelow(200) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsLevel(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsDefenseBelow(200) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsLevel(3) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c1662004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c1662004.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1662004.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c1662004.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c1662004.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c1662004.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -49,9 +49,9 @@ function c16832845.filter(c) ...@@ -49,9 +49,9 @@ function c16832845.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove() return c:IsType(TYPE_MONSTER) and c:IsAbleToRemove()
end end
function c16832845.target(e,tp,eg,ep,ev,re,r,rp,chk) function c16832845.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
return Duel.IsExistingMatchingCard(c16832845.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and return Duel.IsExistingMatchingCard(c16832845.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and
not Duel.IsExistingMatchingCard(c16832845.chkfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) not Duel.IsExistingMatchingCard(c16832845.chkfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil)
end end
local g=Duel.GetMatchingGroup(c16832845.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil) local g=Duel.GetMatchingGroup(c16832845.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_REMOVE,g,g:GetCount(),0,0)
......
...@@ -22,7 +22,7 @@ function c17266660.costfilter(c) ...@@ -22,7 +22,7 @@ function c17266660.costfilter(c)
end end
function c17266660.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c17266660.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and if chk==0 then return c:IsAbleToGraveAsCost() and
Duel.IsExistingMatchingCard(c17266660.costfilter,tp,LOCATION_HAND,0,1,c) end Duel.IsExistingMatchingCard(c17266660.costfilter,tp,LOCATION_HAND,0,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c17266660.costfilter,tp,LOCATION_HAND,0,1,1,c) local g=Duel.SelectMatchingCard(tp,c17266660.costfilter,tp,LOCATION_HAND,0,1,1,c)
......
...@@ -18,7 +18,7 @@ function c17418744.counterfilter(c) ...@@ -18,7 +18,7 @@ function c17418744.counterfilter(c)
end end
function c17418744.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c17418744.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetCustomActivityCount(17418744,tp,ACTIVITY_SUMMON)==0 if chk==0 then return Duel.GetCustomActivityCount(17418744,tp,ACTIVITY_SUMMON)==0
and Duel.GetCustomActivityCount(17418744,tp,ACTIVITY_SPSUMMON)==0 and Duel.GetCustomActivityCount(17418744,tp,ACTIVITY_SPSUMMON)==0
and Duel.GetCustomActivityCount(17418744,tp,ACTIVITY_FLIPSUMMON)==0 end and Duel.GetCustomActivityCount(17418744,tp,ACTIVITY_FLIPSUMMON)==0 end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
......
...@@ -62,7 +62,7 @@ function c17775525.filter(c) ...@@ -62,7 +62,7 @@ function c17775525.filter(c)
end end
function c17775525.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c17775525.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
return Duel.IsExistingMatchingCard(c17775525.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) return Duel.IsExistingMatchingCard(c17775525.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil)
and not Duel.IsExistingMatchingCard(c17775525.chkfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil) and not Duel.IsExistingMatchingCard(c17775525.chkfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,nil)
end end
local g=Duel.GetMatchingGroup(c17775525.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil) local g=Duel.GetMatchingGroup(c17775525.filter,tp,LOCATION_GRAVE,LOCATION_GRAVE,nil)
......
...@@ -35,7 +35,7 @@ function c19261966.splimit(e,se,sp,st) ...@@ -35,7 +35,7 @@ function c19261966.splimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION return bit.band(st,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
end end
function c19261966.sumlimit(e,c,sump,sumtype,sumpos,targetp,se) function c19261966.sumlimit(e,c,sump,sumtype,sumpos,targetp,se)
return se:IsActiveType(TYPE_SPELL+TYPE_TRAP) and se:IsHasType(EFFECT_TYPE_ACTIONS) return se:IsActiveType(TYPE_SPELL+TYPE_TRAP) and se:IsHasType(EFFECT_TYPE_ACTIONS)
and c:IsLocation(LOCATION_GRAVE+LOCATION_HAND) and c:IsLocation(LOCATION_GRAVE+LOCATION_HAND)
end end
function c19261966.thfilter(c) function c19261966.thfilter(c)
......
...@@ -52,7 +52,7 @@ function c19596712.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c19596712.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c19596712.negcon(e,tp,eg,ep,ev,re,r,rp) function c19596712.negcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_SZONE return rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_SZONE
and re:IsActiveType(TYPE_TRAP) and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_TRAP) and Duel.IsChainDisablable(ev)
end end
function c19596712.negop(e,tp,eg,ep,ev,re,r,rp) function c19596712.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateEffect(ev) then if Duel.NegateEffect(ev) then
......
...@@ -37,7 +37,7 @@ function c1995985.disop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,7 +37,7 @@ function c1995985.disop(e,tp,eg,ep,ev,re,r,rp)
if not re:GetHandler():IsType(TYPE_SPELL) or rp==tp then return end if not re:GetHandler():IsType(TYPE_SPELL) or rp==tp then return end
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
if g and g:IsContains(e:GetHandler()) then if g and g:IsContains(e:GetHandler()) then
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
end end
end end
......
...@@ -72,7 +72,7 @@ function c20057949.filter(c,e,tp) ...@@ -72,7 +72,7 @@ function c20057949.filter(c,e,tp)
return c:IsSetCard(0x31) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x31) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c20057949.sptg1(e,tp,eg,ep,ev,re,r,rp,chk) function c20057949.sptg1(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
and Duel.IsExistingMatchingCard(c20057949.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c20057949.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
......
...@@ -51,7 +51,7 @@ function c20137754.tgop(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c20137754.tgop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c20137754.atkcon(e,tp,eg,ep,ev,re,r,rp) function c20137754.atkcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(20137754)>0 return e:GetHandler():GetFlagEffect(20137754)>0
and aux.dscon() and aux.dscon()
end end
function c20137754.atktg(e,tp,eg,ep,ev,re,r,rp,chk) function c20137754.atktg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -26,7 +26,7 @@ function c20590515.initial_effect(c) ...@@ -26,7 +26,7 @@ function c20590515.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c20590515.target(e,tp,eg,ep,ev,re,r,rp,chk) function c20590515.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,20590515,0,0x11,500,1800,5,RACE_ZOMBIE,ATTRIBUTE_LIGHT) end Duel.IsPlayerCanSpecialSummonMonster(tp,20590515,0,0x11,500,1800,5,RACE_ZOMBIE,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -32,7 +32,7 @@ function c20612097.spfilter(c,e,tp,check) ...@@ -32,7 +32,7 @@ function c20612097.spfilter(c,e,tp,check)
and (check or c:IsSetCard(0x1142)) and (check or c:IsSetCard(0x1142))
end end
function c20612097.target(e,tp,eg,ep,ev,re,r,rp,chk) function c20612097.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chk1=Duel.IsExistingMatchingCard(c20612097.filter,tp,LOCATION_MZONE,0,1,nil) local chk1=Duel.IsExistingMatchingCard(c20612097.filter,tp,LOCATION_MZONE,0,1,nil)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c20612097.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp,chk1) and Duel.IsExistingMatchingCard(c20612097.spfilter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp,chk1)
......
...@@ -47,7 +47,7 @@ function c20747792.spfilter(c,e,tp) ...@@ -47,7 +47,7 @@ function c20747792.spfilter(c,e,tp)
return c:IsSetCard(0x20a2) and not c:IsCode(20747792) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x20a2) and not c:IsCode(20747792) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c20747792.spcon1(e,tp,eg,ep,ev,re,r,rp) function c20747792.spcon1(e,tp,eg,ep,ev,re,r,rp)
return eg:IsContains(e:GetHandler()) and rp==1-tp return eg:IsContains(e:GetHandler()) and rp==1-tp
end end
function c20747792.spcon2(e,tp,eg,ep,ev,re,r,rp) function c20747792.spcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsContains(e:GetHandler()) and Duel.GetAttacker():IsControler(1-tp) return eg:IsContains(e:GetHandler()) and Duel.GetAttacker():IsControler(1-tp)
......
...@@ -48,7 +48,7 @@ function c20822520.aclimit(e,re,tp) ...@@ -48,7 +48,7 @@ function c20822520.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and not re:GetHandler():IsSetCard(0x106e) return re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL) and not re:GetHandler():IsSetCard(0x106e)
end end
function c20822520.target(e,tp,eg,ep,ev,re,r,rp,chk) function c20822520.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<2 then return false end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<2 then return false end
local g=Duel.GetDecktopGroup(tp,2) local g=Duel.GetDecktopGroup(tp,2)
return g:FilterCount(Card.IsAbleToHand,nil)>0 return g:FilterCount(Card.IsAbleToHand,nil)>0
......
...@@ -23,7 +23,7 @@ function c21074344.costfilter(c) ...@@ -23,7 +23,7 @@ function c21074344.costfilter(c)
end end
function c21074344.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c21074344.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and if chk==0 then return c:IsAbleToGraveAsCost() and
Duel.IsExistingMatchingCard(c21074344.costfilter,tp,LOCATION_HAND,0,1,c) end Duel.IsExistingMatchingCard(c21074344.costfilter,tp,LOCATION_HAND,0,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c21074344.costfilter,tp,LOCATION_HAND,0,1,1,c) local g=Duel.SelectMatchingCard(tp,c21074344.costfilter,tp,LOCATION_HAND,0,1,1,c)
......
...@@ -83,7 +83,7 @@ function c21105106.rmcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -83,7 +83,7 @@ function c21105106.rmcost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c21105106.rmtg(e,tp,eg,ep,ev,re,r,rp,chk) function c21105106.rmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,e:GetHandler()) return Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,e:GetHandler())
and not Duel.IsExistingMatchingCard(aux.NOT(Card.IsAbleToRemove),tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,e:GetHandler()) and not Duel.IsExistingMatchingCard(aux.NOT(Card.IsAbleToRemove),tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,e:GetHandler())
end end
local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler()) local g=Duel.GetMatchingGroup(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,e:GetHandler())
......
...@@ -58,7 +58,7 @@ function c21208154.filter(c) ...@@ -58,7 +58,7 @@ function c21208154.filter(c)
end end
function c21208154.adval(e,c) function c21208154.adval(e,c)
local g=Duel.GetMatchingGroup(c21208154.filter,0,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(c21208154.filter,0,LOCATION_MZONE,LOCATION_MZONE,nil)
if g:GetCount()==0 then if g:GetCount()==0 then
return 100 return 100
else else
local tg,val=g:GetMaxGroup(Card.GetAttack) local tg,val=g:GetMaxGroup(Card.GetAttack)
...@@ -74,7 +74,7 @@ function c21208154.regop(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function c21208154.regop(e,tp,eg,ep,ev,re,r,rp)
e1:SetValue(c21208154.aclimit) e1:SetValue(c21208154.aclimit)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2) e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,2)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c21208154.aclimit(e,re,tp) function c21208154.aclimit(e,re,tp)
return re:IsHasType(EFFECT_TYPE_ACTIVATE) return re:IsHasType(EFFECT_TYPE_ACTIVATE)
end end
...@@ -16,7 +16,7 @@ function c21843307.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c21843307.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c21843307.target(e,tp,eg,ep,ev,re,r,rp,chk) function c21843307.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=eg:GetFirst() local ec=eg:GetFirst()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,ec:GetCode(),0,0x11,0,0,ec:GetLevel(),RACE_WARRIOR,ATTRIBUTE_LIGHT) end Duel.IsPlayerCanSpecialSummonMonster(tp,ec:GetCode(),0,0x11,0,0,ec:GetLevel(),RACE_WARRIOR,ATTRIBUTE_LIGHT) end
ec:CreateEffectRelation(e) ec:CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
......
...@@ -27,7 +27,7 @@ end ...@@ -27,7 +27,7 @@ end
function c21924381.activate(e,tp,eg,ep,ev,re,r,rp) function c21924381.activate(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e) if tc:IsFaceup() and tc:IsRelateToEffect(e) and not tc:IsImmuneToEffect(e)
and a:IsAttackable() and a:IsRelateToEffect(e) and not a:IsImmuneToEffect(e)then and a:IsAttackable() and a:IsRelateToEffect(e) and not a:IsImmuneToEffect(e)then
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
...@@ -17,7 +17,7 @@ function c22419772.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,7 +17,7 @@ function c22419772.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c22419772.filter(c,tp,tid) function c22419772.filter(c,tp,tid)
return c:IsAbleToDeck() and c:IsType(TYPE_SPELL) and c:GetTurnID()==tid and c:GetReasonPlayer()==1-tp return c:IsAbleToDeck() and c:IsType(TYPE_SPELL) and c:GetTurnID()==tid and c:GetReasonPlayer()==1-tp
end end
function c22419772.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c22419772.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tid=Duel.GetTurnCount() local tid=Duel.GetTurnCount()
......
...@@ -15,7 +15,7 @@ function c22587018.filter(c,e,tp) ...@@ -15,7 +15,7 @@ function c22587018.filter(c,e,tp)
return c:IsCode(22587018) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(22587018) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c22587018.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c22587018.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
and Duel.IsExistingMatchingCard(c22587018.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c22587018.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -18,7 +18,7 @@ function c23557835.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,7 @@ function c23557835.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,2000) Duel.PayLPCost(tp,2000)
end end
function c23557835.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c23557835.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return if chk==0 then return
(Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c23557835.filter,tp,LOCATION_REMOVED,0,1,nil,e,tp)) or (Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c23557835.filter,tp,LOCATION_REMOVED,0,1,nil,e,tp)) or
(Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c23557835.filter,tp,0,LOCATION_REMOVED,1,nil,e,1-tp)) (Duel.GetLocationCount(1-tp,LOCATION_MZONE)>0 and Duel.IsExistingMatchingCard(c23557835.filter,tp,0,LOCATION_REMOVED,1,nil,e,1-tp))
end end
......
...@@ -13,7 +13,7 @@ function c23681456.filter(c,e,tp) ...@@ -13,7 +13,7 @@ function c23681456.filter(c,e,tp)
return c:IsSetCard(0x71) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x71) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23681456.target(e,tp,eg,ep,ev,re,r,rp,chk) function c23681456.target(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
and Duel.IsExistingMatchingCard(c23681456.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c23681456.filter,tp,LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
end end
......
...@@ -92,7 +92,7 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +92,7 @@ function c24096228.operation(e,tp,eg,ep,ev,re,r,rp)
etc:CreateEffectRelation(te) etc:CreateEffectRelation(te)
etc=g:GetNext() etc=g:GetNext()
end end
if op then if op then
if tc:IsSetCard(0x95) then if tc:IsSetCard(0x95) then
op(e,tp,eg,ep,ev,re,r,rp) op(e,tp,eg,ep,ev,re,r,rp)
else else
......
...@@ -15,7 +15,7 @@ function c24285858.filter(c) ...@@ -15,7 +15,7 @@ function c24285858.filter(c)
end end
function c24285858.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c24285858.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_GRAVE and chkc:GetControler()==tp and c24285858.filter(chkc) end if chkc then return chkc:GetLocation()==LOCATION_GRAVE and chkc:GetControler()==tp and c24285858.filter(chkc) end
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) if chk==0 then return Duel.IsPlayerCanDraw(tp,1)
and Duel.IsExistingTarget(c24285858.filter,tp,LOCATION_GRAVE,0,3,nil) end and Duel.IsExistingTarget(c24285858.filter,tp,LOCATION_GRAVE,0,3,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectTarget(tp,c24285858.filter,tp,LOCATION_GRAVE,0,3,3,nil) local g=Duel.SelectTarget(tp,c24285858.filter,tp,LOCATION_GRAVE,0,3,3,nil)
......
...@@ -12,7 +12,7 @@ function c24566654.cfilter(c) ...@@ -12,7 +12,7 @@ function c24566654.cfilter(c)
return c:IsFaceup() and c:IsCode(70902743) return c:IsFaceup() and c:IsCode(70902743)
end end
function c24566654.condition(e,tp,eg,ep,ev,re,r,rp) function c24566654.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c24566654.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and ep~=tp and re:IsHasType(EFFECT_TYPE_ACTIVATE) return Duel.IsExistingMatchingCard(c24566654.cfilter,tp,LOCATION_ONFIELD,0,1,nil) and ep~=tp and re:IsHasType(EFFECT_TYPE_ACTIVATE)
and aux.damcon1(e,tp,eg,ep,ev,re,r,rp) and aux.damcon1(e,tp,eg,ep,ev,re,r,rp)
end end
function c24566654.operation(e,tp,eg,ep,ev,re,r,rp) function c24566654.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -13,7 +13,7 @@ function c25518020.initial_effect(c) ...@@ -13,7 +13,7 @@ function c25518020.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE) e2:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_MACHINE)) e2:SetTarget(aux.TargetBoolFunction(Card.IsRace,RACE_MACHINE))
e2:SetValue(200) e2:SetValue(200)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--add counter --add counter
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
......
...@@ -13,7 +13,7 @@ end ...@@ -13,7 +13,7 @@ end
function c2584136.eqcon(e,tp,eg,ep,ev,re,r,rp) function c2584136.eqcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and rp==1-tp return c:IsLocation(LOCATION_GRAVE) and c:IsReason(REASON_BATTLE) and rp==1-tp
and bc:IsFaceup() and bc:IsRelateToBattle() and bc:IsFaceup() and bc:IsRelateToBattle()
end end
function c2584136.eqlimit(e,c) function c2584136.eqlimit(e,c)
......
...@@ -33,7 +33,7 @@ function c25988873.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c25988873.spop(e,tp,eg,ep,ev,re,r,rp)
if not tc then return end if not tc then return end
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) or c:IsControler(1-tp) if c:IsFacedown() or not c:IsRelateToEffect(e) or c:IsControler(1-tp)
or Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end or Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.BreakEffect() Duel.BreakEffect()
if not Duel.Equip(tp,c,tc,false) then return end if not Duel.Equip(tp,c,tc,false) then return end
......
--捕食植物プテロペンテス --捕食植物プテロペンテス
function c26308721.initial_effect(c) function c26308721.initial_effect(c)
--counter --counter
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -41,7 +41,7 @@ function c2645637.spfilter(c) ...@@ -41,7 +41,7 @@ function c2645637.spfilter(c)
return c:GetSummonLocation()==LOCATION_GRAVE return c:GetSummonLocation()==LOCATION_GRAVE
end end
function c2645637.atkcon2(e,tp,eg,ep,ev,re,r,rp) function c2645637.atkcon2(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c2645637.spfilter,1,nil) and not eg:IsContains(e:GetHandler()) return eg:IsExists(c2645637.spfilter,1,nil) and not eg:IsContains(e:GetHandler())
and not (re and re:IsActivated() and re:IsActiveType(TYPE_MONSTER) and not (re and re:IsActivated() and re:IsActiveType(TYPE_MONSTER)
and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_GRAVE) and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_GRAVE)
end end
......
...@@ -39,7 +39,7 @@ function c26640671.initial_effect(c) ...@@ -39,7 +39,7 @@ function c26640671.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c26640671.filter(c,ec) function c26640671.filter(c,ec)
return c:IsFaceup() and not ec:IsHasCardTarget(c) and c:IsRace(RACE_INSECT) return c:IsFaceup() and not ec:IsHasCardTarget(c) and c:IsRace(RACE_INSECT)
end end
function c26640671.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c26640671.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c26640671.filter(chkc,e:GetHandler()) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c26640671.filter(chkc,e:GetHandler()) end
......
...@@ -18,7 +18,7 @@ function c27174286.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,7 @@ function c27174286.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end end
function c27174286.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c27174286.tg(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
and Duel.IsExistingMatchingCard(c27174286.filter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c27174286.filter,tp,LOCATION_REMOVED,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_REMOVED) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_REMOVED)
end end
......
...@@ -51,7 +51,7 @@ end ...@@ -51,7 +51,7 @@ end
function c27407330.rmop(e,tp,eg,ep,ev,re,r,rp) function c27407330.rmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c27407330.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c27407330.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
end end
end end
...@@ -24,7 +24,7 @@ function c282886.filter(c,e,tp) ...@@ -24,7 +24,7 @@ function c282886.filter(c,e,tp)
return c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsSetCard(0x74) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
end end
function c282886.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c282886.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
and Duel.IsExistingMatchingCard(c282886.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c282886.filter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -15,7 +15,7 @@ function c28649820.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -15,7 +15,7 @@ function c28649820.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2 return Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2
end end
function c28649820.target(e,tp,eg,ep,ev,re,r,rp,chk) function c28649820.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,28649820,0,0x11,1600,1800,4,RACE_REPTILE,ATTRIBUTE_EARTH) end Duel.IsPlayerCanSpecialSummonMonster(tp,28649820,0,0x11,1600,1800,4,RACE_REPTILE,ATTRIBUTE_EARTH) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -16,7 +16,7 @@ function c28741524.filter(c,e,tp) ...@@ -16,7 +16,7 @@ function c28741524.filter(c,e,tp)
end end
function c28741524.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c28741524.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c28741524.filter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c28741524.filter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c28741524.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c28741524.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then ft=1 end
......
...@@ -32,7 +32,7 @@ function c29590905.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c29590905.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateAttack() Duel.NegateAttack()
local a=ga:GetFirst() local a=ga:GetFirst()
local d=gd:GetFirst() local d=gd:GetFirst()
if a:IsAttackable() and not a:IsImmuneToEffect(e) and not d:IsImmuneToEffect(e) then if a:IsAttackable() and not a:IsImmuneToEffect(e) and not d:IsImmuneToEffect(e) then
Duel.CalculateDamage(a,d) Duel.CalculateDamage(a,d)
Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1) Duel.SkipPhase(1-tp,PHASE_BATTLE,RESET_PHASE+PHASE_BATTLE_STEP,1)
end end
......
...@@ -27,7 +27,7 @@ function c32134638.tfilter(c,tp) ...@@ -27,7 +27,7 @@ function c32134638.tfilter(c,tp)
end end
function c32134638.negcon(e,tp,eg,ep,ev,re,r,rp) function c32134638.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(32134638)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(32134638)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c32134638.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c32134638.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
function c32134638.negop(e,tp,eg,ep,ev,re,r,rp) function c32134638.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -20,7 +20,7 @@ function c32362575.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c32362575.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
local spcard=nil local spcard=nil
while tc do while tc do
if tc:GetSequence()>seq then if tc:GetSequence()>seq then
seq=tc:GetSequence() seq=tc:GetSequence()
spcard=tc spcard=tc
end end
......
...@@ -19,7 +19,7 @@ function c32603633.filter(c,e,tp) ...@@ -19,7 +19,7 @@ function c32603633.filter(c,e,tp)
and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,c:GetCode()) and not Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,c:GetCode())
end end
function c32603633.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c32603633.tg(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
and Duel.IsExistingMatchingCard(c32603633.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c32603633.filter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
end end
......
...@@ -20,7 +20,7 @@ function c3280747.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -20,7 +20,7 @@ function c3280747.activate(e,tp,eg,ep,ev,re,r,rp)
local p=1 local p=1
for i=1,6 do t[i]=i end for i=1,6 do t[i]=i end
local a1=Duel.AnnounceNumber(tp,table.unpack(t)) local a1=Duel.AnnounceNumber(tp,table.unpack(t))
for i=1,6 do for i=1,6 do
if a1~=i then t[p]=i p=p+1 end if a1~=i then t[p]=i p=p+1 end
end end
t[p]=nil t[p]=nil
......
...@@ -44,7 +44,7 @@ function c33491462.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -44,7 +44,7 @@ function c33491462.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c33491462.spop(e,tp,eg,ep,ev,re,r,rp) function c33491462.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and c:IsRelateToEffect(e) then if Duel.GetLocationCount(tp,LOCATION_MZONE)>1 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c33491462.spfilter,tp,LOCATION_HAND,0,1,1,c,e,tp) local g=Duel.SelectMatchingCard(tp,c33491462.spfilter,tp,LOCATION_HAND,0,1,1,c,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
......
...@@ -68,6 +68,6 @@ function c34822850.atlimit(e,c) ...@@ -68,6 +68,6 @@ function c34822850.atlimit(e,c)
return c:IsFaceup() and c:IsSetCard(0xbb) and Duel.IsExistingMatchingCard(c34822850.filter,c:GetControler(),LOCATION_MZONE,0,1,nil,c:GetLevel()) return c:IsFaceup() and c:IsSetCard(0xbb) and Duel.IsExistingMatchingCard(c34822850.filter,c:GetControler(),LOCATION_MZONE,0,1,nil,c:GetLevel())
end end
function c34822850.tglimit(e,c) function c34822850.tglimit(e,c)
return c:IsSetCard(0xbb) return c:IsSetCard(0xbb)
and Duel.IsExistingMatchingCard(c34822850.filter,c:GetControler(),LOCATION_MZONE,0,1,nil,c:GetLevel()) and Duel.IsExistingMatchingCard(c34822850.filter,c:GetControler(),LOCATION_MZONE,0,1,nil,c:GetLevel())
end end
...@@ -53,7 +53,7 @@ function c3580032.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -53,7 +53,7 @@ function c3580032.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTarget(c3580032.splimit) e1:SetTarget(c3580032.splimit)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c3580032.splimit(e,c,sump,sumtype,sumpos,targetp,se) function c3580032.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return not c:IsSetCard(0x107a) return not c:IsSetCard(0x107a)
end end
...@@ -64,7 +64,7 @@ function c3580032.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -64,7 +64,7 @@ function c3580032.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>-1
and Duel.IsExistingMatchingCard(c3580032.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c3580032.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c3580032.spop(e,tp,eg,ep,ev,re,r,rp) function c3580032.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
......
...@@ -82,7 +82,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -82,7 +82,7 @@ function c36006208.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,3,e:GetHandler()) local g=Duel.SelectTarget(tp,aux.TRUE,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,3,e:GetHandler())
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c36006208.activate(e,tp,eg,ep,ev,re,r,rp) function c36006208.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local sg=g:Filter(Card.IsRelateToEffect,nil,e) local sg=g:Filter(Card.IsRelateToEffect,nil,e)
......
...@@ -25,7 +25,7 @@ function c368382.tfilter(c,tp) ...@@ -25,7 +25,7 @@ function c368382.tfilter(c,tp)
end end
function c368382.negcon(e,tp,eg,ep,ev,re,r,rp) function c368382.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(368382)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(368382)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c368382.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c368382.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
function c368382.negop(e,tp,eg,ep,ev,re,r,rp) function c368382.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -38,7 +38,7 @@ function c36870345.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -38,7 +38,7 @@ function c36870345.spop(e,tp,eg,ep,ev,re,r,rp)
if not tc then return end if not tc then return end
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) or c:IsControler(1-tp) if c:IsFacedown() or not c:IsRelateToEffect(e) or c:IsControler(1-tp)
or Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end or Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.BreakEffect() Duel.BreakEffect()
if not Duel.Equip(tp,c,tc,false) then return end if not Duel.Equip(tp,c,tc,false) then return end
......
...@@ -14,7 +14,7 @@ function c37198732.cfilter(c) ...@@ -14,7 +14,7 @@ function c37198732.cfilter(c)
return c:GetLevel()>0 and c:IsAbleToGraveAsCost() return c:GetLevel()>0 and c:IsAbleToGraveAsCost()
end end
function c37198732.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c37198732.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if Duel.IsExistingMatchingCard(c37198732.cfilter,tp,LOCATION_HAND,0,1,nil) then if Duel.IsExistingMatchingCard(c37198732.cfilter,tp,LOCATION_HAND,0,1,nil) then
e:SetLabel(1) e:SetLabel(1)
return true return true
......
...@@ -3,5 +3,5 @@ function c37626500.initial_effect(c) ...@@ -3,5 +3,5 @@ function c37626500.initial_effect(c)
aux.AddRitualProcEqual2(c,c37626500.ritual_filter) aux.AddRitualProcEqual2(c,c37626500.ritual_filter)
end end
function c37626500.ritual_filter(c) function c37626500.ritual_filter(c)
return c:IsType(TYPE_RITUAL) and c:IsAttribute(ATTRIBUTE_LIGHT) return c:IsType(TYPE_RITUAL) and c:IsAttribute(ATTRIBUTE_LIGHT)
end end
...@@ -22,7 +22,7 @@ function c38538445.initial_effect(c) ...@@ -22,7 +22,7 @@ function c38538445.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c38538445.condition(e,tp,eg,ep,ev,re,r,rp) function c38538445.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp return ep~=tp
end end
function c38538445.target(e,tp,eg,ep,ev,re,r,rp,chk) function c38538445.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -32,7 +32,7 @@ function c38891741.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c38891741.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c38891741.activate(e,tp,eg,ep,ev,re,r,rp) function c38891741.activate(e,tp,eg,ep,ev,re,r,rp)
if not Duel.NegateActivation(ev) then return end if not Duel.NegateActivation(ev) then return end
if re:GetHandler():IsRelateToEffect(re) then if re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -28,7 +28,7 @@ function c38988538.tfilter(c,tp) ...@@ -28,7 +28,7 @@ function c38988538.tfilter(c,tp)
end end
function c38988538.negcon(e,tp,eg,ep,ev,re,r,rp) function c38988538.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(38988538)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(38988538)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c38988538.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c38988538.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
function c38988538.negop(e,tp,eg,ep,ev,re,r,rp) function c38988538.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -56,7 +56,7 @@ function c39712330.activate1(e,tp,eg,ep,ev,re,r,rp) ...@@ -56,7 +56,7 @@ function c39712330.activate1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c39712330.filter,tp,LOCATION_HAND,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c39712330.filter,tp,LOCATION_HAND,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
if tc:IsSummonable(true,nil) and (not tc:IsMSetable(true,nil) if tc:IsSummonable(true,nil) and (not tc:IsMSetable(true,nil)
or Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENSE)==POS_FACEUP_ATTACK) then or Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENSE)==POS_FACEUP_ATTACK) then
Duel.Summon(tp,tc,true,nil) Duel.Summon(tp,tc,true,nil)
else Duel.MSet(tp,tc,true,nil) end else Duel.MSet(tp,tc,true,nil) end
......
...@@ -25,7 +25,7 @@ function c39829561.filter(c) ...@@ -25,7 +25,7 @@ function c39829561.filter(c)
return c:IsFaceup() and c:IsCode(83986578) return c:IsFaceup() and c:IsCode(83986578)
end end
function c39829561.condition(e,tp,eg,ep,ev,re,r,rp) function c39829561.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() and not Duel.IsExistingMatchingCard(c39829561.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) return tp==Duel.GetTurnPlayer() and not Duel.IsExistingMatchingCard(c39829561.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
end end
function c39829561.target(e,tp,eg,ep,ev,re,r,rp,chk) function c39829561.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -41,6 +41,6 @@ function c4064256.sumlimit(e,c,tp,sumtp) ...@@ -41,6 +41,6 @@ function c4064256.sumlimit(e,c,tp,sumtp)
end end
function c4064256.condition(e) function c4064256.condition(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_NECRO_VALLEY) return not Duel.IsPlayerAffectedByEffect(tp,EFFECT_NECRO_VALLEY)
and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_NECRO_VALLEY) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_NECRO_VALLEY)
end end
...@@ -35,7 +35,7 @@ function c41158734.spfilter(c,e,tp) ...@@ -35,7 +35,7 @@ function c41158734.spfilter(c,e,tp)
end end
function c41158734.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c41158734.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c41158734.spfilter(chkc,e,tp) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c41158734.spfilter(chkc,e,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c41158734.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c41158734.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c41158734.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c41158734.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
...@@ -16,7 +16,7 @@ function c4192696.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c4192696.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and 1-tp==rp and bit.band(r,REASON_EFFECT)~=0 return ep==tp and 1-tp==rp and bit.band(r,REASON_EFFECT)~=0
end end
function c4192696.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c4192696.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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,ev) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,ev)
......
...@@ -57,7 +57,7 @@ function c41999284.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -57,7 +57,7 @@ function c41999284.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c41999284.spop(e,tp,eg,ep,ev,re,r,rp) function c41999284.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) then if c:IsRelateToEffect(e) then
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -67,7 +67,7 @@ function c42256406.defcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,7 +67,7 @@ function c42256406.defcost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert(ct,i) table.insert(ct,i)
end end
end end
if #ct==1 then if #ct==1 then
Duel.DiscardDeck(tp,ct[1],REASON_COST) Duel.DiscardDeck(tp,ct[1],REASON_COST)
e:SetLabel(1) e:SetLabel(1)
else else
......
...@@ -26,7 +26,7 @@ function c42793609.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -26,7 +26,7 @@ function c42793609.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tc=g:GetFirst() local tc=g:GetFirst()
local sc=g:GetNext() local sc=g:GetNext()
if tc:IsFacedown() or not tc:IsRelateToEffect(e) if tc:IsFacedown() or not tc:IsRelateToEffect(e)
or sc:IsFacedown() or not sc:IsRelateToEffect(e) then return end or sc:IsFacedown() or not sc:IsRelateToEffect(e) then return end
local ac=e:GetLabelObject() local ac=e:GetLabelObject()
if tc==ac then tc=sc end if tc==ac then tc=sc end
......
...@@ -17,7 +17,7 @@ function c43114901.thcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c43114901.thcon(e,tp,eg,ep,ev,re,r,rp)
if not aux.IsDualState(e) then return false end if not aux.IsDualState(e) then return false end
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler() return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler()
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c43114901.filter(c) function c43114901.filter(c)
return c:IsSetCard(0x1047) and c:IsAbleToHand() return c:IsSetCard(0x1047) and c:IsAbleToHand()
......
...@@ -32,7 +32,7 @@ function c43641473.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c43641473.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc==ec then tc=g:GetNext() end if tc==ec then tc=g:GetNext() end
if ec:IsFaceup() and ec:IsRelateToEffect(e) then if ec:IsFaceup() and ec:IsRelateToEffect(e) then
Duel.Equip(tp,ec,tc) Duel.Equip(tp,ec,tc)
end end
end end
...@@ -42,7 +42,7 @@ function c44330098.sumcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function c44330098.sumcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and 1-tp==rp and not Duel.IsExistingMatchingCard(c44330098.filter,tp,LOCATION_ONFIELD,0,1,nil) return ep==tp and 1-tp==rp and not Duel.IsExistingMatchingCard(c44330098.filter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c44330098.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function c44330098.sumtg(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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -15,7 +15,7 @@ end ...@@ -15,7 +15,7 @@ end
function c44689688.spcon(e,tp,eg,ep,ev,re,r,rp) function c44689688.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler() return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler()
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c44689688.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c44689688.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -80,7 +80,7 @@ end ...@@ -80,7 +80,7 @@ end
function c44944304.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c44944304.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp)
and chkc:IsCanBeSpecialSummoned(e,0,tp,false,false) end and chkc:IsCanBeSpecialSummoned(e,0,tp,false,false) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingTarget(c44944304.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end and Duel.IsExistingTarget(c44944304.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c44944304.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp) local g=Duel.SelectTarget(tp,c44944304.spfilter,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
......
...@@ -17,7 +17,7 @@ function c45305419.initial_effect(c) ...@@ -17,7 +17,7 @@ function c45305419.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c45305419.filter(c,e,tp) function c45305419.filter(c,e,tp)
return c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,2,c,c:GetCode()) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_GRAVE,0,2,c,c:GetCode())
end end
function c45305419.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c45305419.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
--レッド・ウルフ --レッド・ウルフ
function c45313993.initial_effect(c) function c45313993.initial_effect(c)
--summon success --summon success
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -52,7 +52,7 @@ function c45383307.drfilter(c) ...@@ -52,7 +52,7 @@ function c45383307.drfilter(c)
return c:IsSetCard(0xe2) and c:IsType(TYPE_MONSTER) return c:IsSetCard(0xe2) and c:IsType(TYPE_MONSTER)
end end
function c45383307.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c45383307.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return eg:IsExists(c45383307.drfilter,1,nil) if chk==0 then return eg:IsExists(c45383307.drfilter,1,nil)
and Duel.IsPlayerCanDraw(tp,1) end and Duel.IsPlayerCanDraw(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_HANDES,nil,0,tp,1)
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1) Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
--紋章獣ユニコーン --紋章獣ユニコーン
function c45705025.initial_effect(c) function c45705025.initial_effect(c)
--revive --revive
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(45705025,0)) e1:SetDescription(aux.Stringid(45705025,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
...@@ -81,7 +81,7 @@ function c46035545.pfilter(c) ...@@ -81,7 +81,7 @@ function c46035545.pfilter(c)
end end
function c46035545.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c46035545.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c46035545.thfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c46035545.thfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c46035545.thfilter,tp,LOCATION_MZONE,0,1,nil) if chk==0 then return Duel.IsExistingTarget(c46035545.thfilter,tp,LOCATION_MZONE,0,1,nil)
and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) and (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1))
and Duel.IsExistingMatchingCard(c46035545.pfilter,tp,LOCATION_EXTRA,0,1,nil) end and Duel.IsExistingMatchingCard(c46035545.pfilter,tp,LOCATION_EXTRA,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
...@@ -15,7 +15,7 @@ end ...@@ -15,7 +15,7 @@ end
function c46609443.spcon(e,tp,eg,ep,ev,re,r,rp) function c46609443.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler() return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler()
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c46609443.filter(c,e,tp) function c46609443.filter(c,e,tp)
return c:IsAttackBelow(1600) and c:IsLevelAbove(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsAttackBelow(1600) and c:IsLevelAbove(5) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -76,7 +76,7 @@ function c46647144.tkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -76,7 +76,7 @@ function c46647144.tkop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0
or Duel.GetLocationCount(1-tp,LOCATION_MZONE)<=0 or Duel.GetLocationCount(1-tp,LOCATION_MZONE)<=0
or not Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE) or not Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE)
or not Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,1-tp) or not Duel.IsPlayerCanSpecialSummonMonster(tp,46647145,0xfe,0x4011,0,0,1,RACE_MACHINE,ATTRIBUTE_DARK,POS_FACEUP_DEFENSE,1-tp)
or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end or Duel.IsPlayerAffectedByEffect(tp,59822133) then return end
local token1=Duel.CreateToken(tp,46647145) local token1=Duel.CreateToken(tp,46647145)
local token2=Duel.CreateToken(tp,46647145) local token2=Duel.CreateToken(tp,46647145)
......
...@@ -32,7 +32,7 @@ function c47171541.cfilter(c) ...@@ -32,7 +32,7 @@ function c47171541.cfilter(c)
end end
function c47171541.target(e,tp,eg,ep,ev,re,r,rp,chk) function c47171541.target(e,tp,eg,ep,ev,re,r,rp,chk)
local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then if chk==0 then
e:SetLabel(0) e:SetLabel(0)
return res and Duel.IsExistingTarget(c47171541.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp) return res and Duel.IsExistingTarget(c47171541.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp)
end end
......
...@@ -11,7 +11,7 @@ function c48356796.initial_effect(c) ...@@ -11,7 +11,7 @@ function c48356796.initial_effect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_DRAW_COUNT) e2:SetCode(EFFECT_DRAW_COUNT)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(1,0) e2:SetTargetRange(1,0)
e2:SetValue(2) e2:SetValue(2)
e2:SetCondition(c48356796.drawcon) e2:SetCondition(c48356796.drawcon)
......
...@@ -16,7 +16,7 @@ function c50584941.cfilter(c,tp) ...@@ -16,7 +16,7 @@ function c50584941.cfilter(c,tp)
and Duel.IsExistingTarget(c50584941.filter,tp,LOCATION_MZONE,0,1,nil,code) and Duel.IsExistingTarget(c50584941.filter,tp,LOCATION_MZONE,0,1,nil,code)
end end
function c50584941.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c50584941.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if Duel.IsExistingMatchingCard(c50584941.cfilter,tp,LOCATION_GRAVE,0,1,nil,tp) then if Duel.IsExistingMatchingCard(c50584941.cfilter,tp,LOCATION_GRAVE,0,1,nil,tp) then
e:SetLabel(1) e:SetLabel(1)
return true return true
......
...@@ -16,7 +16,7 @@ function c50613779.spcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -16,7 +16,7 @@ function c50613779.spcon(e,tp,eg,ep,ev,re,r,rp)
return ep==tp and bit.band(r,REASON_EFFECT)~=0 return ep==tp and bit.band(r,REASON_EFFECT)~=0
end end
function c50613779.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c50613779.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
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev) Duel.SetOperationInfo(0,CATEGORY_RECOVER,nil,0,tp,ev)
......
...@@ -26,7 +26,7 @@ function c50669347.desfilter(c,e,tp,g) ...@@ -26,7 +26,7 @@ function c50669347.desfilter(c,e,tp,g)
and Duel.IsExistingMatchingCard(c50669347.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,c) and Duel.IsExistingMatchingCard(c50669347.spfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,c)
end end
function c50669347.spfilter(c,e,tp,dc) function c50669347.spfilter(c,e,tp,dc)
return c:IsSetCard(0x11f) and c:IsType(TYPE_MONSTER) and not c:IsOriginalCodeRule(dc:GetOriginalCodeRule()) return c:IsSetCard(0x11f) and c:IsType(TYPE_MONSTER) and not c:IsOriginalCodeRule(dc:GetOriginalCodeRule())
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c50669347.target(e,tp,eg,ep,ev,re,r,rp,chk) function c50669347.target(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -14,7 +14,7 @@ function c50781944.initial_effect(c) ...@@ -14,7 +14,7 @@ function c50781944.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c50781944.filter(c,tp) function c50781944.filter(c,tp)
return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and return c:IsReason(REASON_DESTROY) and c:IsPreviousLocation(LOCATION_MZONE) and
c:GetPreviousControler()==tp and c:IsType(TYPE_MONSTER) c:GetPreviousControler()==tp and c:IsType(TYPE_MONSTER)
end end
function c50781944.reccon(e,tp,eg,ep,ev,re,r,rp) function c50781944.reccon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -36,7 +36,7 @@ function c52035300.filter(c) ...@@ -36,7 +36,7 @@ function c52035300.filter(c)
end end
function c52035300.condition(e,tp,eg,ep,ev,re,r,rp) function c52035300.condition(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0 return tp==Duel.GetTurnPlayer() and Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
and not Duel.IsExistingMatchingCard(c52035300.filter,tp,LOCATION_GRAVE,0,1,nil) and not Duel.IsExistingMatchingCard(c52035300.filter,tp,LOCATION_GRAVE,0,1,nil)
end end
function c52035300.target(e,tp,eg,ep,ev,re,r,rp,chk) function c52035300.target(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
......
...@@ -39,7 +39,7 @@ function c52977572.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c52977572.spop(e,tp,eg,ep,ev,re,r,rp)
if not tc then return end if not tc then return end
Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,false,false,POS_FACEUP)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsFacedown() or not c:IsRelateToEffect(e) or c:IsControler(1-tp) if c:IsFacedown() or not c:IsRelateToEffect(e) or c:IsControler(1-tp)
or Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end or Duel.GetLocationCount(tp,LOCATION_SZONE)<=0 then return end
Duel.BreakEffect() Duel.BreakEffect()
if not Duel.Equip(tp,c,tc,false) then return end if not Duel.Equip(tp,c,tc,false) then return end
......
...@@ -27,7 +27,7 @@ function c53291093.spfilter(c,e,tp) ...@@ -27,7 +27,7 @@ function c53291093.spfilter(c,e,tp)
end end
function c53291093.activate(e,tp,eg,ep,ev,re,r,rp) function c53291093.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0 if tc:IsFaceup() and tc:IsRelateToEffect(e) and Duel.Destroy(tc,REASON_EFFECT)~=0
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
local g=Duel.GetMatchingGroup(c53291093.spfilter,tp,LOCATION_DECK,0,nil,e,tp) local g=Duel.GetMatchingGroup(c53291093.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(53291093,0)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(53291093,0)) then
......
...@@ -90,7 +90,7 @@ function c54451023.eqlimit(e,c) ...@@ -90,7 +90,7 @@ function c54451023.eqlimit(e,c)
return c:GetControler()==e:GetOwnerPlayer() and c:IsRace(RACE_PLANT) return c:GetControler()==e:GetOwnerPlayer() and c:IsRace(RACE_PLANT)
end end
function c54451023.spcon(e,tp,eg,ep,ev,re,r,rp) function c54451023.spcon(e,tp,eg,ep,ev,re,r,rp)
return bit.band(e:GetHandler():GetReason(),REASON_EFFECT+REASON_DESTROY)==REASON_EFFECT+REASON_DESTROY return bit.band(e:GetHandler():GetReason(),REASON_EFFECT+REASON_DESTROY)==REASON_EFFECT+REASON_DESTROY
and e:GetHandler():GetEquipTarget() and e:GetHandler():GetEquipTarget()
end end
function c54451023.spfilter(c,e,tp) function c54451023.spfilter(c,e,tp)
......
...@@ -26,7 +26,7 @@ function c54913680.spfilter(c,e,tp) ...@@ -26,7 +26,7 @@ function c54913680.spfilter(c,e,tp)
end end
function c54913680.target(e,tp,eg,ep,ev,re,r,rp,chk) function c54913680.target(e,tp,eg,ep,ev,re,r,rp,chk)
local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then if chk==0 then
e:SetLabel(0) e:SetLabel(0)
return res and Duel.IsExistingMatchingCard(c54913680.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) return res and Duel.IsExistingMatchingCard(c54913680.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
end end
......
...@@ -30,7 +30,7 @@ function c5592689.filter(c) ...@@ -30,7 +30,7 @@ function c5592689.filter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) return c:IsType(TYPE_SPELL+TYPE_TRAP)
end end
function c5592689.sscon(e,tp,eg,ep,ev,re,r,rp) function c5592689.sscon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer() and not Duel.IsExistingMatchingCard(c5592689.filter,tp,LOCATION_ONFIELD,0,1,nil) return tp==Duel.GetTurnPlayer() and not Duel.IsExistingMatchingCard(c5592689.filter,tp,LOCATION_ONFIELD,0,1,nil)
end end
function c5592689.sstg(e,tp,eg,ep,ev,re,r,rp,chk) function c5592689.sstg(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
......
...@@ -28,7 +28,7 @@ end ...@@ -28,7 +28,7 @@ end
function c56535497.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c56535497.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false end if chkc then return false end
if chk==0 then return true end if chk==0 then return true end
if Duel.GetCurrentPhase()==PHASE_DAMAGE or if Duel.GetCurrentPhase()==PHASE_DAMAGE or
(Duel.IsExistingTarget(c56535497.filter,tp,LOCATION_MZONE,LOCATION_MZONE,2,nil) and Duel.SelectYesNo(tp,aux.Stringid(56535497,0))) then (Duel.IsExistingTarget(c56535497.filter,tp,LOCATION_MZONE,LOCATION_MZONE,2,nil) and Duel.SelectYesNo(tp,aux.Stringid(56535497,0))) then
e:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(56535497,2)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(56535497,2))
...@@ -37,7 +37,7 @@ function c56535497.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -37,7 +37,7 @@ function c56535497.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(56535497,3)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(56535497,3))
Duel.SelectTarget(tp,c56535497.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,rg:GetFirst()) Duel.SelectTarget(tp,c56535497.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,rg:GetFirst())
e:GetHandler():RegisterFlagEffect(56535497,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(56535497,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
else else
e:SetLabelObject(nil) e:SetLabelObject(nil)
e:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
end end
......
...@@ -16,7 +16,7 @@ function c57019473.filter(c) ...@@ -16,7 +16,7 @@ function c57019473.filter(c)
and c:GetCode()~=57019473 and c:IsAttackBelow(1600) and c:IsAbleToRemove() and c:GetCode()~=57019473 and c:IsAttackBelow(1600) and c:IsAbleToRemove()
end end
function c57019473.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c57019473.rmtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57019473.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c57019473.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c57019473.filter,tp,LOCATION_GRAVE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c57019473.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectTarget(tp,c57019473.filter,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectTarget(tp,c57019473.filter,tp,LOCATION_GRAVE,0,1,1,nil)
......
...@@ -19,7 +19,7 @@ function c57409948.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function c57409948.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) and tc:IsFacedown() then if tc and tc:IsRelateToEffect(e) and tc:IsFacedown() then
Duel.ConfirmCards(tp,tc) Duel.ConfirmCards(tp,tc)
if tc:IsType(TYPE_EFFECT) then if tc:IsType(TYPE_EFFECT) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
......
...@@ -74,9 +74,9 @@ function c58330108.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -74,9 +74,9 @@ function c58330108.target(e,tp,eg,ep,ev,re,r,rp,chk)
local gc=Duel.GetMatchingGroup(c58330108.filter,tp,LOCATION_GRAVE,0,nil):GetClassCount(Card.GetCode) local gc=Duel.GetMatchingGroup(c58330108.filter,tp,LOCATION_GRAVE,0,nil):GetClassCount(Card.GetCode)
if chk==0 then if chk==0 then
local b1=Duel.IsExistingMatchingCard(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) local b1=Duel.IsExistingMatchingCard(nil,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) local b2=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
and not Duel.IsExistingMatchingCard(aux.NOT(Card.IsAbleToRemove),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c) and not Duel.IsExistingMatchingCard(aux.NOT(Card.IsAbleToRemove),tp,LOCATION_ONFIELD,LOCATION_ONFIELD,1,c)
local b3=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,c) local b3=Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,c)
and not Duel.IsExistingMatchingCard(aux.NOT(Card.IsAbleToRemove),tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,c) and not Duel.IsExistingMatchingCard(aux.NOT(Card.IsAbleToRemove),tp,LOCATION_ONFIELD+LOCATION_GRAVE,LOCATION_ONFIELD+LOCATION_GRAVE,1,c)
return (gc==1 and b1) or (gc==2 and b2) or (gc>2 and b3) return (gc==1 and b1) or (gc==2 and b2) or (gc>2 and b3)
end end
......
...@@ -24,7 +24,7 @@ function c58577036.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c58577036.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=g:GetFirst() local tc=g:GetFirst()
local spcard=nil local spcard=nil
while tc do while tc do
if tc:GetSequence()>seq then if tc:GetSequence()>seq then
seq=tc:GetSequence() seq=tc:GetSequence()
spcard=tc spcard=tc
end end
......
...@@ -73,7 +73,7 @@ end ...@@ -73,7 +73,7 @@ end
function c59577547.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c59577547.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsReleasable() end if chk==0 then return e:GetHandler():IsReleasable() end
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function c59577547.target(e,tp,eg,ep,ev,re,r,rp,chk) function c59577547.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetTargetPlayer(tp) Duel.SetTargetPlayer(tp)
...@@ -83,4 +83,4 @@ end ...@@ -83,4 +83,4 @@ end
function c59577547.operation(e,tp,eg,ep,ev,re,r,rp) function c59577547.operation(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)
Duel.Recover(p,d,REASON_EFFECT) Duel.Recover(p,d,REASON_EFFECT)
end end
...@@ -25,7 +25,7 @@ function c5975022.initial_effect(c) ...@@ -25,7 +25,7 @@ function c5975022.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c5975022.desfilter(c) function c5975022.desfilter(c)
return c:IsFaceup() return c:IsFaceup()
end end
function c5975022.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c5975022.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:GetLocation()==LOCATION_MZONE and c5975022.desfilter(chkc) end if chkc then return chkc:GetLocation()==LOCATION_MZONE and c5975022.desfilter(chkc) end
......
...@@ -3,5 +3,5 @@ function c59820352.initial_effect(c) ...@@ -3,5 +3,5 @@ function c59820352.initial_effect(c)
aux.AddRitualProcEqual2(c,c59820352.ritual_filter) aux.AddRitualProcEqual2(c,c59820352.ritual_filter)
end end
function c59820352.ritual_filter(c) function c59820352.ritual_filter(c)
return c:IsType(TYPE_RITUAL) and c:IsAttribute(ATTRIBUTE_EARTH) return c:IsType(TYPE_RITUAL) and c:IsAttribute(ATTRIBUTE_EARTH)
end end
...@@ -17,7 +17,7 @@ function c60312997.filter(c,lv) ...@@ -17,7 +17,7 @@ function c60312997.filter(c,lv)
return c:IsLevelBelow(lv) and c:IsType(TYPE_SYNCHRO) and c:IsStatus(STATUS_PROC_COMPLETE) return c:IsLevelBelow(lv) and c:IsType(TYPE_SYNCHRO) and c:IsStatus(STATUS_PROC_COMPLETE)
end end
function c60312997.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60312997.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c60312997.filter(chkc,eg:GetFirst():GetLevel()) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c60312997.filter(chkc,eg:GetFirst():GetLevel()) end
if chk==0 then return Duel.IsExistingTarget(c60312997.filter,tp,LOCATION_GRAVE,0,1,nil,eg:GetFirst():GetLevel()) end if chk==0 then return Duel.IsExistingTarget(c60312997.filter,tp,LOCATION_GRAVE,0,1,nil,eg:GetFirst():GetLevel()) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c60312997.filter,tp,LOCATION_GRAVE,0,1,1,nil,eg:GetFirst():GetLevel()) Duel.SelectTarget(tp,c60312997.filter,tp,LOCATION_GRAVE,0,1,1,nil,eg:GetFirst():GetLevel())
......
...@@ -15,7 +15,7 @@ function c60482781.initial_effect(c) ...@@ -15,7 +15,7 @@ function c60482781.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_LIMIT_SUMMON_PROC) e2:SetCode(EFFECT_LIMIT_SUMMON_PROC)
e2:SetCondition(c60482781.sumcon) e2:SetCondition(c60482781.sumcon)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
c60482781.lvdn={47507260,74591968} c60482781.lvdn={47507260,74591968}
function c60482781.descon(e,tp,eg,ep,ev,re,r,rp) function c60482781.descon(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -41,7 +41,7 @@ end ...@@ -41,7 +41,7 @@ end
c6165656.xyz_number=88 c6165656.xyz_number=88
--target check is in RUM magic cards --target check is in RUM magic cards
function c6165656.splimit(e,se,sp,st) function c6165656.splimit(e,se,sp,st)
return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL) return se:GetHandler():IsSetCard(0x95) and se:GetHandler():IsType(TYPE_SPELL)
and se:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and se:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
end end
function c6165656.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c6165656.cost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -23,7 +23,7 @@ function c62325062.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -23,7 +23,7 @@ function c62325062.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetCard(eg) Duel.SetTargetCard(eg)
end end
function c62325062.filter2(c,e,tp) function c62325062.filter2(c,e,tp)
return c:IsFaceup() and c:GetSummonPlayer()~=tp and c:IsRelateToEffect(e) return c:IsFaceup() and c:GetSummonPlayer()~=tp and c:IsRelateToEffect(e)
end end
function c62325062.activate(e,tp,eg,ep,ev,re,r,rp) function c62325062.activate(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(c62325062.filter2,nil,e,tp) local g=eg:Filter(c62325062.filter2,nil,e,tp)
......
...@@ -23,7 +23,7 @@ end ...@@ -23,7 +23,7 @@ end
function c62624486.spcon(e,tp,eg,ep,ev,re,r,rp) function c62624486.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler() return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler()
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c62624486.filter(c,e,tp) function c62624486.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsLevelBelow(4) and c:IsSetCard(0x8) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -35,7 +35,7 @@ end ...@@ -35,7 +35,7 @@ end
function c6276588.spcon(e,tp,eg,ep,ev,re,r,rp) function c6276588.spcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler() return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler()
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c6276588.filter(c,e,tp) function c6276588.filter(c,e,tp)
return c:IsLevelBelow(4) and c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE) return c:IsLevelBelow(4) and c:IsSetCard(0x11) and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP_DEFENSE)
......
...@@ -34,7 +34,7 @@ end ...@@ -34,7 +34,7 @@ end
function c63175639.sgop(e,tp,eg,ep,ev,re,r,rp) function c63175639.sgop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c63175639.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c63175639.filter,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoGrave(g,REASON_EFFECT) Duel.SendtoGrave(g,REASON_EFFECT)
end end
end end
...@@ -63,7 +63,7 @@ function c63175639.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c63175639.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c63175639.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c63175639.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
...@@ -28,7 +28,7 @@ function c63251695.tfilter(c,tp) ...@@ -28,7 +28,7 @@ function c63251695.tfilter(c,tp)
end end
function c63251695.negcon(e,tp,eg,ep,ev,re,r,rp) function c63251695.negcon(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return e:GetHandler():GetFlagEffect(63251695)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) return e:GetHandler():GetFlagEffect(63251695)==0 and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET)
and g and g:IsExists(c63251695.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev) and g and g:IsExists(c63251695.tfilter,1,e:GetHandler(),tp) and Duel.IsChainDisablable(ev)
end end
function c63251695.negop(e,tp,eg,ep,ev,re,r,rp) function c63251695.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -21,7 +21,7 @@ function c63442604.cfilter(c,tp) ...@@ -21,7 +21,7 @@ function c63442604.cfilter(c,tp)
end end
function c63442604.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c63442604.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c63442604.cfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c63442604.cfilter(chkc,tp) end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsExistingTarget(c63442604.cfilter,tp,0,LOCATION_MZONE,1,nil,tp) end Duel.IsExistingTarget(c63442604.cfilter,tp,0,LOCATION_MZONE,1,nil,tp) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
local g=Duel.SelectTarget(tp,c63442604.cfilter,tp,0,LOCATION_MZONE,1,1,nil,tp) local g=Duel.SelectTarget(tp,c63442604.cfilter,tp,0,LOCATION_MZONE,1,1,nil,tp)
......
...@@ -50,7 +50,7 @@ function c63519819.eqcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function c63519819.eqcon(e,tp,eg,ep,ev,re,r,rp)
return c63519819.can_equip_monster(c) return c63519819.can_equip_monster(c)
end end
function c63519819.eqfilter(c) function c63519819.eqfilter(c)
return c:GetFlagEffect(63519819)~=0 return c:GetFlagEffect(63519819)~=0
end end
function c63519819.can_equip_monster(c) function c63519819.can_equip_monster(c)
local g=c:GetEquipGroup():Filter(c63519819.eqfilter,nil) local g=c:GetEquipGroup():Filter(c63519819.eqfilter,nil)
......
...@@ -25,8 +25,8 @@ function c65240384.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,8 +25,8 @@ function c65240384.negcon(e,tp,eg,ep,ev,re,r,rp)
if re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then if re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg:GetCount()==1 and tg:GetFirst()==e:GetHandler() and e:GetHandler():IsFacedown() return tg:GetCount()==1 and tg:GetFirst()==e:GetHandler() and e:GetHandler():IsFacedown()
else else
return false return false
end end
end end
function c65240384.negop(e,tp,eg,ep,ev,re,r,rp) function c65240384.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -20,7 +20,7 @@ c65676461.xyz_number=32 ...@@ -20,7 +20,7 @@ c65676461.xyz_number=32
function c65676461.atcon(e,tp,eg,ep,ev,re,r,rp) function c65676461.atcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return c==Duel.GetAttacker() and c:IsRelateToBattle() and c:IsStatus(STATUS_OPPO_BATTLE) return c==Duel.GetAttacker() and c:IsRelateToBattle() and c:IsStatus(STATUS_OPPO_BATTLE)
and bc:IsLocation(LOCATION_GRAVE) and bc:IsType(TYPE_MONSTER) and bc:IsLocation(LOCATION_GRAVE) and bc:IsType(TYPE_MONSTER)
end end
function c65676461.atcost(e,tp,eg,ep,ev,re,r,rp,chk) function c65676461.atcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -31,7 +31,7 @@ function c66194206.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c66194206.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c66194206.thcon(e,tp,eg,ep,ev,re,r,rp) function c66194206.thcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_DECK) and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x38) return e:GetHandler():IsPreviousLocation(LOCATION_DECK) and re:IsActiveType(TYPE_MONSTER) and re:GetHandler():IsSetCard(0x38)
and bit.band(r,REASON_EFFECT)~=0 and bit.band(r,REASON_EFFECT)~=0
end end
function c66194206.thfilter(c) function c66194206.thfilter(c)
......
...@@ -26,7 +26,7 @@ function c66607691.spfilter(c,e,tp) ...@@ -26,7 +26,7 @@ function c66607691.spfilter(c,e,tp)
end end
function c66607691.target(e,tp,eg,ep,ev,re,r,rp,chk) function c66607691.target(e,tp,eg,ep,ev,re,r,rp,chk)
local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then if chk==0 then
e:SetLabel(0) e:SetLabel(0)
return res and Duel.IsExistingMatchingCard(c66607691.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp) return res and Duel.IsExistingMatchingCard(c66607691.spfilter,tp,LOCATION_HAND+LOCATION_DECK+LOCATION_GRAVE,0,1,nil,e,tp)
end end
......
...@@ -15,7 +15,7 @@ function c66729231.initial_effect(c) ...@@ -15,7 +15,7 @@ function c66729231.initial_effect(c)
end end
function c66729231.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c66729231.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,1000) end if chk==0 then return Duel.CheckLPCost(tp,1000) end
Duel.PayLPCost(tp,1000) Duel.PayLPCost(tp,1000)
end end
function c66729231.target(e,tp,eg,ep,ev,re,r,rp,chk) function c66729231.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
......
...@@ -29,7 +29,7 @@ function c67007102.atkfilter(c) ...@@ -29,7 +29,7 @@ function c67007102.atkfilter(c)
return c:IsFaceup() and c:GetAttack()>0 return c:IsFaceup() and c:GetAttack()>0
end end
function c67007102.target(e,tp,eg,ep,ev,re,r,rp,chk) function c67007102.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,67007102,0,0x11,800,2500,8,RACE_ZOMBIE,ATTRIBUTE_LIGHT) end Duel.IsPlayerCanSpecialSummonMonster(tp,67007102,0,0x11,800,2500,8,RACE_ZOMBIE,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -55,7 +55,7 @@ end ...@@ -55,7 +55,7 @@ end
function c67630339.operation(e,tp,eg,ep,ev,re,r,rp) function c67630339.operation(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=c67630339[2] local d=c67630339[2]
if a:GetFlagEffect(67630339)~=0 and d:GetFlagEffect(67630339)~=0 if a:GetFlagEffect(67630339)~=0 and d:GetFlagEffect(67630339)~=0
and a:IsAttackable() and not a:IsImmuneToEffect(e) and not d:IsImmuneToEffect(e) then and a:IsAttackable() and not a:IsImmuneToEffect(e) and not d:IsImmuneToEffect(e) then
Duel.CalculateDamage(a,d) Duel.CalculateDamage(a,d)
end end
......
...@@ -20,7 +20,7 @@ function c68191243.filter(c,e,tp) ...@@ -20,7 +20,7 @@ function c68191243.filter(c,e,tp)
return c:IsSetCard(0x1a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x1a) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c68191243.tg(e,tp,eg,ep,ev,re,r,rp,chk) function c68191243.tg(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
and Duel.IsExistingMatchingCard(c68191243.filter,tp,LOCATION_HAND,0,1,nil,e,tp) and Duel.IsExistingMatchingCard(c68191243.filter,tp,LOCATION_HAND,0,1,nil,e,tp)
end end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
......
...@@ -34,7 +34,7 @@ end ...@@ -34,7 +34,7 @@ end
function c68722455.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c68722455.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
local rg=tg:Filter(Card.IsRelateToEffect,nil,e) local rg=tg:Filter(Card.IsRelateToEffect,nil,e)
if rg:GetCount()>0 then if rg:GetCount()>0 then
Duel.SendtoHand(rg,nil,REASON_EFFECT) Duel.SendtoHand(rg,nil,REASON_EFFECT)
end end
end end
...@@ -29,7 +29,7 @@ function c68829754.spfilter(c,e,tp,check) ...@@ -29,7 +29,7 @@ function c68829754.spfilter(c,e,tp,check)
and (check or c:IsSetCard(0x1142)) and (check or c:IsSetCard(0x1142))
end end
function c68829754.target(e,tp,eg,ep,ev,re,r,rp,chk) function c68829754.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chk1=Duel.IsExistingMatchingCard(c68829754.filter,tp,LOCATION_MZONE,0,1,nil) local chk1=Duel.IsExistingMatchingCard(c68829754.filter,tp,LOCATION_MZONE,0,1,nil)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c68829754.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,chk1) and Duel.IsExistingMatchingCard(c68829754.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp,chk1)
......
...@@ -3,5 +3,5 @@ function c69035382.initial_effect(c) ...@@ -3,5 +3,5 @@ function c69035382.initial_effect(c)
aux.AddRitualProcEqual2(c,c69035382.ritual_filter) aux.AddRitualProcEqual2(c,c69035382.ritual_filter)
end end
function c69035382.ritual_filter(c) function c69035382.ritual_filter(c)
return c:IsType(TYPE_RITUAL) and c:IsAttribute(ATTRIBUTE_DARK) return c:IsType(TYPE_RITUAL) and c:IsAttribute(ATTRIBUTE_DARK)
end end
...@@ -22,7 +22,7 @@ end ...@@ -22,7 +22,7 @@ end
function c7030340.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c7030340.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c7030340.filter2(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c7030340.filter2(chkc) end
if chk==0 then if chk==0 then
return Duel.IsExistingMatchingCard(c7030340.filter1,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(c7030340.filter1,tp,LOCATION_GRAVE,0,1,nil)
and not Duel.IsExistingMatchingCard(c7030340.chkfilter,tp,LOCATION_GRAVE,0,1,nil) and not Duel.IsExistingMatchingCard(c7030340.chkfilter,tp,LOCATION_GRAVE,0,1,nil)
and Duel.IsExistingTarget(c7030340.filter2,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingTarget(c7030340.filter2,tp,LOCATION_MZONE,0,1,nil)
end end
......
...@@ -30,7 +30,7 @@ function c706925.spfilter(c,e,tp) ...@@ -30,7 +30,7 @@ function c706925.spfilter(c,e,tp)
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c706925.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c706925.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
and Duel.IsExistingMatchingCard(c706925.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c706925.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
......
...@@ -33,7 +33,7 @@ function c7243511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -33,7 +33,7 @@ function c7243511.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c7243511.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c7243511.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
...@@ -17,7 +17,7 @@ function c72537897.spfilter(c,e,tp) ...@@ -17,7 +17,7 @@ function c72537897.spfilter(c,e,tp)
return c:IsRace(RACE_BEAST) and c:IsLevelBelow(2) and c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsRace(RACE_BEAST) and c:IsLevelBelow(2) and c:IsType(TYPE_EFFECT) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c72537897.target(e,tp,eg,ep,ev,re,r,rp,chk) function c72537897.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local g=Duel.GetMatchingGroup(c72537897.spfilter,tp,LOCATION_DECK,0,nil,e,tp) local g=Duel.GetMatchingGroup(c72537897.spfilter,tp,LOCATION_DECK,0,nil,e,tp)
return not Duel.IsPlayerAffectedByEffect(tp,59822133) return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>2 and g:GetClassCount(Card.GetCode)>=3 end and Duel.GetLocationCount(tp,LOCATION_MZONE)>2 and g:GetClassCount(Card.GetCode)>=3 end
......
...@@ -26,7 +26,7 @@ function c72549351.spfilter(c,e,tp) ...@@ -26,7 +26,7 @@ function c72549351.spfilter(c,e,tp)
end end
function c72549351.target(e,tp,eg,ep,ev,re,r,rp,chk) function c72549351.target(e,tp,eg,ep,ev,re,r,rp,chk)
local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0 local res=e:GetLabel()==1 or Duel.GetLocationCount(tp,LOCATION_MZONE)>0
if chk==0 then if chk==0 then
e:SetLabel(0) e:SetLabel(0)
return res and Duel.IsExistingMatchingCard(c72549351.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp) return res and Duel.IsExistingMatchingCard(c72549351.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
end end
......
...@@ -53,7 +53,7 @@ end ...@@ -53,7 +53,7 @@ end
function c72932673.negcon(e,tp,eg,ep,ev,re,r,rp) function c72932673.negcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return rp==1-tp and bit.band(loc,LOCATION_SZONE)~=0 return rp==1-tp and bit.band(loc,LOCATION_SZONE)~=0
and re:IsActiveType(TYPE_SPELL) and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_SPELL) and Duel.IsChainDisablable(ev)
end end
function c72932673.negop(e,tp,eg,ep,ev,re,r,rp) function c72932673.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateEffect(ev) then if Duel.NegateEffect(ev) then
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function c74095602.condition(e,tp,eg,ep,ev,re,r,rp,chk) function c74095602.condition(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=eg:GetFirst() local tc=eg:GetFirst()
return tc:GetPreviousControler()==tp and tc:IsType(TYPE_FUSION) and tc:IsSetCard(0x3008) return tc:GetPreviousControler()==tp and tc:IsType(TYPE_FUSION) and tc:IsSetCard(0x3008)
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c74095602.target(e,tp,eg,ep,ev,re,r,rp,chk) function c74095602.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -63,7 +63,7 @@ function c74115234.recon(e,tp,eg,ep,ev,re,r,rp) ...@@ -63,7 +63,7 @@ function c74115234.recon(e,tp,eg,ep,ev,re,r,rp)
local bc=ec:GetBattleTarget() local bc=ec:GetBattleTarget()
e:SetLabelObject(bc) e:SetLabelObject(bc)
return e:GetHandler():GetEquipTarget()==eg:GetFirst() and ec:IsControler(tp) return e:GetHandler():GetEquipTarget()==eg:GetFirst() and ec:IsControler(tp)
and bc:IsLocation(LOCATION_GRAVE) and bc:IsType(TYPE_MONSTER) and bc:IsReason(REASON_BATTLE) and bc:IsLocation(LOCATION_GRAVE) and bc:IsType(TYPE_MONSTER) and bc:IsReason(REASON_BATTLE)
end end
function c74115234.retg(e,tp,eg,ep,ev,re,r,rp,chk) function c74115234.retg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -22,7 +22,7 @@ function c74117290.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -22,7 +22,7 @@ function c74117290.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ShuffleHand(tp) Duel.ShuffleHand(tp)
Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD) Duel.DiscardHand(tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD)
end end
if h2>0 then if h2>0 then
Duel.ShuffleHand(1-tp) Duel.ShuffleHand(1-tp)
Duel.DiscardHand(1-tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD) Duel.DiscardHand(1-tp,aux.TRUE,1,1,REASON_EFFECT+REASON_DISCARD)
end end
......
...@@ -34,7 +34,7 @@ function c74591968.initial_effect(c) ...@@ -34,7 +34,7 @@ function c74591968.initial_effect(c)
e4:SetType(EFFECT_TYPE_SINGLE) e4:SetType(EFFECT_TYPE_SINGLE)
e4:SetCode(EFFECT_LIMIT_SUMMON_PROC) e4:SetCode(EFFECT_LIMIT_SUMMON_PROC)
e4:SetCondition(c74591968.sumcon) e4:SetCondition(c74591968.sumcon)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
c74591968.lvup={60482781} c74591968.lvup={60482781}
c74591968.lvdn={47507260} c74591968.lvdn={47507260}
......
...@@ -34,8 +34,8 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -34,8 +34,8 @@ function c75487237.negcon(e,tp,eg,ep,ev,re,r,rp)
if re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then if re:IsActiveType(TYPE_SPELL) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS) local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
return tg:GetCount()==1 and tg:GetFirst()==e:GetHandler() and e:GetHandler():IsFacedown() return tg:GetCount()==1 and tg:GetFirst()==e:GetHandler() and e:GetHandler():IsFacedown()
else else
return false return false
end end
end end
function c75487237.negop(e,tp,eg,ep,ev,re,r,rp) function c75487237.negop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -33,7 +33,7 @@ function c75991898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -33,7 +33,7 @@ function c75991898.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c75991898.operation(e,tp,eg,ep,ev,re,r,rp,chk) function c75991898.operation(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT) Duel.SendtoHand(tc,nil,REASON_EFFECT)
end end
end end
...@@ -27,7 +27,7 @@ function c76218643.indcon(e) ...@@ -27,7 +27,7 @@ function c76218643.indcon(e)
return Duel.IsExistingMatchingCard(c76218643.indfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c76218643.indfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end end
function c76218643.filter(c,tp) function c76218643.filter(c,tp)
return c:IsPreviousPosition(POS_FACEUP) and c:IsType(TYPE_TUNER) return c:IsPreviousPosition(POS_FACEUP) and c:IsType(TYPE_TUNER)
end end
function c76218643.reccon(e,tp,eg,ep,ev,re,r,rp) function c76218643.reccon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c76218643.filter,1,nil,tp) return eg:IsExists(c76218643.filter,1,nil,tp)
......
...@@ -31,7 +31,7 @@ function c76754619.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,7 +31,7 @@ function c76754619.operation(e,tp,eg,ep,ev,re,r,rp)
sc:RegisterEffect(e1) sc:RegisterEffect(e1)
sc=g:GetNext() sc=g:GetNext()
end end
else else
local sc=g:GetFirst() local sc=g:GetFirst()
while sc do while sc do
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -17,7 +17,7 @@ function c77372241.damcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -17,7 +17,7 @@ function c77372241.damcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
e:SetLabel(tc:GetLevel()) e:SetLabel(tc:GetLevel())
return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler() return eg:GetCount()==1 and tc:GetReasonCard()==e:GetHandler()
and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE) and tc:IsLocation(LOCATION_GRAVE) and tc:IsReason(REASON_BATTLE)
end end
function c77372241.damtg(e,tp,eg,ep,ev,re,r,rp,chk) function c77372241.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function c7802006.operation(e,tp,eg,ep,ev,re,r,rp) function c7802006.operation(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c7802006.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(c7802006.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
tc:AddCounter(0x1,1) tc:AddCounter(0x1,1)
tc=g:GetNext() tc=g:GetNext()
end end
......
--発条機雷ゼンマイン --発条機雷ゼンマイン
function c78156759.initial_effect(c) function c78156759.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,nil,3,2) aux.AddXyzProcedure(c,nil,3,2)
......
...@@ -51,7 +51,7 @@ function c80604091.activate1(e,tp,eg,ep,ev,re,r,rp) ...@@ -51,7 +51,7 @@ function c80604091.activate1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c80604091.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c80604091.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
if tc then if tc then
if tc:IsSummonable(true,nil) and (not tc:IsMSetable(true,nil) if tc:IsSummonable(true,nil) and (not tc:IsMSetable(true,nil)
or Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENSE)==POS_FACEUP_ATTACK) then or Duel.SelectPosition(tp,tc,POS_FACEUP_ATTACK+POS_FACEDOWN_DEFENSE)==POS_FACEUP_ATTACK) then
Duel.Summon(tp,tc,true,nil) Duel.Summon(tp,tc,true,nil)
else Duel.MSet(tp,tc,true,nil) end else Duel.MSet(tp,tc,true,nil) end
......
...@@ -22,7 +22,7 @@ function c80769747.initial_effect(c) ...@@ -22,7 +22,7 @@ function c80769747.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c80769747.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c80769747.eqtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and chkc:IsFaceup() end
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_SZONE)>0
and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end and Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
......
...@@ -26,7 +26,7 @@ function c81426505.filter3(c) ...@@ -26,7 +26,7 @@ function c81426505.filter3(c)
return c:IsFacedown() return c:IsFacedown()
end end
function c81426505.destg(e,tp,eg,ep,ev,re,r,rp,chk) function c81426505.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return if chk==0 then return
Duel.IsExistingMatchingCard(c81426505.filter1,tp,0,LOCATION_MZONE,1,nil) or Duel.IsExistingMatchingCard(c81426505.filter1,tp,0,LOCATION_MZONE,1,nil) or
Duel.IsExistingMatchingCard(c81426505.filter2,tp,0,LOCATION_ONFIELD,1,nil) or Duel.IsExistingMatchingCard(c81426505.filter2,tp,0,LOCATION_ONFIELD,1,nil) or
Duel.IsExistingMatchingCard(c81426505.filter3,tp,0,LOCATION_SZONE,1,nil) Duel.IsExistingMatchingCard(c81426505.filter3,tp,0,LOCATION_SZONE,1,nil)
......
...@@ -36,7 +36,7 @@ function c81782376.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -36,7 +36,7 @@ function c81782376.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function c81782376.drcon(e,tp,eg,ep,ev,re,r,rp) function c81782376.drcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return rp==1-tp and c:IsReason(REASON_EFFECT) return rp==1-tp and c:IsReason(REASON_EFFECT)
and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_ONFIELD)
end end
function c81782376.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function c81782376.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -54,7 +54,7 @@ function c82044279.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -54,7 +54,7 @@ function c82044279.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c82044279.operation(e,tp,eg,ep,ev,re,r,rp) function c82044279.operation(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
......
...@@ -48,7 +48,7 @@ function c82052602.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -48,7 +48,7 @@ function c82052602.condition(e,tp,eg,ep,ev,re,r,rp)
return c82052602[tp] and Duel.GetFlagEffect(tp,82052602)==0 return c82052602[tp] and Duel.GetFlagEffect(tp,82052602)==0
end end
function c82052602.target(e,tp,eg,ep,ev,re,r,rp,chk) function c82052602.target(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
and Duel.IsExistingMatchingCard(c82052602.filter,tp,LOCATION_GRAVE,0,1,nil,Duel.GetTurnCount(),e,tp) end and Duel.IsExistingMatchingCard(c82052602.filter,tp,LOCATION_GRAVE,0,1,nil,Duel.GetTurnCount(),e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_GRAVE)
Duel.RegisterFlagEffect(tp,82052602,RESET_PHASE+PHASE_END,0,1) Duel.RegisterFlagEffect(tp,82052602,RESET_PHASE+PHASE_END,0,1)
......
...@@ -42,7 +42,7 @@ function c83531441.atkcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,7 +42,7 @@ function c83531441.atkcost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert(ct,i) table.insert(ct,i)
end end
end end
if #ct==1 then if #ct==1 then
Duel.DiscardDeck(tp,ct[1],REASON_COST) Duel.DiscardDeck(tp,ct[1],REASON_COST)
e:SetLabel(1) e:SetLabel(1)
else else
......
--D-HERO Bloo-D --D-HERO Bloo-D
function c83965310.initial_effect(c) function c83965310.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--cannot special summon --cannot special summon
......
...@@ -29,7 +29,7 @@ function c85087012.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -29,7 +29,7 @@ function c85087012.cost(e,tp,eg,ep,ev,re,r,rp,chk)
table.insert(ct,i) table.insert(ct,i)
end end
end end
if #ct==1 then if #ct==1 then
Duel.DiscardDeck(tp,ct[1],REASON_COST) Duel.DiscardDeck(tp,ct[1],REASON_COST)
e:SetLabel(1) e:SetLabel(1)
else else
......
...@@ -59,7 +59,7 @@ function c85551711.costop(e,tp,eg,ep,ev,re,r,rp) ...@@ -59,7 +59,7 @@ function c85551711.costop(e,tp,eg,ep,ev,re,r,rp)
end end
function c85551711.spcon(e,tp,eg,ep,ev,re,r,rp) function c85551711.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return ((rp==1-tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE)) return ((rp==1-tp and c:IsReason(REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsPreviousLocation(LOCATION_MZONE))
or c:IsReason(REASON_BATTLE)) and c:IsSummonType(SUMMON_TYPE_XYZ) or c:IsReason(REASON_BATTLE)) and c:IsSummonType(SUMMON_TYPE_XYZ)
end end
function c85551711.spfilter(c,e,tp) function c85551711.spfilter(c,e,tp)
......
...@@ -39,7 +39,7 @@ end ...@@ -39,7 +39,7 @@ end
function c86137485.atcon2(e,tp,eg,ep,ev,re,r,rp) function c86137485.atcon2(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
return Duel.GetTurnPlayer()~=tp and c:IsRelateToBattle() and c:IsStatus(STATUS_OPPO_BATTLE) return Duel.GetTurnPlayer()~=tp and c:IsRelateToBattle() and c:IsStatus(STATUS_OPPO_BATTLE)
and bc:IsLocation(LOCATION_GRAVE) and bc:IsType(TYPE_MONSTER) and bc:IsLocation(LOCATION_GRAVE) and bc:IsType(TYPE_MONSTER)
end end
function c86137485.atop2(e,tp,eg,ep,ev,re,r,rp) function c86137485.atop2(e,tp,eg,ep,ev,re,r,rp)
......
--覇王烈竜オッドアイズ・レイジング・ドラゴン --覇王烈竜オッドアイズ・レイジング・ドラゴン
function c86238081.initial_effect(c) function c86238081.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_DRAGON),7,2) aux.AddXyzProcedure(c,aux.FilterBoolFunction(Card.IsRace,RACE_DRAGON),7,2)
......
...@@ -52,7 +52,7 @@ function c8719957.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -52,7 +52,7 @@ function c8719957.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c8719957.negcon(e,tp,eg,ep,ev,re,r,rp) function c8719957.negcon(e,tp,eg,ep,ev,re,r,rp)
return rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE return rp==1-tp and Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)==LOCATION_MZONE
and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev) and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainDisablable(ev)
end end
function c8719957.negop(e,tp,eg,ep,ev,re,r,rp) function c8719957.negop(e,tp,eg,ep,ev,re,r,rp)
if Duel.NegateEffect(ev) then if Duel.NegateEffect(ev) then
......
...@@ -31,8 +31,8 @@ function c88616795.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,8 +31,8 @@ function c88616795.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetCode(EFFECT_IMMUNE_EFFECT) e2:SetCode(EFFECT_IMMUNE_EFFECT)
if e:GetLabel()==0 then if e:GetLabel()==0 then
e2:SetValue(c88616795.efilter1) e2:SetValue(c88616795.efilter1)
else else
e2:SetValue(c88616795.efilter2) e2:SetValue(c88616795.efilter2)
end end
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
......
...@@ -34,7 +34,7 @@ function c90727556.initial_effect(c) ...@@ -34,7 +34,7 @@ function c90727556.initial_effect(c)
end end
function c90727556.condition(e,tp,eg,ep,ev,re,r,rp) function c90727556.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()==PHASE_MAIN1 and not Duel.CheckPhaseActivity() and e:GetHandler():IsSetCard(0x100a) return Duel.GetCurrentPhase()==PHASE_MAIN1 and not Duel.CheckPhaseActivity() and e:GetHandler():IsSetCard(0x100a)
and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD,0,1,nil,TYPE_SPELL+TYPE_TRAP) and not Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_ONFIELD,0,1,nil,TYPE_SPELL+TYPE_TRAP)
end end
function c90727556.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c90727556.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 end if chk==0 then return Duel.GetActivityCount(tp,ACTIVITY_SPSUMMON)==0 end
......
...@@ -12,7 +12,7 @@ function c91468551.initial_effect(c) ...@@ -12,7 +12,7 @@ function c91468551.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(c91468551.atktg) e2:SetTarget(c91468551.atktg)
e2:SetValue(300) e2:SetValue(300)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c91468551.atktg(e,c) function c91468551.atktg(e,c)
......
...@@ -11,7 +11,7 @@ function c92099232.initial_effect(c) ...@@ -11,7 +11,7 @@ function c92099232.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c92099232.target(e,tp,eg,ep,ev,re,r,rp,chk) function c92099232.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,92099232,0,0x11,0,0,2,RACE_FIEND,ATTRIBUTE_EARTH) end Duel.IsPlayerCanSpecialSummonMonster(tp,92099232,0,0x11,0,0,2,RACE_FIEND,ATTRIBUTE_EARTH) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
......
...@@ -10,7 +10,7 @@ function c9236985.initial_effect(c) ...@@ -10,7 +10,7 @@ function c9236985.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c9236985.filter(c,e,tp,lp) function c9236985.filter(c,e,tp,lp)
if bit.band(c:GetType(),0x81)~=0x81 or not c:IsSetCard(0x3a) if bit.band(c:GetType(),0x81)~=0x81 or not c:IsSetCard(0x3a)
or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,true,false) then return false end or not c:IsCanBeSpecialSummoned(e,SUMMON_TYPE_RITUAL,tp,true,false) then return false end
return lp>c:GetLevel()*500 return lp>c:GetLevel()*500
end end
......
...@@ -25,7 +25,7 @@ function c92373006.sprfilter(c) ...@@ -25,7 +25,7 @@ function c92373006.sprfilter(c)
return c:IsFaceup() and c:IsSetCard(0x19) return c:IsFaceup() and c:IsSetCard(0x19)
end end
function c92373006.sprcon(e,c) function c92373006.sprcon(e,c)
if c==nil then return true end if c==nil then return true end
local tp=c:GetControler() local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c92373006.sprfilter,tp,LOCATION_MZONE,0,1,nil) and Duel.IsExistingMatchingCard(c92373006.sprfilter,tp,LOCATION_MZONE,0,1,nil)
......
--馬頭鬼 --馬頭鬼
function c92826944.initial_effect(c) function c92826944.initial_effect(c)
--revive --revive
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(92826944,0)) e1:SetDescription(aux.Stringid(92826944,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
...@@ -19,7 +19,7 @@ end ...@@ -19,7 +19,7 @@ end
function c93108433.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c93108433.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c93108433.mfilter(chkc,tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c93108433.mfilter(chkc,tp) end
if chk==0 then return Duel.IsPlayerCanDraw(tp) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0 if chk==0 then return Duel.IsPlayerCanDraw(tp) and Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)>0
and Duel.IsExistingTarget(c93108433.mfilter,tp,LOCATION_MZONE,0,1,e:GetHandler(),tp) and Duel.IsExistingTarget(c93108433.mfilter,tp,LOCATION_MZONE,0,1,e:GetHandler(),tp)
and not Duel.IsExistingMatchingCard(c93108433.hfilter,tp,LOCATION_HAND,0,1,nil,tp) and not Duel.IsExistingMatchingCard(c93108433.hfilter,tp,LOCATION_HAND,0,1,nil,tp)
end end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
......
...@@ -26,7 +26,7 @@ function c93191801.initial_effect(c) ...@@ -26,7 +26,7 @@ function c93191801.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c93191801.target(e,tp,eg,ep,ev,re,r,rp,chk) function c93191801.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and
Duel.IsPlayerCanSpecialSummonMonster(tp,93191801,0,0x11,1800,1500,5,RACE_ZOMBIE,ATTRIBUTE_LIGHT) end Duel.IsPlayerCanSpecialSummonMonster(tp,93191801,0,0x11,1800,1500,5,RACE_ZOMBIE,ATTRIBUTE_LIGHT) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,PLAYER_ALL,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,0,PLAYER_ALL,LOCATION_GRAVE)
......
...@@ -29,7 +29,7 @@ function c93895605.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -29,7 +29,7 @@ function c93895605.activate(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS) local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS)
if a:IsRelateToEffect(e) and a:IsAttackable() and not a:IsStatus(STATUS_ATTACK_CANCELED) if a:IsRelateToEffect(e) and a:IsAttackable() and not a:IsStatus(STATUS_ATTACK_CANCELED)
and d:IsFaceup() and d:IsRelateToEffect(e) then and d:IsFaceup() and d:IsRelateToEffect(e) then
Duel.Destroy(g,REASON_EFFECT) Duel.Destroy(g,REASON_EFFECT)
if not a:IsOnField() then if not a:IsOnField() then
......
...@@ -41,7 +41,7 @@ function c93912845.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c93912845.activate(e,tp,eg,ep,ev,re,r,rp)
tc:RegisterEffect(e2,true) tc:RegisterEffect(e2,true)
end end
end end
if Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>1 if Duel.GetLocationCount(1-tp,LOCATION_MZONE,tp)>1
and Duel.IsPlayerCanSpecialSummonMonster(tp,93912846,0,0x4011,1500,1500,3,RACE_FIEND,ATTRIBUTE_DARK,POS_FACEUP,1-tp) and Duel.IsPlayerCanSpecialSummonMonster(tp,93912846,0,0x4011,1500,1500,3,RACE_FIEND,ATTRIBUTE_DARK,POS_FACEUP,1-tp)
and not Duel.IsPlayerAffectedByEffect(tp,59822133) then and not Duel.IsPlayerAffectedByEffect(tp,59822133) then
for i=1,2 do for i=1,2 do
......
...@@ -30,7 +30,7 @@ function c94224458.spfilter(c,e,tp,check) ...@@ -30,7 +30,7 @@ function c94224458.spfilter(c,e,tp,check)
and (check or c:IsSetCard(0x1142)) and (check or c:IsSetCard(0x1142))
end end
function c94224458.target(e,tp,eg,ep,ev,re,r,rp,chk) function c94224458.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
local chk1=Duel.IsExistingMatchingCard(c94224458.filter,tp,LOCATION_MZONE,0,1,nil) local chk1=Duel.IsExistingMatchingCard(c94224458.filter,tp,LOCATION_MZONE,0,1,nil)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c94224458.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp,chk1) and Duel.IsExistingMatchingCard(c94224458.spfilter,tp,LOCATION_HAND+LOCATION_GRAVE,0,1,nil,e,tp,chk1)
......
...@@ -23,7 +23,7 @@ function c94689635.costfilter(c) ...@@ -23,7 +23,7 @@ function c94689635.costfilter(c)
end end
function c94689635.discost(e,tp,eg,ep,ev,re,r,rp,chk) function c94689635.discost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToGraveAsCost() and if chk==0 then return c:IsAbleToGraveAsCost() and
Duel.IsExistingMatchingCard(c94689635.costfilter,tp,LOCATION_HAND,0,1,c) end Duel.IsExistingMatchingCard(c94689635.costfilter,tp,LOCATION_HAND,0,1,c) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c94689635.costfilter,tp,LOCATION_HAND,0,1,1,c) local g=Duel.SelectMatchingCard(tp,c94689635.costfilter,tp,LOCATION_HAND,0,1,1,c)
......
...@@ -17,7 +17,7 @@ end ...@@ -17,7 +17,7 @@ end
function c95451366.activate(e,tp,eg,ep,ev,re,r,rp) function c95451366.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c95451366.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil) local g=Duel.GetMatchingGroup(c95451366.filter,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local tc=g:GetFirst() local tc=g:GetFirst()
while tc do while tc do
local cc=tc:GetCounter(0x1) local cc=tc:GetCounter(0x1)
tc:RemoveCounter(tp,0x1,cc,REASON_EFFECT) tc:RemoveCounter(tp,0x1,cc,REASON_EFFECT)
tc=g:GetNext() tc=g:GetNext()
......
...@@ -49,7 +49,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +49,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,c9560338.filter1,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c9560338.filter1,tp,LOCATION_DECK,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT) Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
end end
...@@ -58,7 +58,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -58,7 +58,7 @@ function c9560338.effop(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c9560338.filter2,tp,LOCATION_DECK,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c9560338.filter2,tp,LOCATION_DECK,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
......
...@@ -32,7 +32,7 @@ function c96380700.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +32,7 @@ function c96380700.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
e:SetLabelObject(g:GetFirst()) e:SetLabelObject(g:GetFirst())
end end
function c96380700.spfilter(c,e,tp,rc) function c96380700.spfilter(c,e,tp,rc)
return c:IsSetCard(0x101) and c:IsType(TYPE_MONSTER) and not c:IsOriginalCodeRule(rc:GetOriginalCodeRule()) return c:IsSetCard(0x101) and c:IsType(TYPE_MONSTER) and not c:IsOriginalCodeRule(rc:GetOriginalCodeRule())
and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c96380700.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c96380700.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
--くず鉄のかかし --くず鉄のかかし
function c98427577.initial_effect(c) function c98427577.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -24,7 +24,7 @@ function c98645731.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,7 +24,7 @@ function c98645731.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
end end
function c98645731.target(e,tp,eg,ep,ev,re,r,rp,chk) function c98645731.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return false end if Duel.GetFieldGroupCount(tp,LOCATION_DECK,0)<3 then return false end
local g=Duel.GetDecktopGroup(tp,3) local g=Duel.GetDecktopGroup(tp,3)
local result=g:FilterCount(Card.IsAbleToHand,nil)>0 local result=g:FilterCount(Card.IsAbleToHand,nil)>0
......
...@@ -12,6 +12,6 @@ function c99050989.filter(c) ...@@ -12,6 +12,6 @@ function c99050989.filter(c)
end end
function c99050989.dircon(e) function c99050989.dircon(e)
local tp=e:GetHandlerPlayer() local tp=e:GetHandlerPlayer()
return Duel.GetFieldGroupCount(tp,0,LOCATION_SZONE)==0 return Duel.GetFieldGroupCount(tp,0,LOCATION_SZONE)==0
and not Duel.IsExistingMatchingCard(c99050989.filter,tp,0,LOCATION_MZONE,1,nil) and not Duel.IsExistingMatchingCard(c99050989.filter,tp,0,LOCATION_MZONE,1,nil)
end end
...@@ -23,7 +23,7 @@ function c99330325.initial_effect(c) ...@@ -23,7 +23,7 @@ function c99330325.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c99330325.chkfilter1(c,e,tp) function c99330325.chkfilter1(c,e,tp)
return c:IsSetCard(0xd3) and c:IsType(TYPE_MONSTER) and return c:IsSetCard(0xd3) and c:IsType(TYPE_MONSTER) and
not c:IsHasEffect(EFFECT_REVIVE_LIMIT) and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP,tp,c) not c:IsHasEffect(EFFECT_REVIVE_LIMIT) and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP,tp,c)
and Duel.IsExistingMatchingCard(c99330325.chkfilter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode()) and Duel.IsExistingMatchingCard(c99330325.chkfilter2,tp,LOCATION_DECK,0,1,nil,e,tp,c:GetCode())
end end
......
...@@ -2102,7 +2102,7 @@ function Auxiliary.ChangeBattleDamage(player,value) ...@@ -2102,7 +2102,7 @@ function Auxiliary.ChangeBattleDamage(player,value)
end end
end end
end end
end end
--card effect disable filter(target) --card effect disable filter(target)
function Auxiliary.disfilter1(c) function Auxiliary.disfilter1(c)
return c:IsFaceup() and not c:IsDisabled() and (not c:IsType(TYPE_NORMAL) or c:GetOriginalType()&TYPE_EFFECT~=0) return c:IsFaceup() and not c:IsDisabled() and (not c:IsType(TYPE_NORMAL) or c:GetOriginalType()&TYPE_EFFECT~=0)
......
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