Commit a0248318 authored by POLYMER's avatar POLYMER

fix

parent 6533bd0f
...@@ -21,7 +21,7 @@ end ...@@ -21,7 +21,7 @@ end
function cm.rmfilter(c,tp) function cm.rmfilter(c,tp)
local loc1=c:GetLocation() local loc1=c:GetLocation()
if bit.band(c:GetLocation(),LOCATION_ONFIELD)~=0 then loc1=LOCATION_ONFIELD end if bit.band(c:GetLocation(),LOCATION_ONFIELD)~=0 then loc1=LOCATION_ONFIELD end
return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT) and Duel.IsExistingMatchingCard(cm.rmmefilter,tp,loc1,0,2,nil,tp,loc1) return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT) and Duel.IsExistingMatchingCard(cm.rmmefilter,tp,loc1,0,2,nil,tp,loc1,e:GetHandler())
end end
function cm.rmmefilter(c,tp,loc1) function cm.rmmefilter(c,tp,loc1)
return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT) and bit.band(c:GetLocation(),loc1)~=0 return c:IsAbleToRemove(tp,POS_FACEDOWN,REASON_EFFECT) and bit.band(c:GetLocation(),loc1)~=0
...@@ -74,7 +74,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -74,7 +74,7 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
if ag:GetCount()~=0 and Duel.Remove(ag,POS_FACEDOWN,REASON_EFFECT)~=0 then if ag:GetCount()~=0 and Duel.Remove(ag,POS_FACEDOWN,REASON_EFFECT)~=0 then
bg=Duel.GetOperatedGroup() bg=Duel.GetOperatedGroup()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local wg=Duel.SelectMatchingCard(tp,cm.rmmefilter,tp,loc2,0,2,2,nil,tp,loc2) local wg=Duel.SelectMatchingCard(tp,cm.rmmefilter,tp,loc2,0,2,2,nil,tp,loc2,e:GetHandler())
if wg:GetCount()~=0 and Duel.Remove(wg,POS_FACEDOWN,REASON_EFFECT)~=0 and Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_SPELL)>=3 and bg:GetCount()~=0 and bg:GetFirst():IsAbleToHand(tp) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then if wg:GetCount()~=0 and Duel.Remove(wg,POS_FACEDOWN,REASON_EFFECT)~=0 and Duel.GetMatchingGroupCount(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_SPELL)>=3 and bg:GetCount()~=0 and bg:GetFirst():IsAbleToHand(tp) and Duel.SelectYesNo(tp,aux.Stringid(m,0)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.SendtoHand(bg,tp,REASON_EFFECT) Duel.SendtoHand(bg,tp,REASON_EFFECT)
......
...@@ -82,8 +82,10 @@ end ...@@ -82,8 +82,10 @@ end
function s.sprop(e,tp,eg,ep,ev,re,r,rp,c) function s.sprop(e,tp,eg,ep,ev,re,r,rp,c)
local g=Duel.SelectMatchingCard(tp,s.sprfilter,tp,LOCATION_ONFIELD,0,1,1,nil,c,tp) local g=Duel.SelectMatchingCard(tp,s.sprfilter,tp,LOCATION_ONFIELD,0,1,1,nil,c,tp)
c:SetMaterial(g) c:SetMaterial(g)
Duel.SendtoGrave(g,REASON_LINK) Duel.SendtoGrave(g,REASON_LINK)
c:CopyEffect(98500320,RESET_EVENT+0xff0000,1) c:CopyEffect(98500320,RESET_EVENT+0xff0000,1)
local c=e:GetHandler()
c:RegisterFlagEffect(id,RESET_EVENT+0xff0000,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(id,6))
end end
function s.filter1(c) function s.filter1(c)
return c:IsCode(81332143,14731897,55948544) and c:IsAbleToHand() return c:IsCode(81332143,14731897,55948544) and c:IsAbleToHand()
......
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