Commit 1b37a0a7 authored by Huangnan's avatar Huangnan

fix

parent 333ca51d
No preview for this file type
expansions/pics/12400056.jpg

81.7 KB | W: | H:

expansions/pics/12400056.jpg

93.2 KB | W: | H:

expansions/pics/12400056.jpg
expansions/pics/12400056.jpg
expansions/pics/12400056.jpg
expansions/pics/12400056.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12882005.jpg

95.5 KB | W: | H:

expansions/pics/12882005.jpg

95.5 KB | W: | H:

expansions/pics/12882005.jpg
expansions/pics/12882005.jpg
expansions/pics/12882005.jpg
expansions/pics/12882005.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/12882045.jpg

101 KB | W: | H:

expansions/pics/12882045.jpg

98.8 KB | W: | H:

expansions/pics/12882045.jpg
expansions/pics/12882045.jpg
expansions/pics/12882045.jpg
expansions/pics/12882045.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/61200305.jpg

62.9 KB | W: | H:

expansions/pics/61200305.jpg

63.3 KB | W: | H:

expansions/pics/61200305.jpg
expansions/pics/61200305.jpg
expansions/pics/61200305.jpg
expansions/pics/61200305.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/61200401.jpg

75.7 KB | W: | H:

expansions/pics/61200401.jpg

75.6 KB | W: | H:

expansions/pics/61200401.jpg
expansions/pics/61200401.jpg
expansions/pics/61200401.jpg
expansions/pics/61200401.jpg
  • 2-up
  • Swipe
  • Onion skin
