Commit bb648667 authored by POLYMER's avatar POLYMER

fix

parent b6e3e760
...@@ -68,8 +68,8 @@ function c28372877.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -68,8 +68,8 @@ function c28372877.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.ConfirmCards(1-tp,sg) Duel.ConfirmCards(1-tp,sg)
end end
end end
function c28372877.indescon(e,tp,eg,ep,ev,re,r,rp) function c28372877.indescon(e)
return Duel.GetLP(tp)<=3000 return Duel.GetLP(e:GetHandlerPlayer())<=3000
end end
function c28372877.rmlimit(e,c,tp,r,re) function c28372877.rmlimit(e,c,tp,r,re)
return c==e:GetHandler() and r&REASON_EFFECT>0 return c==e:GetHandler() and r&REASON_EFFECT>0
...@@ -77,8 +77,9 @@ end ...@@ -77,8 +77,9 @@ end
function c28372877.cfilter(c) function c28372877.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x285) return c:IsFaceup() and c:IsSetCard(0x285)
end end
function c28372877.drcon(e,tp,eg,ep,ev,re,r,rp) function c28372877.drcon(e)
return Duel.GetLP(tp)<=3000 and Duel.IsExistingMatchingCard(c28372877.cfilter,tp,LOCATION_MZONE,0,1,nil) local p=e:GetHandlerPlayer()
return Duel.GetLP(p)<=3000 and Duel.IsExistingMatchingCard(c28372877.cfilter,p,LOCATION_MZONE,0,1,nil)
end end
function c28372877.damval(e,re,val,r,rp,rc) function c28372877.damval(e,re,val,r,rp,rc)
return 0 return 0
......
...@@ -70,6 +70,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -70,6 +70,7 @@ function s.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL) if chk==0 then return aux.MustMaterialCheck(c,tp,EFFECT_MUST_BE_XMATERIAL)
and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) end and Duel.IsExistingMatchingCard(s.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function s.spop(e,tp,eg,ep,ev,re,r,rp) function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
...@@ -97,6 +98,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -97,6 +98,7 @@ function s.postg(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil) local g=Duel.GetMatchingGroup(s.posfilter,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if chk==0 then return g:GetCount()>0 end if chk==0 then return g:GetCount()>0 end
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end end
function s.posop(e,tp,eg,ep,ev,re,r,rp) function s.posop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSITION) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSITION)
......
...@@ -27,7 +27,7 @@ end ...@@ -27,7 +27,7 @@ end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk) function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler() local c=e:GetHandler()
if chk==0 then return c:IsAbleToDeckAsCost() end if chk==0 then return c:IsAbleToDeckAsCost() end
Duel.SendtoDeck(c,nil,SEQ_DECKBOTTOM,REASON_COST) Duel.ConfirmCards(1-tp,c) Duel.SendtoDeck(c,nil,SEQ_DECKBOTTOM,REASON_COST)
end end
function s.hgfilter(c) function s.hgfilter(c)
return c:IsType(TYPE_MONSTER) and aux.IsCodeListed(c,id) and (c:IsAbleToHand() or c:IsAbleToGrave()) return c:IsType(TYPE_MONSTER) and aux.IsCodeListed(c,id) and (c:IsAbleToHand() or c:IsAbleToGrave())
......
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