Commit 858df951 authored by POLYMER's avatar POLYMER

fix

parent eada71fb
--shrimp, patrol of dragon palace --shrimp, patrol of dragon palace
local m=11451411 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--effect1 --effect1
...@@ -94,7 +93,8 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,7 +93,8 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0 return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0
end end
function cm.operation2(e,tp,eg,ep,ev,re,r,rp) function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(m,RESET_CHAIN,0,1) --0xc780000=RESET_MSCHANGE+RESET_OVERLAY+RESET_REMOVE+RESET_TEMP_REMOVE+RESET_TOHAND+RESET_TODECK
e:GetHandler():RegisterFlagEffect(m,RESET_EVENT+0xc780000+RESET_CHAIN,0,1)
end end
function cm.condition4(e,tp,eg,ep,ev,re,r,rp) function cm.condition4(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1 return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1
......
--crab, soidier of dragon palace --crab, soidier of dragon palace
local m=11451412 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--effect1 --effect1
...@@ -93,7 +92,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -93,7 +92,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0 return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0
end end
function cm.operation2(e,tp,eg,ep,ev,re,r,rp) function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(m,RESET_CHAIN,0,1) e:GetHandler():RegisterFlagEffect(m,RESET_EVENT+0xc780000+RESET_CHAIN,0,1)
end end
function cm.condition4(e,tp,eg,ep,ev,re,r,rp) function cm.condition4(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1 return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1
...@@ -125,5 +124,8 @@ function cm.operation3(e,tp,eg,ep,ev,re,r,rp) ...@@ -125,5 +124,8 @@ function cm.operation3(e,tp,eg,ep,ev,re,r,rp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then count1=1 end if Duel.IsPlayerAffectedByEffect(tp,59822133) then count1=1 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local hg=g:SelectSubGroup(tp,aux.dncheck,false,1,math.min(count1,count2)) local hg=g:SelectSubGroup(tp,aux.dncheck,false,1,math.min(count1,count2))
Duel.SpecialSummon(hg,0,tp,tp,false,false,POS_FACEUP) for hc in aux.Next(hg) do
Duel.SpecialSummonStep(hg,0,tp,tp,false,false,POS_FACEUP)
end
Duel.SpecialSummonComplete()
end end
\ No newline at end of file
--yaksha, warrior of dragon palace --yaksha, warrior of dragon palace
local m=11451413 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--effect1 --effect1
...@@ -96,7 +95,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,7 +95,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0 return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0
end end
function cm.operation2(e,tp,eg,ep,ev,re,r,rp) function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(m,RESET_CHAIN,0,1) e:GetHandler():RegisterFlagEffect(m,RESET_EVENT+0xc780000+RESET_CHAIN,0,1)
end end
function cm.condition4(e,tp,eg,ep,ev,re,r,rp) function cm.condition4(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1 return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1
......
--ao guang, king of dragon palace --ao guang, king of dragon palace
local m=11451414 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
c:EnableReviveLimit() c:EnableReviveLimit()
--effect1 --effect1
...@@ -92,7 +91,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp) ...@@ -92,7 +91,7 @@ function cm.condition2(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0 return e:GetHandler():IsSummonType(SUMMON_TYPE_RITUAL) and Duel.GetCurrentChain()~=0
end end
function cm.operation2(e,tp,eg,ep,ev,re,r,rp) function cm.operation2(e,tp,eg,ep,ev,re,r,rp)
e:GetHandler():RegisterFlagEffect(m,RESET_CHAIN,0,1) e:GetHandler():RegisterFlagEffect(m,RESET_EVENT+0xc780000+RESET_CHAIN,0,1)
end end
function cm.condition4(e,tp,eg,ep,ev,re,r,rp) function cm.condition4(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1 return e:GetHandler():GetFlagEffect(m)>0 and Duel.GetCurrentChain()==1
......
...@@ -107,7 +107,8 @@ function cm.reset(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +107,8 @@ function cm.reset(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_ACT_CHECK,re:GetHandler():GetCode()) local code=re:GetHandler():GetCode()
table.insert(BATTLE_ACT_CHECK,code)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_NEGATED) e1:SetCode(EVENT_CHAIN_NEGATED)
......
...@@ -113,7 +113,8 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,7 +113,8 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_ACT_CHECK,re:GetHandler():GetCode()) local code=re:GetHandler():GetCode()
table.insert(BATTLE_ACT_CHECK,code)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAIN_NEGATED) e1:SetCode(EVENT_CHAIN_NEGATED)
......
...@@ -84,7 +84,8 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp) ...@@ -84,7 +84,8 @@ function cm.adjustop(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_CARD_CHECK,Duel.GetAttacker():GetCode()) local code=Duel.GetAttacker():GetCode()
table.insert(BATTLE_CARD_CHECK,code)
end end
function cm.clear(e,tp,eg,ep,ev,re,r,rp) function cm.clear(e,tp,eg,ep,ev,re,r,rp)
BATTLE_CARD_CHECK={} BATTLE_CARD_CHECK={}
......
...@@ -124,7 +124,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -124,7 +124,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_CARD_CHECK,Duel.GetAttacker():GetCode()) local code=Duel.GetAttacker():GetCode()
table.insert(BATTLE_CARD_CHECK,code)
end end
function cm.clear2(e,tp,eg,ep,ev,re,r,rp) function cm.clear2(e,tp,eg,ep,ev,re,r,rp)
BATTLE_CARD_CHECK={} BATTLE_CARD_CHECK={}
......
...@@ -107,7 +107,8 @@ function cm.reset(e,tp,eg,ep,ev,re,r,rp) ...@@ -107,7 +107,8 @@ function cm.reset(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_CARD_CHECK,Duel.GetAttacker():GetCode()) local code=Duel.GetAttacker():GetCode()
table.insert(BATTLE_CARD_CHECK,code)
end end
function cm.clear(e,tp,eg,ep,ev,re,r,rp) function cm.clear(e,tp,eg,ep,ev,re,r,rp)
BATTLE_CARD_CHECK={} BATTLE_CARD_CHECK={}
......
...@@ -126,7 +126,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -126,7 +126,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_CARD_CHECK,Duel.GetAttacker():GetCode()) local code=Duel.GetAttacker():GetCode()
table.insert(BATTLE_CARD_CHECK,code)
end end
function cm.clear2(e,tp,eg,ep,ev,re,r,rp) function cm.clear2(e,tp,eg,ep,ev,re,r,rp)
BATTLE_CARD_CHECK={} BATTLE_CARD_CHECK={}
......
...@@ -101,7 +101,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -101,7 +101,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_CARD_CHECK,Duel.GetAttacker():GetCode()) local code=Duel.GetAttacker():GetCode()
table.insert(BATTLE_CARD_CHECK,code)
end end
function cm.clear2(e,tp,eg,ep,ev,re,r,rp) function cm.clear2(e,tp,eg,ep,ev,re,r,rp)
BATTLE_CARD_CHECK={} BATTLE_CARD_CHECK={}
......
...@@ -113,7 +113,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp) ...@@ -113,7 +113,8 @@ function cm.clear(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.check2(e,tp,eg,ep,ev,re,r,rp) function cm.check2(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetAttacker()==nil then return end if Duel.GetAttacker()==nil then return end
table.insert(BATTLE_CARD_CHECK,Duel.GetAttacker():GetCode()) local code=Duel.GetAttacker():GetCode()
table.insert(BATTLE_CARD_CHECK,code)
end end
function cm.clear2(e,tp,eg,ep,ev,re,r,rp) function cm.clear2(e,tp,eg,ep,ev,re,r,rp)
BATTLE_CARD_CHECK={} BATTLE_CARD_CHECK={}
......
...@@ -36,7 +36,8 @@ end ...@@ -36,7 +36,8 @@ end
function cm.checkop(e,tp,eg,ep,ev,re,r,rp) function cm.checkop(e,tp,eg,ep,ev,re,r,rp)
local g=eg:Filter(Card.IsFaceup,nil) local g=eg:Filter(Card.IsFaceup,nil)
for tc in aux.Next(g) do for tc in aux.Next(g) do
table.insert(cm.summon_code,tc:GetCode()) local code=tc:GetCode()
table.insert(cm.summon_code,code)
end end
end end
function cm.fcheck(tp,sg,fc) function cm.fcheck(tp,sg,fc)
......
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