Commit 90bee62c authored by mercury233's avatar mercury233

fix

parent 31a68299
......@@ -56,9 +56,9 @@ function c100409023.efilter(e,te)
end
function c100409023.acop(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler()
if not re:IsActiveType(TYPE_MONSTER) or not tc:IsFaceup() or tc:GetCounter(0x1002)>0 then return end
local p=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_PLAYER)
if p~=tp and e:GetHandler():GetFlagEffect(1)>0 then
if not tc:IsRelateToEffect(re) or not re:IsActiveType(TYPE_MONSTER) or not tc:IsFaceup() or tc:GetCounter(0x1002)>0 then return end
local p,loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_PLAYER,CHAININFO_TRIGGERING_LOCATION)
if p~=tp and loc==LOCATION_MZONE and e:GetHandler():GetFlagEffect(1)>0 then
tc:AddCounter(0x1002,1)
end
end
......
......@@ -44,7 +44,7 @@ function c100409035.sprcon(e,c)
if c==nil then return true end
local tp=c:GetControler()
return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c100409035.sprfilter,tp,0,LOCATION_MZONE,1,nil)
and Duel.IsExistingMatchingCard(c100409035.sprfilter,tp,LOCATION_MZONE,0,1,nil)
end
function c100409035.thfilter(c)
return c:IsCode(93717133) and c:IsAbleToHand()
......
......@@ -38,12 +38,12 @@ function c100409038.target(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_STANDBY+RESET_SELF_TURN,3)
c:SetTurnCounter(0)
c:RegisterEffect(e1)
if c96100333.effcost(e,tp,eg,ep,ev,re,r,rp,0)
and c96100333.efftg(e,tp,eg,ep,ev,re,r,rp,0)
if c100409038.effcost(e,tp,eg,ep,ev,re,r,rp,0)
and c100409038.efftg(e,tp,eg,ep,ev,re,r,rp,0)
and Duel.SelectYesNo(tp,94) then
c96100333.effcost(e,tp,eg,ep,ev,re,r,rp,1)
c96100333.efftg(e,tp,eg,ep,ev,re,r,rp,1)
e:SetOperation(c96100333.effop)
c100409038.effcost(e,tp,eg,ep,ev,re,r,rp,1)
c100409038.efftg(e,tp,eg,ep,ev,re,r,rp,1)
e:SetOperation(c100409038.effop)
end
end
function c100409038.descon(e,tp,eg,ep,ev,re,r,rp)
......@@ -115,7 +115,7 @@ function c100409038.efftg(e,tp,eg,ep,ev,re,r,rp,chk)
else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,c100409038.costfilter3,tp,LOCATION_MZONE,0,1,1,nil,e,tp)
e:SetValue(rg:GetFirst():GetOriginalCode())
e:SetValue(g:GetFirst():GetOriginalCode())
Duel.SendtoGrave(g,REASON_COST)
e:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_SEARCH)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
......
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