Commit 907fae4a authored by POLYMER's avatar POLYMER

fix

parent 8945d085
...@@ -4,7 +4,7 @@ function c19209684.initial_effect(c) ...@@ -4,7 +4,7 @@ function c19209684.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetHintTiming(0,TIMING_END_PHASE) e1:SetHintTiming(0,TIMING_END_PHASE)
e1:SetDescription(aux.Stringid(19209684,0)) e1:SetDescription(aux.Stringid(19209684,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_ATKCHANGE+CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH+CATEGORY_GRAVE_ACTION)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
......
...@@ -67,7 +67,7 @@ end ...@@ -67,7 +67,7 @@ end
function s.gyop(e,tp,eg,ep,ev,re,r,rp) function s.gyop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler() local rc=re:GetHandler()
if rc:IsRelateToEffect(re) then if rc:IsRelateToEffect(re) then
Duel.SendtoDeck(rc,nil,REASON_EFFECT) Duel.SendtoDeck(rc,nil,SEQ_DECKSHUFFLE,REASON_EFFECT)
end end
end end
......
...@@ -51,7 +51,7 @@ function s.chcost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,7 +51,7 @@ function s.chcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Release(e:GetHandler(),REASON_COST) Duel.Release(e:GetHandler(),REASON_COST)
end end
function s.chtg(e,tp,eg,ep,ev,re,r,rp,chk) function s.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return Duel.IsPlayerCanDraw(rp,1) end
end end
function s.chop(e,tp,eg,ep,ev,re,r,rp) function s.chop(e,tp,eg,ep,ev,re,r,rp)
local g=Group.CreateGroup() local g=Group.CreateGroup()
......
...@@ -131,20 +131,23 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -131,20 +131,23 @@ function s.effop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_DIRECT_ATTACK) e1:SetCode(EFFECT_DIRECT_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetCode(EVENT_CHAINING)
e2:SetCode(EFFECT_CANNOT_ACTIVATE) e2:SetOperation(s.actop)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,1)
e2:SetValue(s.aclimit)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
end end
end end
function s.aclimit(e,re,tp) function s.actop(e,tp,eg,ep,ev,re,r,rp)
return re:GetHandler()==e:GetHandler() if re:GetHandler()==e:GetHandler() then
Duel.SetChainLimit(s.chainlm)
end
end
function s.chainlm(e,rp,tp)
return tp==rp
end end
function s.negcon(e,tp,eg,ep,ev,re,r,rp) function s.negcon(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) or not Duel.IsChainNegatable(ev) then return false end if e:GetHandler():IsStatus(STATUS_BATTLE_DESTROYED) or not Duel.IsChainNegatable(ev) then return false end
......
...@@ -64,7 +64,7 @@ function s.initial_effect(c) ...@@ -64,7 +64,7 @@ function s.initial_effect(c)
c:RegisterEffect(e7) c:RegisterEffect(e7)
end end
function s.spfilter(c) function s.spfilter(c)
return c:IsFaceup() and c:IsAbleToGraveAsCost() return c:IsFaceup() and c:IsReleasable()
end end
function s.gcheck(g) function s.gcheck(g)
return g:FilterCount(Card.IsSetCard,nil,0x838)>0 return g:FilterCount(Card.IsSetCard,nil,0x838)>0
...@@ -77,7 +77,7 @@ function s.spcon(e,c) ...@@ -77,7 +77,7 @@ function s.spcon(e,c)
end end
function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c) function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.spfilter,tp,LOCATION_MZONE,0,nil)
local sg=g:SelectSubGroup(tp,s.gcheck,false,3,3) local sg=g:SelectSubGroup(tp,s.gcheck,true,3,3)
if sg then if sg then
sg:KeepAlive() sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
...@@ -88,7 +88,7 @@ end ...@@ -88,7 +88,7 @@ end
function s.spop(e,tp,eg,ep,ev,re,r,rp,c) function s.spop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=e:GetLabelObject() local sg=e:GetLabelObject()
if not sg then return end if not sg then return end
Duel.SendtoGrave(sg,REASON_COST) Duel.Release(sg,REASON_COST)
sg:DeleteGroup() sg:DeleteGroup()
end end
function s.atktg(e,c) function s.atktg(e,c)
......
...@@ -82,7 +82,7 @@ function s.sprcon(e,c) ...@@ -82,7 +82,7 @@ function s.sprcon(e,c)
end end
function s.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c) function s.sprtg(e,tp,eg,ep,ev,re,r,rp,chk,c)
local g=Duel.GetMatchingGroup(s.cmatfilter,tp,LOCATION_MZONE,0,nil) local g=Duel.GetMatchingGroup(s.cmatfilter,tp,LOCATION_MZONE,0,nil)
local sg=g:Select(tp,2,2,nil) local sg=g:CancelableSelect(tp,2,2,nil)
if sg then if sg then
sg:KeepAlive() sg:KeepAlive()
e:SetLabelObject(sg) e:SetLabelObject(sg)
......
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