...@@ -17,7 +17,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,7 +17,7 @@ function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function s.operation(e,tp,eg,ep,ev,re,r,rp) function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local g=Duel.GetMatchingGroup(Card.IsType,tp,0xff,0,nil,TYPE_COUNTER) local g=Group.__add(Duel.GetMatchingGroup(Card.IsType,tp,0x7f,0x7f,nil,TYPE_COUNTER),Duel.GetOverlayGroup(tp,1,1):Filter(Card.IsType,nil,TYPE_COUNTER))
for tc in aux.Next(g) do for tc in aux.Next(g) do
local e0=Effect.CreateEffect(c) local e0=Effect.CreateEffect(c)
e0:SetType(EFFECT_TYPE_FIELD) e0:SetType(EFFECT_TYPE_FIELD)
...@@ -73,7 +73,7 @@ function s.rsop(e,tp,eg,ep,ev,re,r,rp) ...@@ -73,7 +73,7 @@ function s.rsop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function s.op(e,tp,eg,ep,ev,re,r,rp) function s.op(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.IsType,tp,0xff,0,nil,TYPE_COUNTER) local sg=Group.__add(Duel.GetMatchingGroup(Card.IsType,tp,0x7f,0,nil,TYPE_COUNTER),Duel.GetOverlayGroup(tp,1,0):Filter(Card.IsType,nil,TYPE_COUNTER))
local g=sg:Filter(function(c)return c:GetFlagEffect(id)==0 end,nil) local g=sg:Filter(function(c)return c:GetFlagEffect(id)==0 end,nil)
if #g==0 then return end if #g==0 then return end
for tc in aux.Next(g) do for tc in aux.Next(g) do
......
...@@ -36,22 +36,35 @@ end ...@@ -36,22 +36,35 @@ end
function s.sfliter(c) function s.sfliter(c)
return c.MoJin and c:IsType(TYPE_MONSTER) return c.MoJin and c:IsType(TYPE_MONSTER)
end end
function s.hspfilter(c,tp,fc) function s.hspfilter1(c,tp,fc)
return c.MoJin and c:IsType(TYPE_MONSTER) and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0 return c.MoJin and c:IsType(TYPE_MONSTER) and Duel.GetLocationCountFromEx(tp,tp,c,fc)>0
and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL) and c:IsAbleToDeckOrExtraAsCost() and not (c:IsLocation(LOCATION_REMOVED) and c:IsFacedown()) and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL) and c:IsAbleToDeckOrExtraAsCost() and not (c:IsLocation(LOCATION_REMOVED) and c:IsFacedown())
end end
function s.hspfilter2(c,tp,fc)
return c.MoJin and c:IsType(TYPE_MONSTER) and c:IsAbleToDeckOrExtraAsCost()
and c:IsCanBeFusionMaterial(fc,SUMMON_TYPE_SPECIAL) and not (c:IsLocation(LOCATION_REMOVED) and c:IsFacedown())
end
function s.hspcon(e,c) function s.hspcon(e,c)
if c==nil then return true end if c==nil then return true end
return Duel.IsExistingMatchingCard(s.hspfilter,c:GetControler(),LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,2,nil,c:GetControler()) return Duel.IsExistingMatchingCard(s.hspfilter1,c:GetControler(),LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,c:GetControler(),c)
and Duel.IsExistingMatchingCard(s.hspfilter2,c:GetControler(),LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil,c:GetControler(),c)
end end
function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function s.hsptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(s.hspfilter,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,nil,tp) local g1=Duel.GetMatchingGroup(s.hspfilter1,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,nil,tp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:CancelableSelect(tp,2,2,nil) local tc1=g1:SelectUnselect(nil,tp,false,true,1,1)
if sg then if tc1 then
sg:KeepAlive() local g2=Duel.GetMatchingGroup(s.hspfilter2,tp,LOCATION_MZONE+LOCATION_GRAVE+LOCATION_REMOVED,0,tc1,tp,c)
e:SetLabelObject(sg) local tc2=g2:SelectUnselect(nil,tp,false,true,1,1)
return true if tc2 then
local mg=Group.CreateGroup()
mg:AddCard(tc1)
mg:AddCard(tc2)
mg:KeepAlive()
e:SetLabelObject(mg)
return true
end
return false
else return false end else return false end
end end
function s.hspop(e,tp,eg,ep,ev,re,r,rp,c) function s.hspop(e,tp,eg,ep,ev,re,r,rp,c)
......
--牺牲少女 安娜拉 --牺牲少女 安娜拉
function c65040064.initial_effect(c) function c65041064.initial_effect(c)
--ritual level --ritual level
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_RITUAL_LEVEL) e1:SetCode(EFFECT_RITUAL_LEVEL)
e1:SetValue(c65040064.rlevel) e1:SetValue(c65041064.rlevel)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--become material --become material
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_EVENT_PLAYER) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_EVENT_PLAYER)
e2:SetCode(EVENT_BE_MATERIAL) e2:SetCode(EVENT_BE_MATERIAL)
e2:SetCondition(c65040064.condition) e2:SetCondition(c65041064.condition)
e2:SetOperation(c65040064.operation) e2:SetOperation(c65041064.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c65040064.rlevel(e,c) function c65041064.rlevel(e,c)
local lv=aux.GetCappedLevel(e:GetHandler()) local lv=aux.GetCappedLevel(e:GetHandler())
if c:IsCode(65040053) then if c:IsCode(65040053) then
local clv=c:GetLevel() local clv=c:GetLevel()
return (lv<<16)+clv return (lv<<16)+clv
else return lv end else return lv end
end end
function c65040064.condition(e,tp,eg,ep,ev,re,r,rp) function c65041064.condition(e,tp,eg,ep,ev,re,r,rp)
return r==REASON_RITUAL and not e:GetHandler():IsPreviousLocation(LOCATION_OVERLAY) return r==REASON_RITUAL and not e:GetHandler():IsPreviousLocation(LOCATION_OVERLAY)
end end
function c65040064.operation(e,tp,eg,ep,ev,re,r,rp) function c65041064.operation(e,tp,eg,ep,ev,re,r,rp)
local rc=eg:GetFirst() local rc=eg:GetFirst()
while rc do while rc do
if rc:GetFlagEffect(65040064)==0 then if rc:GetFlagEffect(65041064)==0 then
--cannot special summon --cannot special summon
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetDescription(aux.Stringid(65040064,0)) e1:SetDescription(aux.Stringid(65041064,0))
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_PLAYER_TARGET) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT+EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_FIELD) e1:SetType(EFFECT_TYPE_FIELD)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
...@@ -39,7 +39,7 @@ function c65040064.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c65040064.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetAbsoluteRange(ep,0,1) e1:SetAbsoluteRange(ep,0,1)
rc:RegisterEffect(e1,true) rc:RegisterEffect(e1,true)
rc:RegisterFlagEffect(65040064,RESET_EVENT+RESETS_STANDARD,0,1) rc:RegisterFlagEffect(65041064,RESET_EVENT+RESETS_STANDARD,0,1)
end end
rc=eg:GetNext() rc=eg:GetNext()
end end
......
...@@ -60,6 +60,7 @@ function c82000590.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -60,6 +60,7 @@ function c82000590.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c82000590.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c82000590.filter,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)
end end
end end
end end
......
...@@ -47,6 +47,7 @@ function c82000593.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,6 +47,7 @@ function c82000593.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c82000593.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c82000593.filter,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)
end end
end end
end end
......
...@@ -31,6 +31,7 @@ function c82000596.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,6 +31,7 @@ function c82000596.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c82000596.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c82000596.filter,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)
end end
end end
end end
......
...@@ -43,6 +43,7 @@ function c82000599.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -43,6 +43,7 @@ function c82000599.op(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,c82000599.filter,tp,LOCATION_DECK,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,c82000599.filter,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)
end end
end 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