Commit bf82da25 authored by POLYMER's avatar POLYMER

Revert "fix"

This reverts commit 289f6808.
parent 289f6808
...@@ -14,9 +14,10 @@ function c9910862.initial_effect(c) ...@@ -14,9 +14,10 @@ function c9910862.initial_effect(c)
--summon --summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_SUMMON) e2:SetCategory(CATEGORY_SUMMON)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_PHASE+PHASE_STANDBY) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetHintTiming(0,TIMING_BATTLE_START)
e2:SetCondition(c9910862.sumcon) e2:SetCondition(c9910862.sumcon)
e2:SetCost(aux.bfgcost) e2:SetCost(aux.bfgcost)
e2:SetTarget(c9910862.sumtg) e2:SetTarget(c9910862.sumtg)
...@@ -31,12 +32,12 @@ function c9910862.setfilter(c) ...@@ -31,12 +32,12 @@ function c9910862.setfilter(c)
end end
function c9910862.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c9910862.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local lab=Duel.GetFlagEffectLabel(tp,9910862) local lab=Duel.GetFlagEffectLabel(tp,9910862)
local b1=Duel.IsExistingMatchingCard(c9910862.setfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) local b1=Duel.IsExistingMatchingCard(c9910862.setfilter,tp,0,LOCATION_MZONE,1,nil)
and (not lab or bit.band(lab,1)==0) and (not lab or bit.band(lab,1)==0)
local b2=not lab or bit.band(lab,2)==0 local b2=not lab or bit.band(lab,2)==0
local b3=not lab or bit.band(lab,4)==0 local b3=not lab or bit.band(lab,4)==0
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c9910862.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c9910862.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c9910862.filter,tp,LOCATIOCN_MZONE,LOCATION_MZONE,1,nil) if chk==0 then return Duel.IsExistingTarget(c9910862.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
and (b1 or b2 or b3) end and (b1 or b2 or b3) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c9910862.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,c9910862.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
...@@ -53,7 +54,7 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -53,7 +54,7 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp)
local ct=1 local ct=1
if Duel.GetFlagEffect(tp,9910859)~=0 then ct=2 end if Duel.GetFlagEffect(tp,9910859)~=0 then ct=2 end
local lab=Duel.GetFlagEffectLabel(tp,9910862) local lab=Duel.GetFlagEffectLabel(tp,9910862)
local b1=Duel.IsExistingMatchingCard(c9910862.setfilter,tp,LOATION_MZONE,LOCATION_MZONE,1,nil) local b1=Duel.IsExistingMatchingCard(c9910862.setfilter,tp,0,LOCATION_MZONE,1,nil)
and (not lab or bit.band(lab,1)==0) and (not lab or bit.band(lab,1)==0)
local b2=not lab or bit.band(lab,2)==0 local b2=not lab or bit.band(lab,2)==0
local b3=not lab or bit.band(lab,4)==0 local b3=not lab or bit.band(lab,4)==0
...@@ -95,7 +96,7 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -95,7 +96,7 @@ function c9910862.activate(e,tp,eg,ep,ev,re,r,rp)
until ct==0 or off<3 or not Duel.SelectYesNo(tp,aux.Stringid(9910862,3)) until ct==0 or off<3 or not Duel.SelectYesNo(tp,aux.Stringid(9910862,3))
if bit.band(sel,1)~=0 then if bit.band(sel,1)~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,c9910862.setfilter,tp,LOATION_MZONE,LOCATION_MZONE,1,1,nil) local g=Duel.SelectMatchingCard(tp,c9910862.setfilter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.HintSelection(g) Duel.HintSelection(g)
Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE) Duel.ChangePosition(g,POS_FACEDOWN_DEFENSE)
if not lab then if not lab then
...@@ -154,7 +155,7 @@ function c9910862.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -154,7 +155,7 @@ function c9910862.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c9910862.sumcon(e,tp,eg,ep,ev,re,r,rp) function c9910862.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetTurnPlayer()~=tp return Duel.GetTurnPlayer()~=tp and (Duel.GetCurrentPhase()>=PHASE_BATTLE_START and Duel.GetCurrentPhase()<=PHASE_BATTLE)
end end
function c9910862.sumfilter(c) function c9910862.sumfilter(c)
return c:IsSetCard(0xa951) and c:IsSummonable(true,nil) return c:IsSetCard(0xa951) and c:IsSummonable(true,nil)
......
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