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)
Duel.ConfirmCards(1-tp,sg)
end
end
function c28372877.indescon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<=3000
function c28372877.indescon(e)
return Duel.GetLP(e:GetHandlerPlayer())<=3000
end
function c28372877.rmlimit(e,c,tp,r,re)
return c==e:GetHandler() and r&REASON_EFFECT>0
......@@ -77,8 +77,9 @@ end
function c28372877.cfilter(c)
return c:IsFaceup() and c:IsSetCard(0x285)
end
function c28372877.drcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<=3000 and Duel.IsExistingMatchingCard(c28372877.cfilter,tp,LOCATION_MZONE,0,1,nil)
function c28372877.drcon(e)
local p=e:GetHandlerPlayer()
return Duel.GetLP(p)<=3000 and Duel.IsExistingMatchingCard(c28372877.cfilter,p,LOCATION_MZONE,0,1,nil)
end
function c28372877.damval(e,re,val,r,rp,rc)
return 0
......
......@@ -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)
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.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function s.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -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)
if chk==0 then return g:GetCount()>0 end
Duel.SetOperationInfo(0,CATEGORY_POSITION,g,1,0,0)
Duel.Hint(HINT_OPSELECTED,1-tp,e:GetDescription())
end
function s.posop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_POSITION)
......
......@@ -27,7 +27,7 @@ end
function s.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
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
function s.hgfilter(c)
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