Commit 4c0f6a48 authored by Huangnan's avatar Huangnan

fix

parent ecba3752
Pipeline #35755 passed with stages
in 41 minutes and 1 second
No preview for this file type
......@@ -33,12 +33,10 @@ function s.initial_effect(c)
c:RegisterEffect(e2)
end
function s.xyzfilter(c)
return c:IsFaceup() and (Summon_Count[1] >= 5 or Summon_Count[2] >= 5)
return c:IsFaceup() --and (Summon_Count[1] >= 5 or Summon_Count[2] >= 5)
end
function s.altop(e,tp,chk)
if chk==0 then
return Summon_Count[1-tp+3]>=5 or Summon_Count[1-tp+1]>=5
end
if chk==0 then return Summon_Count[1-tp+3]>=5 or Summon_Count[1-tp+1]>=5 end
return true
end
function s.checkop(e,tp,eg,ep,ev,re,r,rp)
......@@ -132,24 +130,6 @@ function s.spop(e,tp,eg,ep,ev,re,r,rp)
local e11=e10:Clone()
e11:SetCode(EFFECT_NO_EFFECT_DAMAGE)
Duel.RegisterEffect(e11,tp)
--双方场上的卡不能回到卡组
local e12=Effect.CreateEffect(c)
e12:SetType(EFFECT_TYPE_FIELD)
e12:SetCode(EFFECT_CANNOT_TO_DECK)
e12:SetReset(RESET_PHASE+PHASE_END)
e12:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_PLAYER_TARGET)
e12:SetTargetRange(1,1)
e12:SetTarget(aux.TargetBoolFunction(Card.IsLocation,LOCATION_ONFIELD))
Duel.RegisterEffect(e12,tp)
--双方场上的卡不能回到手卡
local e13=Effect.CreateEffect(c)
e13:SetType(EFFECT_TYPE_FIELD)
e13:SetCode(EFFECT_CANNOT_TO_HAND)
e13:SetReset(RESET_PHASE+PHASE_END)
e13:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_PLAYER_TARGET)
e13:SetTargetRange(1,1)
e13:SetTarget(aux.TargetBoolFunction(Card.IsLocation,LOCATION_ONFIELD))
Duel.RegisterEffect(e13,tp)
end
function s.disable(e,c)
return c~=e:GetHandler()
......
......@@ -94,6 +94,7 @@ function cm.sctg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.scop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local grave_cond=Duel.IsExistingMatchingCard(Card.IsRace,tp,LOCATION_GRAVE,0,5,nil,RACE_DINOSAUR)
local mg=Duel.GetMatchingGroup(Card.IsFaceup,tp,LOCATION_MZONE,0,nil)
......
......@@ -2,7 +2,7 @@
local cm,m,o=GetID()
function cm.initial_effect(c)
c:EnableReviveLimit()
aux.AddLinkProcedure(c,cm.lkfilter,2,99)
aux.AddLinkProcedure(c,nil,2,99,cm.lcheck)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
......@@ -41,10 +41,10 @@ function cm.initial_effect(c)
c:RegisterEffect(e3)
end
function cm.lkfilter(c)
return c:IsRace(RACE_DINOSAUR)
end
function cm.lcheck(g)
return g:IsExists(Card.IsLinkRace,2,nil,RACE_DINOSAUR)
end
function cm.rmcfilter(c,tp)
return c:IsRace(RACE_DINOSAUR) and (c:IsPreviousLocation(LOCATION_HAND) or c:IsPreviousLocation(LOCATION_MZONE))
......
......@@ -26,12 +26,12 @@ end
function cm.filter(c)
function cm.filter(c,tp)
return c:IsRace(RACE_DINOSAUR) and c:IsLevelAbove(1) and Duel.IsExistingMatchingCard(Card.IsType,tp,LOCATION_HAND+LOCATION_MZONE,0,1,c,TYPE_MONSTER)
and Duel.IsExistingMatchingCard(cm.searchfilter,tp,LOCATION_DECK,0,1,nil,c:GetLevel())
end
function cm.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(cm.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,nil,tp) end
end
function cm.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
......@@ -39,7 +39,7 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
if #g>0 then
Duel.Destroy(g,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONFIRM)
local tg=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil)
local tg=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_HAND+LOCATION_MZONE,0,1,1,nil,tp)
if #tg==0 then return end
local tc=tg:GetFirst()
Duel.ConfirmCards(1-tp,tc)
......
--武道极徒诸星演武场
--武道极徒诸星演武场
local cm, m, o = GetID()
function cm.initial_effect(c)
......@@ -149,24 +150,24 @@ end
function cm.eftg(e,c)
return c:IsSetCard(0x82b)
end
function cm.matfilter(c)
return c:IsFaceup()
end
function cm.linkcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE
end
function cm.lkfilter(c)
return c:IsLinkSummonable(nil)
end
function cm.lktg(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,nil,mg) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
if chk==0 then return Duel.IsExistingMatchingCard(cm.lkfilter,tp,LOCATION_EXTRA,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end
function cm.lkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local mg=Duel.GetMatchingGroup(cm.matfilter,tp,LOCATION_MZONE,0,nil)
local g=Duel.SelectMatchingCard(tp,Card.IsLinkSummonable,tp,LOCATION_EXTRA,0,1,1,nil,mg)
local g=Duel.SelectMatchingCard(tp,cm.lkfilter,tp,LOCATION_EXTRA,0,1,1,nil)
local tc=g:GetFirst()
if tc then
Duel.LinkSummon(tp,tc,mg)
if tc then
Duel.LinkSummon(tp,tc,nil)
if not tc:IsSetCard(0x82b) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......
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