Commit a003907a authored by POLYMER's avatar POLYMER

fix

parent 00aa0975
...@@ -94,7 +94,7 @@ function cm.thop1(e,tp,eg,ep,ev,re,r,rp) ...@@ -94,7 +94,7 @@ function cm.thop1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,cm.filter1,tp,LOCATION_GRAVE,0,1,1,nil)
if #g>0 then if #g>0 then
Duel.SendtoGrave(tc,0,tp,tp,false,false,POS_FACEUP) Duel.SendtoGrave(g,0,tp,tp,false,false,POS_FACEUP)
end end
end end
end end
......
...@@ -61,10 +61,10 @@ function cm.nbfilter(c) ...@@ -61,10 +61,10 @@ function cm.nbfilter(c)
end end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function cm.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and aux.NegateAnyFilter(chkc) end if chkc then return chkc:IsControler(1-tp) and chkc:IsOnField() and aux.NegateAnyFilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) end if chk==0 then return Duel.IsExistingTarget(aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DISABLE)
local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,1,nil) local g=Duel.SelectTarget(tp,aux.NegateAnyFilter,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DISABLE,g,1,0,0)
end end
function cm.activate(e,tp,eg,ep,ev,re,r,rp) function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
...@@ -96,7 +96,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -96,7 +96,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
end end
function cm.spcon(e,tp,eg,ep,ev,re,r,rp) function cm.spcon(e,tp,eg,ep,ev,re,r,rp)
local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION) local loc=Duel.GetChainInfo(ev,CHAININFO_TRIGGERING_LOCATION)
return rp==tp and re:GetHandler():IsSetCard(0xae51) and not re:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return rp==tp and re:GetHandler():IsSetCard(0xae51) and not re:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) and not re:GetHandler():IsLocation(LOCATION_ONFIELD)
end end
function cm.cfilter(c) function cm.cfilter(c)
return c:IsSetCard(0xae51) and c:IsType(TYPE_MONSTER) and c:IsFaceup() return c:IsSetCard(0xae51) and c:IsType(TYPE_MONSTER) and c:IsFaceup()
......
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