Commit fc2cba7e authored by POLYMER's avatar POLYMER

fix

parent 2f6e9ef4
...@@ -102,7 +102,7 @@ function cm.nnfilter(c,ec) ...@@ -102,7 +102,7 @@ function cm.nnfilter(c,ec)
return false return false
end end
function cm.op(e,tp,eg,ep,ev,re,r,rp) function cm.op(e,tp,eg,ep,ev,re,r,rp)
--[[local ag=Duel.GetMatchingGroup(cm.nnfilter,0,0xff,0xff,nil) local ag=Duel.GetMatchingGroup(cm.nnfilter,0,0xff,0xff,nil)
local _TGetID=GetID local _TGetID=GetID
for ac in aux.Next(ag) do for ac in aux.Next(ag) do
local int=ac:GetOriginalCode() local int=ac:GetOriginalCode()
...@@ -117,7 +117,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp) ...@@ -117,7 +117,7 @@ function cm.op(e,tp,eg,ep,ev,re,r,rp)
local ini=ac.initial_effect local ini=ac.initial_effect
if ini then ac.initial_effect(ac) end if ini then ac.initial_effect(ac) end
end end
GetID=_TGetID--]] GetID=_TGetID
local c=e:GetHandler() local c=e:GetHandler()
local tp=c:GetControler() local tp=c:GetControler()
local g=Duel.GetMatchingGroup(nil,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(nil,tp,LOCATION_DECK,0,nil)
......
...@@ -148,7 +148,7 @@ function cm.initial_effect(c) ...@@ -148,7 +148,7 @@ function cm.initial_effect(c)
--Duel.SetFlagEffectLabel(sp,m,ct+1) --Duel.SetFlagEffectLabel(sp,m,ct+1)
cm[sp]=cm[sp]+1 cm[sp]=cm[sp]+1
local tg=ng:RandomSelect(sp,1) local tg=ng:RandomSelect(sp,1)
if tg:GetFirst():IsLocation(LOCATION_DECK+LOCATION_EXTRA) then Duel.ConfirmCards(sp,tg) end if tg:GetFirst() and tg:GetFirst():IsLocation(LOCATION_DECK+LOCATION_EXTRA) then Duel.ConfirmCards(sp,tg) end
return tg return tg
else else
return _Select(g,sp,min,max,nc) return _Select(g,sp,min,max,nc)
...@@ -400,5 +400,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -400,5 +400,4 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
if #g2>0 then Duel.ConfirmCards(tp,g2) end if #g2>0 then Duel.ConfirmCards(tp,g2) end
if #ng1>0 then Duel.ConfirmCards(1-tp,ng1) end if #ng1>0 then Duel.ConfirmCards(1-tp,ng1) end
if #ng2>0 then Duel.ConfirmCards(tp,ng2) end if #ng2>0 then Duel.ConfirmCards(tp,ng2) end
end end
pcall(dofile,"expansions/script/c11410000.lua") \ No newline at end of file
\ No newline at end of file
...@@ -42,7 +42,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if g:GetCount()>0 then if g:GetCount()>0 then
local tc=g:GetFirst() local tc=g:GetFirst()
if tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (not tc:IsSSetable() or Duel.SelectYesNo(tp,Stringid(m,0))) then if tc:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEDOWN_DEFENSE) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and (not tc:IsSSetable() or Duel.SelectYesNo(tp,Stringid(m,0))) then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENSE) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEDOWN_DEFENSE)
else else
Duel.SSet(tp,tc) Duel.SSet(tp,tc)
end end
......
...@@ -70,7 +70,7 @@ end ...@@ -70,7 +70,7 @@ end
function c22348314.mfilter(c,fc) function c22348314.mfilter(c,fc)
return c:IsReason(REASON_DESTROY) and c:IsLocation(LOCATION_GRAVE) return c:IsReason(REASON_DESTROY) and c:IsLocation(LOCATION_GRAVE) and c:IsType(TYPE_MONSTER)
end end
function c22348314.egfilter(c) function c22348314.egfilter(c)
return c:IsFaceup() and c:IsType(TYPE_EFFECT) return c:IsFaceup() and c:IsType(TYPE_EFFECT)
......
...@@ -37,6 +37,7 @@ function cm.initial_effect(c) ...@@ -37,6 +37,7 @@ function cm.initial_effect(c)
e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET) e4:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_CARD_TARGET)
e4:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e4:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetCondition(c22348330.discon) e4:SetCondition(c22348330.discon)
e4:SetTarget(c22348330.distg) e4:SetTarget(c22348330.distg)
e4:SetOperation(c22348330.disop) e4:SetOperation(c22348330.disop)
......
This diff is collapsed.
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