Commit 99a124b4 authored by Huangnan's avatar Huangnan

fix

parent 9eb5ee84
Pipeline #41027 passed with stage
in 8 minutes and 32 seconds
No preview for this file type
expansions/pics/11600024.jpg

76.5 KB | W: | H:

expansions/pics/11600024.jpg

73.7 KB | W: | H:

expansions/pics/11600024.jpg
expansions/pics/11600024.jpg
expansions/pics/11600024.jpg
expansions/pics/11600024.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12400135.jpg

75.9 KB | W: | H:

expansions/pics/12400135.jpg

78.8 KB | W: | H:

expansions/pics/12400135.jpg
expansions/pics/12400135.jpg
expansions/pics/12400135.jpg
expansions/pics/12400135.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/21379159.jpg

52.7 KB | W: | H:

expansions/pics/21379159.jpg

46.2 KB | W: | H:

expansions/pics/21379159.jpg
expansions/pics/21379159.jpg
expansions/pics/21379159.jpg
expansions/pics/21379159.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50213115.jpg

38.3 KB | W: | H:

expansions/pics/50213115.jpg

98.5 KB | W: | H:

expansions/pics/50213115.jpg
expansions/pics/50213115.jpg
expansions/pics/50213115.jpg
expansions/pics/50213115.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50221215.jpg

72 KB | W: | H:

expansions/pics/50221215.jpg

79.5 KB | W: | H:

expansions/pics/50221215.jpg
expansions/pics/50221215.jpg
expansions/pics/50221215.jpg
expansions/pics/50221215.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/50223165.jpg

94.1 KB | W: | H:

expansions/pics/50223165.jpg

94.1 KB | W: | H:

expansions/pics/50223165.jpg
expansions/pics/50223165.jpg
expansions/pics/50223165.jpg
expansions/pics/50223165.jpg
  • 2-up
  • Swipe
  • Onion skin
