Commit 19a817db authored by POLYMER's avatar POLYMER

fix

parent b5607a97
......@@ -88,6 +88,8 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RegisterEffect(e5,tp)
elseif e:GetLabel()==2 then
local turnp=Duel.GetTurnPlayer()
Duel.SkipPhase(turnp,PHASE_DRAW,RESET_PHASE+PHASE_END,1)
Duel.SkipPhase(turnp,PHASE_STANDBY,RESET_PHASE+PHASE_END,1)
Duel.SkipPhase(turnp,PHASE_MAIN1,RESET_PHASE+PHASE_END,1)
Duel.SkipPhase(turnp,PHASE_BATTLE,RESET_PHASE+PHASE_END,1,1)
Duel.SkipPhase(turnp,PHASE_MAIN2,RESET_PHASE+PHASE_END,1)
......
......@@ -91,5 +91,12 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
for _,ph in pairs({PHASE_DRAW,PHASE_STANDBY,PHASE_MAIN1,PHASE_BATTLE,PHASE_MAIN2,PHASE_END}) do
Duel.SkipPhase(p,ph,RESET_PHASE+PHASE_END,1)
end
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_CANNOT_BP)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,p)
end
end
\ No newline at end of file
......@@ -193,7 +193,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.SelectMatchingCard(tp,cm.cfilter,tp,LOCATION_ONFIELD,0,1,1,nil)
if #g==0 then return end
local tc=g:GetFirst():GetEquipTarget()
if Duel.SendtoDeck(g,nil,2,REASON_COST)>0 and c:IsRelateToEffect(e) and c:IsLocation(LOCATION_SZONE) and not c:IsStatus(STATUS_LEAVE_CONFIRMED) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and tc:IsLocation(LOCATION_MZONE) and tc:IsFaceup() then
if Duel.SendtoDeck(g,nil,2,REASON_EFFECT)>0 and c:IsRelateToEffect(e) and c:IsLocation(LOCATION_SZONE) and not c:IsStatus(STATUS_LEAVE_CONFIRMED) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 and tc:IsLocation(LOCATION_MZONE) and tc:IsFaceup() then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local sg=Duel.SelectMatchingCard(tp,cm.dfilter,tp,LOCATION_DECK,0,1,1,nil,tp)
local ec=sg:GetFirst()
......@@ -249,12 +249,12 @@ function cm.imfilter(c)
return false
end
function Group.ForEach(group,func,...)
if aux.GetValueType(group)=="Group" and group:GetCount()>0 then
local d_group=group:Clone()
for tc in aux.Next(d_group) do
func(tc,...)
end
end
if aux.GetValueType(group)=="Group" and group:GetCount()>0 then
local d_group=group:Clone()
for tc in aux.Next(d_group) do
func(tc,...)
end
end
end
function cm.adop(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(nil,0,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
......
......@@ -77,11 +77,14 @@ end
function c28315944.hkfilter(c)
return c:IsSetCard(0x283) and c:IsLevel(4) and c:IsAbleToHand()
end
function c28315944.sfilter(c)
return c:IsFaceup() and c:IsCanTurnSet()
end
function c28315944.recop(e,tp,eg,ep,ev,re,r,rp)
Duel.Recover(tp,1000,REASON_EFFECT)
if Duel.GetLP(tp)>=10000 then
local b1=Duel.IsExistingMatchingCard(c28315944.hkfilter,tp,LOCATION_DECK,0,1,nil)
local b2=Duel.IsPlayerCanDraw(tp,1)
local b2=Duel.IsExistingMatchingCard(c28315944.sfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
local b3=true
if not (b1 or b2) then return end
local op=aux.SelectFromOptions(tp,
......
......@@ -77,7 +77,8 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(att)
tc:RegisterEffect(e2)
end
Duel.SpecialSummonComplete()
tc:CompleteProcedure()
Duel.SpecialSummonComplete()
end
end
function cm.cfilter(c)
......
......@@ -134,6 +134,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(att)
tc:RegisterEffect(e2)
end
tc:CompleteProcedure()
Duel.SpecialSummonComplete()
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