Commit 907fae4a authored by POLYMER's avatar POLYMER

fix

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