Commit c20f3913 authored by mercury233's avatar mercury233

fix

parent d62a8c90
...@@ -35,7 +35,7 @@ function c10497636.initial_effect(c) ...@@ -35,7 +35,7 @@ function c10497636.initial_effect(c)
-- --
if not c10497636.global_check then if not c10497636.global_check then
c10497636.global_check=true c10497636.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLE_CONFIRM) ge1:SetCode(EVENT_BATTLE_CONFIRM)
ge1:SetOperation(c10497636.checkop) ge1:SetOperation(c10497636.checkop)
......
...@@ -6,7 +6,7 @@ function c11434258.initial_effect(c) ...@@ -6,7 +6,7 @@ function c11434258.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET+EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,11434258,EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,11434258+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c11434258.drtg) e1:SetTarget(c11434258.drtg)
e1:SetOperation(c11434258.drop) e1:SetOperation(c11434258.drop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
......
...@@ -27,7 +27,7 @@ function c18558867.initial_effect(c) ...@@ -27,7 +27,7 @@ function c18558867.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c18558867.global_check then if not c18558867.global_check then
c18558867.global_check=true c18558867.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLE_CONFIRM) ge1:SetCode(EVENT_BATTLE_CONFIRM)
ge1:SetOperation(c18558867.checkop) ge1:SetOperation(c18558867.checkop)
......
...@@ -15,7 +15,7 @@ function c197042.initial_effect(c) ...@@ -15,7 +15,7 @@ function c197042.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c197042.global_check then if not c197042.global_check then
c197042.global_check=true c197042.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_SPSUMMON_SUCCESS) ge1:SetCode(EVENT_SPSUMMON_SUCCESS)
ge1:SetCondition(c197042.checkcon) ge1:SetCondition(c197042.checkcon)
......
...@@ -41,7 +41,7 @@ function c22198672.seqop(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,7 +41,7 @@ function c22198672.seqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not tc:IsRelateToEffect(e) then return end if not tc:IsRelateToEffect(e) then return end
local p=tc:GetControler() local p=tc:GetControler()
local zone=tc:GetLinkedZone()&0x1f local zone=tc:GetLinkedZone(p)&0x1f
if Duel.GetLocationCount(p,LOCATION_MZONE,PLAYER_NONE,0,zone)>0 then if Duel.GetLocationCount(p,LOCATION_MZONE,PLAYER_NONE,0,zone)>0 then
local i=0 local i=0
if p~=tp then i=16 end if p~=tp then i=16 end
......
...@@ -62,9 +62,6 @@ function c22398665.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -62,9 +62,6 @@ function c22398665.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst() local tc=tg:GetFirst()
if tc then if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc) mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if sg then
mg:Merge(sg)
end
if tc.mat_filter then if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp) mg=mg:Filter(tc.mat_filter,tc,tp)
else else
......
...@@ -33,7 +33,7 @@ function c27699122.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -33,7 +33,7 @@ function c27699122.op(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or g:GetClassCount(Card.GetCode)<3 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 or g:GetClassCount(Card.GetCode)<3 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3) local sg=g:SelectSubGroup(tp,aux.dncheck,false,3,3)
if #sg>0 then if sg then
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
local tc=sg:RandomSelect(1-tp,1):GetFirst() local tc=sg:RandomSelect(1-tp,1):GetFirst()
Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP) Duel.SpecialSummon(tc,0,tp,tp,true,false,POS_FACEUP)
......
...@@ -25,7 +25,7 @@ end ...@@ -25,7 +25,7 @@ end
function c3567660.seqop(e,tp,eg,ep,ev,re,r,rp) function c3567660.seqop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if not (tc:IsRelateToEffect(e) and tc:IsControler(tp)) then return end if not (tc:IsRelateToEffect(e) and tc:IsControler(tp)) then return end
local zone=bit.band(tc:GetLinkedZone(),0x1f) local zone=bit.band(tc:GetLinkedZone(tp),0x1f)
if Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0,zone)>0 then if Duel.GetLocationCount(tp,LOCATION_MZONE,PLAYER_NONE,0,zone)>0 then
local flag=bit.bxor(zone,0xff) local flag=bit.bxor(zone,0xff)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOZONE)
......
...@@ -13,7 +13,7 @@ function c35756798.initial_effect(c) ...@@ -13,7 +13,7 @@ function c35756798.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c35756798.global_check then if not c35756798.global_check then
c35756798.global_check=true c35756798.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_TO_GRAVE) ge1:SetCode(EVENT_TO_GRAVE)
ge1:SetCondition(c35756798.checkcon) ge1:SetCondition(c35756798.checkcon)
......
...@@ -12,7 +12,7 @@ function c41850466.initial_effect(c) ...@@ -12,7 +12,7 @@ function c41850466.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
if not c41850466.global_check then if not c41850466.global_check then
c41850466.global_check=true c41850466.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_DESTROYED) ge1:SetCode(EVENT_DESTROYED)
ge1:SetOperation(c41850466.checkop) ge1:SetOperation(c41850466.checkop)
......
...@@ -27,7 +27,7 @@ function c42228966.initial_effect(c) ...@@ -27,7 +27,7 @@ function c42228966.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
if not c42228966.global_check then if not c42228966.global_check then
c42228966.global_check=true c42228966.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLED) ge1:SetCode(EVENT_BATTLED)
ge1:SetOperation(c42228966.checkop) ge1:SetOperation(c42228966.checkop)
......
...@@ -25,7 +25,7 @@ end ...@@ -25,7 +25,7 @@ end
function c43250041.activate(e,tp,eg,ep,ev,re,r,rp) function c43250041.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsAttackable() then if tc:IsRelateToEffect(e) and tc:IsFaceup() and tc:IsAttackable() then
if Duel.NegateAttack(tc) then if Duel.NegateAttack() then
Duel.Recover(tp,tc:GetAttack(),REASON_EFFECT) Duel.Recover(tp,tc:GetAttack(),REASON_EFFECT)
end end
end end
......
...@@ -53,7 +53,7 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +53,7 @@ function c44887817.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
local e2=e1:Clone(e1) local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_MSET) e2:SetCode(EFFECT_CANNOT_MSET)
Duel.RegisterEffect(e2,tp) Duel.RegisterEffect(e2,tp)
end end
......
...@@ -37,7 +37,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -37,7 +37,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
c:CreateEffectRelation(e) c:CreateEffectRelation(e)
Duel.SetTargetCard(tc) Duel.SetTargetCard(tc)
local g=Group.CreateGroup(c,tc) local g=Group.FromCards(c,tc)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -34,7 +34,7 @@ function c67100549.initial_effect(c) ...@@ -34,7 +34,7 @@ function c67100549.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
if not c67100549.global_check then if not c67100549.global_check then
c67100549.global_check=true c67100549.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_TO_GRAVE) ge1:SetCode(EVENT_TO_GRAVE)
ge1:SetCondition(c67100549.checkcon) ge1:SetCondition(c67100549.checkcon)
......
...@@ -78,9 +78,6 @@ function c69003792.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,9 +78,6 @@ function c69003792.spop(e,tp,eg,ep,ev,re,r,rp)
local tc=tg:GetFirst() local tc=tg:GetFirst()
if tc then if tc then
mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc) mg=mg:Filter(Card.IsCanBeRitualMaterial,tc,tc)
if sg then
mg:Merge(sg)
end
if tc.mat_filter then if tc.mat_filter then
mg=mg:Filter(tc.mat_filter,tc,tp) mg=mg:Filter(tc.mat_filter,tc,tp)
else else
......
...@@ -23,7 +23,7 @@ function c72554862.initial_effect(c) ...@@ -23,7 +23,7 @@ function c72554862.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c72554862.global_check then if not c72554862.global_check then
c72554862.global_check=true c72554862.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLE_CONFIRM) ge1:SetCode(EVENT_BATTLE_CONFIRM)
ge1:SetOperation(c72554862.checkop) ge1:SetOperation(c72554862.checkop)
......
...@@ -78,7 +78,7 @@ function c78586116.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -78,7 +78,7 @@ function c78586116.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(c78586116.eqlimit) e2:SetValue(c78586116.eqlimit)
e2:SetReset(RESET_EVENT+RESETS_STANDARD) e2:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e2) c:RegisterEffect(e2)
Duel.RaiseSingleEvent(c,EVENT_CUSTOM+78586116,e,0,0,0,0,0) Duel.RaiseSingleEvent(c,EVENT_CUSTOM+78586116,e,0,0,0,0)
else else
c:CancelToGrave(false) c:CancelToGrave(false)
end end
......
...@@ -29,7 +29,7 @@ function c90448279.initial_effect(c) ...@@ -29,7 +29,7 @@ function c90448279.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
if not c90448279.global_check then if not c90448279.global_check then
c90448279.global_check=true c90448279.global_check=true
local ge1=Effect.GlobalEffect(c) local ge1=Effect.GlobalEffect()
ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) ge1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
ge1:SetCode(EVENT_BATTLED) ge1:SetCode(EVENT_BATTLED)
ge1:SetOperation(c90448279.checkop) ge1:SetOperation(c90448279.checkop)
......
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