......@@ -78,7 +78,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
elseif tc:IsType(TYPE_XYZ) then
b=SUMMON_TYPE_XYZ
elseif tc:IsType(TYPE_RITUAL) then
b=TYPE_RITUAL
b=SUMMON_TYPE_RITUAL
end
Duel.SpecialSummon(tc,b,tp,tp,false,true,POS_FACEUP)
tc:CompleteProcedure()
......
......@@ -18,10 +18,11 @@ end
function c21113606.q(c,e)
return c:IsControlerCanBeChanged() and c:IsFaceup() and c:IsCanBeEffectTarget(e)
end
function c21113606.tg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,4,1,nil) end
local g=Duel.GetMatchingGroup(c21113606.q,tp,0,4,nil,e)
function c21113606.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControlerCanBeChanged() end
local g=Duel.GetMatchingGroup(c21113606.q,tp,0,LOCATION_MZONE,nil,e)
local sg=g:RandomSelect(tp,1,1)
if chk==0 then return Duel.IsExistingTarget(Card.IsControlerCanBeChanged,tp,0,4,1,nil) and g:GetCount()>0 end
Duel.SetTargetCard(sg)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,sg,1,0,0)
end
......
......@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_DESTROY)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
--e1:SetCountLimit(1,id)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
......
......@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_NEGATE+CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
--e1:SetCountLimit(1,id)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
......
......@@ -9,7 +9,7 @@ function s.initial_effect(c)
e1:SetCategory(CATEGORY_DAMAGE)
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,id)
--e1:SetCountLimit(1,id)
e1:SetCost(s.cost)
e1:SetTarget(s.target)
e1:SetOperation(s.activate)
......@@ -38,8 +38,8 @@ end
function s.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetTargetPlayer(1-tp)
Duel.SetTargetParam(1000)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,1000)
Duel.SetTargetParam(800)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800)
end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
local p,d=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
......@@ -70,7 +70,7 @@ function s.damcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnCount()>e:GetLabel()
end
function s.damop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(1-tp,1000,REASON_EFFECT)
Duel.Damage(1-tp,800,REASON_EFFECT)
end
--SearchCard
function s.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -22,8 +22,13 @@ function cm.initial_effect(c)
end
--e1
function cm.e1f1(c, e, tp)
return c:GetType() & 0x81 == 0x81 and c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_RITUAL, tp, false, true)
and (c:IsLocation(LOCATION_DECK) and c:IsCode(33300900) or c:IsRace(RACE_SPELLCASTER))
if c:GetType() & 0x81 ~= 0x81 or not c:IsCanBeSpecialSummoned(e, SUMMON_TYPE_RITUAL, tp, false, true) then
return false
end
if c:IsLocation(LOCATION_DECK) then
return c:IsCode(33300900)
end
return c:IsRace(RACE_SPELLCASTER)
end
function cm.e1f2(c, tp, mg)
local g = mg:Filter(Card.IsCanBeRitualMaterial, c, c):Filter((c.mat_filter or aux.TRUE), nil, tp)
......
......@@ -134,7 +134,7 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp)
local ss=Duel.SelectOption(tp,aux.Stringid(id,4),aux.Stringid(id,5),aux.Stringid(id,6),aux.Stringid(id,7),aux.Stringid(id,8))
if ss==0 then
--battle indestructable
local e1=Effect.CreateEffect(c)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_BATTLE)
e1:SetValue(1)
......@@ -157,7 +157,7 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp)
e2:SetRange(LOCATION_MZONE)
e2:SetValue(1)
e2:SetReset(RESET_EVENT+0x1fe0000)
sc:RegisterEffect(e2)
sc:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetDescription(aux.Stringid(id,5))
e3:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_CLIENT_HINT)
......@@ -188,7 +188,7 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000)
sc:RegisterEffect(e1)
end
if ss==3 then
if ss==3 then
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,7))
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
......@@ -196,17 +196,17 @@ function s.seqop(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EFFECT_ATTACK_ALL)
e3:SetValue(1)
e3:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e3)
sc:RegisterEffect(e3)
end
if ss==4 then
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,8))
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_PIERCE)
e3:SetValue(DOUBLE_DAMAGE)
e3:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e3)
if ss==4 then
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(id,8))
e3:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e3:SetType(EFFECT_TYPE_SINGLE)
e3:SetCode(EFFECT_PIERCE)
e3:SetValue(DOUBLE_DAMAGE)
e3:SetReset(RESET_EVENT+0x1fe0000)
sc:RegisterEffect(e3)
end
end
......
......@@ -45,7 +45,7 @@ function s.tgfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsType(TYPE_RITUAL) and c:IsRace(RACE_PLANT) and c:IsAbleToGraveAsCost()
end
function s.tg2filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToGraveAsCost()
return c:IsAbleToGraveAsCost()
end
function s.tfcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp or not Duel.IsMainPhase() then return false end
......
......@@ -90,7 +90,7 @@ function c50225010.spop(e,tp,eg,ep,ev,re,r,rp)
end
end
function c50225010.atkcon(e)
return Duel.IsExistingMatchingCard(Card.IsCode,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler(),50225010)
return Duel.IsExistingMatchingCard(Card.IsCode,e:GetHandlerPlayer(),LOCATION_PZONE,0,1,e:GetHandler(),50225005)
end
function c50225010.antg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
......@@ -86,6 +86,7 @@ function cm.tgtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_GRAVE)
end
function cm.tgop(e,tp,eg,ep,ev,re,r,rp)
local num=Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_EQUIP)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,cm.filter,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,1,nil,e,tp,num-1)
......
......@@ -105,7 +105,7 @@ end
function s.op4(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g2=Duel.SelectMatchingCard(tp,s.f1,tp,LOCATION_MZONE,0,1,1,nil)
local g=Duel.SelectMatchingCard(tp,s.f1,tp,LOCATION_MZONE,0,1,1,nil)
local ag=g:GetFirst()
if c:IsSSetable() then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
......
......@@ -126,7 +126,7 @@ end
function s.op3(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g2=Duel.SelectMatchingCard(tp,s.f2,tp,LOCATION_MZONE,0,1,1,nil)
local ag=g:GetFirst()
local ag=g2:GetFirst()
if c:IsSSetable() then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.Equip(tp,c,ag)
......@@ -142,7 +142,7 @@ function s.cost4(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local c2=c:GetEquipTarget()
if chk==0 then return c:IsAbleToRemove() and c2:IsAbleToRemove() end
local g=Duel.CreateGroup()
local g=Group.CreateGroup()
g:AddCard(c)
g:AddCard(c2)
Duel.Remove(g,POS_FACEUP,REASON_COST)
......@@ -179,7 +179,7 @@ function s.op4(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
ag:RegisterEffect(e2)
if ag:IsDestructable(e) then
ag:Destroy(REASON_EFFECT)
Duel.Destroy(ag,REASON_EFFECT)
end
end
end
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment