Commit 4ba8b312 authored by POLYMER's avatar POLYMER

fix

parent f5dfe160
...@@ -4,6 +4,7 @@ local cm=_G["c"..m] ...@@ -4,6 +4,7 @@ local cm=_G["c"..m]
function cm.initial_effect(c) function cm.initial_effect(c)
--link summon --link summon
aux.AddLinkProcedure(c,aux.TRUE,2,99,c11579812.lcheck) aux.AddLinkProcedure(c,aux.TRUE,2,99,c11579812.lcheck)
aux.AddLinkProcedure(c,aux.TRUE,2,99,nil)
c:EnableReviveLimit() c:EnableReviveLimit()
--immune --immune
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -104,12 +105,12 @@ function c11579812.repop(e,tp,eg,ep,ev,re,r,rp) ...@@ -104,12 +105,12 @@ function c11579812.repop(e,tp,eg,ep,ev,re,r,rp)
end end
function c11579812.damval1(e,re,val,r,rp,rc) function c11579812.damval1(e,re,val,r,rp,rc)
local c=e:GetHandler() local c=e:GetHandler()
Duel.RegisterFlagEffect(tp,11580812,RESET_PHASE+PHASE_END,0,1)
if Duel.GetFlagEffect(tp,11579812)~=0 then if Duel.GetFlagEffect(tp,11579812)~=0 then
Duel.ResetFlagEffect(tp,11579812) Duel.ResetFlagEffect(tp,11579812)
return val*2 return val*2
end end
return val return val
Duel.RegisterFlagEffect(tp,11580812,RESET_PHASE+PHASE_END,0,1)
end end
......
...@@ -27,11 +27,12 @@ if not cm.lblsz then ...@@ -27,11 +27,12 @@ if not cm.lblsz then
cm._tossdice=Duel.TossDice cm._tossdice=Duel.TossDice
Duel.TossDice=function (tp,a,b) Duel.TossDice=function (tp,a,b)
Duel.RaiseEvent(Duel.GetDecktopGroup(tp,1),EVENT_CUSTOM+m,nil,0,tp,tp,0) Duel.RaiseEvent(Duel.GetDecktopGroup(tp,1),EVENT_CUSTOM+m,nil,0,tp,tp,0)
if Duel.GetFlagEffect(tp,m+10000000)~=0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) then if Duel.GetFlagEffect(tp,m+10000000)~=0 and Duel.SelectYesNo(tp,aux.Stringid(m,1)) and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) then
local rg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil):Select(tp,1,2,nil) local rg=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil):Select(tp,1,2,nil)
Duel.Remove(rg,POS_FACEUP,REASON_EFFECT)
Duel.ResetFlagEffect(tp,m+10000000) Duel.ResetFlagEffect(tp,m+10000000)
end end
if Duel.GetFlagEffect(tp,m)==0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if Duel.GetFlagEffect(tp,m)==0 and Duel.SelectYesNo(tp,aux.Stringid(m,0)) and Duel.IsExistingMatchingCard(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,1,nil,m) and Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,m):RandomSelect(tp,1):IsAbleToHand(tp) then
Duel.RegisterFlagEffect(tp,m,0,0,1) Duel.RegisterFlagEffect(tp,m,0,0,1)
local ag=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,m):Select(tp,1,1,nil) local ag=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK+LOCATION_GRAVE,0,nil,m):Select(tp,1,1,nil)
Duel.SendtoHand(ag,nil,REASON_EFFECT) Duel.SendtoHand(ag,nil,REASON_EFFECT)
......
...@@ -50,7 +50,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -50,7 +50,7 @@ function s.op(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
local tgc=g:GetFirst() local tgc=g:GetFirst()
Duel.HintSelection(g) Duel.HintSelection(g)
if Duel.SendtoGrave(tgc,REASON_EFFECT) and rc:IsSSetable(true) and Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 and not tgc:IsForbidden() and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then if Duel.SendtoGrave(tgc,REASON_EFFECT) and tgc:IsSSetable(true) and Duel.GetLocationCount(1-tp,LOCATION_SZONE)>0 and not tgc:IsForbidden() and Duel.SelectYesNo(tp,aux.Stringid(id,2)) then
Duel.BreakEffect() Duel.BreakEffect()
if tgc:IsType(TYPE_CONTINUOUS) then if tgc:IsType(TYPE_CONTINUOUS) then
Duel.MoveToField(tgc,tp,tp,LOCATION_SZONE,POS_FACEUP,true) Duel.MoveToField(tgc,tp,tp,LOCATION_SZONE,POS_FACEUP,true)
......
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