Commit 79f6c58f authored by POLYMER's avatar POLYMER

fix

parent b9125c28
--山雨欲来 --山雨欲来
--21.04.21 --21.04.21
local m=11451520 local cm,m=GetID()
local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -41,6 +40,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -41,6 +40,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.BreakEffect() Duel.BreakEffect()
c:CancelToGrave() c:CancelToGrave()
Duel.SendtoHand(c,1-tp,REASON_EFFECT) Duel.SendtoHand(c,1-tp,REASON_EFFECT)
Duel.ShuffleHand(1-tp)
end end
end end
function cm.con(e) function cm.con(e)
...@@ -48,5 +48,11 @@ function cm.con(e) ...@@ -48,5 +48,11 @@ function cm.con(e)
return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)<=3 return Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)<=3
end end
function cm.aclimit(e,tp,eg,ep,ev,re,r,rp) function cm.aclimit(e,tp,eg,ep,ev,re,r,rp)
if ep==tp then Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1) end local c=e:GetHandler()
local ct=Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)
if ep==tp then
--Duel.RegisterFlagEffect(tp,m,RESET_PHASE+PHASE_END,0,1)
c:SetTurnCounter(ct)
if Duel.GetCustomActivityCount(m,tp,ACTIVITY_CHAIN)>=3 then e:Reset() end
end
end end
\ No newline at end of file
...@@ -131,6 +131,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -131,6 +131,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoHand(tc,1-tp,REASON_EFFECT) Duel.SendtoHand(tc,1-tp,REASON_EFFECT)
Duel.ConfirmCards(tp,tc) Duel.ConfirmCards(tp,tc)
Duel.ShuffleHand(1-tp)
end end
end end
end end
\ No newline at end of file
...@@ -123,5 +123,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -123,5 +123,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SendtoHand(c,1-tp,REASON_EFFECT)>0 then Duel.Draw(tp,1,REASON_EFFECT) end if c:IsRelateToEffect(e) and Duel.SendtoHand(c,1-tp,REASON_EFFECT)>0 then Duel.ShuffleHand(1-tp) Duel.Draw(tp,1,REASON_EFFECT) end
end end
\ No newline at end of file
...@@ -137,6 +137,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -137,6 +137,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoHand(tc,1-tp,REASON_EFFECT) Duel.SendtoHand(tc,1-tp,REASON_EFFECT)
Duel.ConfirmCards(tp,tc) Duel.ConfirmCards(tp,tc)
Duel.ShuffleHand(1-tp)
end end
end end
end end
\ No newline at end of file
...@@ -157,5 +157,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -157,5 +157,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SendtoHand(c,1-tp,REASON_EFFECT)>0 then Duel.Draw(tp,1,REASON_EFFECT) end if c:IsRelateToEffect(e) and Duel.SendtoHand(c,1-tp,REASON_EFFECT)>0 then Duel.ShuffleHand(1-tp) Duel.Draw(tp,1,REASON_EFFECT) end
end end
\ No newline at end of file
...@@ -123,6 +123,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp) ...@@ -123,6 +123,7 @@ function cm.thop(e,tp,eg,ep,ev,re,r,rp)
Duel.DisableShuffleCheck() Duel.DisableShuffleCheck()
Duel.SendtoHand(tc,1-tp,REASON_EFFECT) Duel.SendtoHand(tc,1-tp,REASON_EFFECT)
Duel.ConfirmCards(tp,tc) Duel.ConfirmCards(tp,tc)
Duel.ShuffleHand(1-tp)
end end
end end
end end
\ No newline at end of file
...@@ -117,5 +117,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -117,5 +117,5 @@ function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SendtoHand(c,1-tp,REASON_EFFECT)>0 then Duel.Draw(tp,1,REASON_EFFECT) end if c:IsRelateToEffect(e) and Duel.SendtoHand(c,1-tp,REASON_EFFECT)>0 then Duel.ShuffleHand(1-tp) Duel.Draw(tp,1,REASON_EFFECT) end
end end
\ No newline at end of file
...@@ -118,6 +118,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -118,6 +118,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToHandAsCost() end if chk==0 then return c:IsAbleToHandAsCost() end
Duel.SendtoHand(c,1-tp,REASON_COST) Duel.SendtoHand(c,1-tp,REASON_COST)
Duel.ShuffleHand(1-tp)
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
......
...@@ -142,6 +142,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -142,6 +142,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToHandAsCost() end if chk==0 then return c:IsAbleToHandAsCost() end
Duel.SendtoHand(c,1-tp,REASON_COST) Duel.SendtoHand(c,1-tp,REASON_COST)
Duel.ShuffleHand(1-tp)
end end
function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.tg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end if chkc then return chkc:IsOnField() and chkc:IsAbleToHand() end
......
...@@ -70,6 +70,7 @@ function cm.otop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -70,6 +70,7 @@ function cm.otop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sg=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp) local sg=Duel.SelectMatchingCard(tp,cm.spfilter,tp,LOCATION_GRAVE,LOCATION_GRAVE,1,1,nil,e,tp)
Duel.SpecialSummon(sg,0,tp,1-tp,false,false,POS_FACEUP) Duel.SpecialSummon(sg,0,tp,1-tp,false,false,POS_FACEUP)
c:SetMaterial(nil)
end end
function cm.con(e,tp,eg,ep,ev,re,r,rp) function cm.con(e,tp,eg,ep,ev,re,r,rp)
e:SetLabel(#eg) e:SetLabel(#eg)
...@@ -79,6 +80,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -79,6 +80,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToHandAsCost() end if chk==0 then return c:IsAbleToHandAsCost() end
Duel.SendtoHand(c,1-tp,REASON_COST) Duel.SendtoHand(c,1-tp,REASON_COST)
Duel.ShuffleHand(1-tp)
end end
function cm.setfilter(c) function cm.setfilter(c)
return c:GetType()==TYPE_TRAP and c:IsSSetable() return c:GetType()==TYPE_TRAP and c:IsSSetable()
......
...@@ -209,6 +209,7 @@ function cm.excost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -209,6 +209,7 @@ function cm.excost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,1)) Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(m,1))
local cg=g:Select(tp,1,#g,nil) local cg=g:Select(tp,1,#g,nil)
Duel.SendtoHand(cg,1-tp,REASON_COST) Duel.SendtoHand(cg,1-tp,REASON_COST)
Duel.ShuffleHand(1-tp)
local ft=Duel.GetOperatedGroup():FilterCount(cm.thfilter,nil,tp) local ft=Duel.GetOperatedGroup():FilterCount(cm.thfilter,nil,tp)
e:SetLabel(ft) e:SetLabel(ft)
end end
......
...@@ -80,6 +80,7 @@ function cm.cacost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -80,6 +80,7 @@ function cm.cacost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToHandAsCost() end if chk==0 then return c:IsAbleToHandAsCost() end
Duel.SendtoHand(c,1-tp,REASON_COST) Duel.SendtoHand(c,1-tp,REASON_COST)
Duel.ShuffleHand(1-tp)
end end
function cm.catg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.catg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(cm.setfilter,tp,LOCATION_DECK,0,nil,tp) local g=Duel.GetMatchingGroup(cm.setfilter,tp,LOCATION_DECK,0,nil,tp)
......
...@@ -84,8 +84,11 @@ function c22348428.seqtg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -84,8 +84,11 @@ function c22348428.seqtg(e,tp,eg,ep,ev,re,r,rp,chk)
local tctb={} local tctb={}
for tc in aux.Next(g) do for tc in aux.Next(g) do
local lv=tc:GetLevel() local lv=tc:GetLevel()
if not tct[lv] then
tct[lv]=true
table.insert(tctb,lv) table.insert(tctb,lv)
end end
end
local num=Duel.AnnounceNumber(tp,table.unpack(tctb)) local num=Duel.AnnounceNumber(tp,table.unpack(tctb))
e:SetLabel(num) e:SetLabel(num)
Duel.ShuffleExtra(tp) Duel.ShuffleExtra(tp)
......
...@@ -6,14 +6,39 @@ function s.initial_effect(c) ...@@ -6,14 +6,39 @@ function s.initial_effect(c)
e1:SetDescription(aux.Stringid(id,0)) e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_HAND+LOCATION_GRAVE) e1:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e1:SetCountLimit(1,id) e1:SetCountLimit(1,id)
e1:SetCondition(s.spcon) e1:SetCondition(s.spcon)
e1:SetCost(s.spcost) e1:SetCost(s.spcost)
e1:SetTarget(s.sptg) e1:SetTarget(s.sptg(EVENT_CHAINING))
e1:SetOperation(s.spop) e1:SetOperation(s.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(TIMING_BATTLE_END,TIMING_BATTLE_START+TIMING_BATTLE_END)
e2:SetTarget(s.sptg(EVENT_FREE_CHAIN))
c:RegisterEffect(e2)
local e3=e1:Clone()
e3:SetCode(EVENT_SUMMON)
e3:SetTarget(s.sptg(EVENT_SUMMON))
c:RegisterEffect(e3)
local e4=e1:Clone()
e4:SetCode(EVENT_FLIP_SUMMON)
e4:SetTarget(s.sptg(EVENT_FLIP_SUMMON))
c:RegisterEffect(e4)
local e5=e1:Clone()
e5:SetCode(EVENT_SPSUMMON)
e5:SetTarget(s.sptg(EVENT_SPSUMMON))
c:RegisterEffect(e5)
local e6=e1:Clone()
e6:SetCode(EVENT_TO_HAND)
e6:SetTarget(s.sptg(EVENT_TO_HAND))
c:RegisterEffect(e6)
local e7=e1:Clone()
e7:SetCode(EVENT_ATTACK_ANNOUNCE)
e7:SetTarget(s.sptg(EVENT_ATTACK_ANNOUNCE))
c:RegisterEffect(e7)
Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,s.chainfilter) Duel.AddCustomActivityCounter(id,ACTIVITY_CHAIN,s.chainfilter)
end end
function s.chainfilter(re,tp,cid) function s.chainfilter(re,tp,cid)
...@@ -23,19 +48,30 @@ end ...@@ -23,19 +48,30 @@ end
function s.spcon(e,tp,eg,ep,ev,re,r,rp) function s.spcon(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2)
end end
function s.costfilter(c) function s.costfilter(c,event)
return bit.band(c:GetType(),TYPE_TRAP+TYPE_COUNTER)==TYPE_TRAP+TYPE_COUNTER and c:IsAbleToRemoveAsCost() if not (bit.band(c:GetType(),TYPE_TRAP+TYPE_COUNTER)==TYPE_TRAP+TYPE_COUNTER and c:IsAbleToDeckAsCost()) then return false end
and c:CheckActivateEffect(false,true,false) local te=c:CheckActivateEffect(true,true,false)
return te and te:GetCode()==event
end end
function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() e:SetLabel(1)
if chk==0 then return Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_GRAVE,0,1,e:GetHandler()) end return true
end
function s.sptg(event)
return function(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then
if e:GetLabel()==0 then return false end
e:SetLabel(0)
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false)
and Duel.IsExistingMatchingCard(s.costfilter,tp,LOCATION_GRAVE,0,1,c,event)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_GRAVE,0,1,1,e:GetHandler()) local g=Duel.SelectMatchingCard(tp,s.costfilter,tp,LOCATION_GRAVE,0,1,1,c,event)
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)
local tc=g:GetFirst() local tc=g:GetFirst()
local te,ceg,cev,cre,cr,crp=tc:CheckActivateEffect(false,true,true) local te,ceg,cev,cre,cr,crp=tc:CheckActivateEffect(true,true,true)
Duel.SendtoDeck(g,nil,SEQ_DECKSHUFFLE,REASON_COST)
Duel.ClearTargetCard() Duel.ClearTargetCard()
tc:CreateEffectRelation(e) tc:CreateEffectRelation(e)
local tg=te:GetTarget() local tg=te:GetTarget()
...@@ -43,11 +79,8 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -43,11 +79,8 @@ function s.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
te:SetLabelObject(e:GetLabelObject()) te:SetLabelObject(e:GetLabelObject())
e:SetLabelObject(te) e:SetLabelObject(te)
Duel.ClearOperationInfo(0) Duel.ClearOperationInfo(0)
end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end
end end
function s.setfilter(c) function s.setfilter(c)
return c:IsCode(92512625) and c:IsSSetable() return c:IsCode(92512625) and c:IsSSetable()
......
...@@ -38,7 +38,7 @@ function cm.initial_effect(c) ...@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c43990025.chcon) e4:SetCondition(c43990025.chcon)
e4:SetTarget(c43990025.chtg) --e4:SetTarget(c43990025.chtg)
e4:SetOperation(c43990025.chop) e4:SetOperation(c43990025.chop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
...@@ -33,12 +33,12 @@ function cm.initial_effect(c) ...@@ -33,12 +33,12 @@ function cm.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--change effect --change effect
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_QUICK_O) e4:SetType(EFFECT_TYPE_QUICK_F)
e4:SetCode(EVENT_CHAINING) e4:SetCode(EVENT_CHAINING)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c43990026.chcon) e4:SetCondition(c43990026.chcon)
e4:SetTarget(c43990026.chtg) --e4:SetTarget(c43990026.chtg)
e4:SetOperation(c43990026.chop) e4:SetOperation(c43990026.chop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
...@@ -38,7 +38,7 @@ function cm.initial_effect(c) ...@@ -38,7 +38,7 @@ function cm.initial_effect(c)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1) e4:SetCountLimit(1)
e4:SetCondition(c43990027.chcon) e4:SetCondition(c43990027.chcon)
e4:SetTarget(c43990027.chtg) --e4:SetTarget(c43990027.chtg)
e4:SetOperation(c43990027.chop) e4:SetOperation(c43990027.chop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
......
...@@ -39,7 +39,7 @@ function c49811179.initial_effect(c) ...@@ -39,7 +39,7 @@ function c49811179.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(49811179,1)) e4:SetDescription(aux.Stringid(49811179,1))
e4:SetCategory(CATEGORY_DESTROY) e4:SetCategory(CATEGORY_POSITION)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetProperty(EFFECT_FLAG_DELAY) e4:SetProperty(EFFECT_FLAG_DELAY)
e4:SetCode(EVENT_DESTROYED) e4:SetCode(EVENT_DESTROYED)
...@@ -54,7 +54,7 @@ function c49811179.sdcon(e) ...@@ -54,7 +54,7 @@ function c49811179.sdcon(e)
and not Duel.IsExistingMatchingCard(Card.IsFacedown,e:GetHandlerPlayer(),0,LOCATION_ONFIELD,1,nil) and not Duel.IsExistingMatchingCard(Card.IsFacedown,e:GetHandlerPlayer(),0,LOCATION_ONFIELD,1,nil)
end end
function c49811179.imfilter(c) function c49811179.imfilter(c)
return c:IsSetCard(1) and c:IsType(TYPE_SYNCHRO) and c:IsFaceup() return c:IsSetCard(0x1) and c:IsType(TYPE_SYNCHRO) and c:IsFaceup()
end end
function c49811179.imcon(e) function c49811179.imcon(e)
return Duel.IsExistingMatchingCard(c49811179.imfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) return Duel.IsExistingMatchingCard(c49811179.imfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
...@@ -64,7 +64,7 @@ function c49811179.gravecon(e) ...@@ -64,7 +64,7 @@ function c49811179.gravecon(e)
return Duel.IsExistingMatchingCard(c49811179.imfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_NECRO_VALLEY) return Duel.IsExistingMatchingCard(c49811179.imfilter,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil) and not Duel.IsPlayerAffectedByEffect(1-tp,EFFECT_NECRO_VALLEY)
end end
function c49811179.filter(c) function c49811179.filter(c)
return c:IsSetCard(1) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand() return c:IsSetCard(0x1) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c49811179.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function c49811179.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
...@@ -57,7 +57,7 @@ function c49811180.initial_effect(c) ...@@ -57,7 +57,7 @@ function c49811180.initial_effect(c)
c:RegisterEffect(e5) c:RegisterEffect(e5)
local e6=Effect.CreateEffect(c) local e6=Effect.CreateEffect(c)
e6:SetDescription(aux.Stringid(49811180,2)) e6:SetDescription(aux.Stringid(49811180,2))
e6:SetCategory(CATEGORY_DESTROY) e6:SetCategory(CATEGORY_POSITION)
e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e6:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e6:SetProperty(EFFECT_FLAG_DELAY) e6:SetProperty(EFFECT_FLAG_DELAY)
e6:SetCode(EVENT_DESTROYED) e6:SetCode(EVENT_DESTROYED)
......
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