Commit c39725ce authored by VanillaSalt's avatar VanillaSalt

fix

parent c9b66dbe
...@@ -20,7 +20,7 @@ function c11270236.initial_effect(c) ...@@ -20,7 +20,7 @@ function c11270236.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--remove --remove
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(49513164,0)) e3:SetDescription(aux.Stringid(11270236,0))
e3:SetCategory(CATEGORY_REMOVE) e3:SetCategory(CATEGORY_REMOVE)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetProperty(EFFECT_FLAG_CARD_TARGET) e3:SetProperty(EFFECT_FLAG_CARD_TARGET)
......
...@@ -21,7 +21,7 @@ function c47826112.initial_effect(c) ...@@ -21,7 +21,7 @@ function c47826112.initial_effect(c)
e2:SetOperation(c47826112.thop) e2:SetOperation(c47826112.thop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c47826112.cfilter(c) function c47826112.cfilter(c,tp)
return c:IsLevelBelow(3) and c:IsAttribute(ATTRIBUTE_WATER) and (c:IsControler(tp) or c:IsFaceup()) return c:IsLevelBelow(3) and c:IsAttribute(ATTRIBUTE_WATER) and (c:IsControler(tp) or c:IsFaceup())
end end
function c47826112.mzfilter(c,tp) function c47826112.mzfilter(c,tp)
......
...@@ -48,7 +48,7 @@ function c52085072.spcon(e,c) ...@@ -48,7 +48,7 @@ function c52085072.spcon(e,c)
local sg=Duel.GetMatchingGroup(c52085072.spcfilter,tp,LOCATION_MZONE,0,nil) local sg=Duel.GetMatchingGroup(c52085072.spcfilter,tp,LOCATION_MZONE,0,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=-ft+1 local ct=-ft+1
return ft>-4 and sg:GetCount()>3 and (ft>0 or sg:IsExists(c93717133.mzfilter,ct,nil,tp)) return ft>-4 and sg:GetCount()>3 and (ft>0 or sg:IsExists(c52085072.mzfilter,ct,nil,tp))
end end
function c52085072.spop(e,tp,eg,ep,ev,re,r,rp,c) function c52085072.spop(e,tp,eg,ep,ev,re,r,rp,c)
local sg=Duel.GetMatchingGroup(c52085072.spcfilter,tp,LOCATION_MZONE,0,nil) local sg=Duel.GetMatchingGroup(c52085072.spcfilter,tp,LOCATION_MZONE,0,nil)
...@@ -58,16 +58,17 @@ function c52085072.spop(e,tp,eg,ep,ev,re,r,rp,c) ...@@ -58,16 +58,17 @@ function c52085072.spop(e,tp,eg,ep,ev,re,r,rp,c)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
g=sg:Select(tp,4,4,nil) g=sg:Select(tp,4,4,nil)
elseif ft>-3 then elseif ft>-3 then
local ct=-ft+1
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
g=rg:FilterSelect(tp,c52085072.mzfilter,ct,ct,nil,tp) g=sg:FilterSelect(tp,c52085072.mzfilter,ct,ct,nil,tp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
local g2=rg:Select(tp,4-ct,4-ct,g) local g2=sg:Select(tp,4-ct,4-ct,g)
g:Merge(g2) g:Merge(g2)
else else
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TOGRAVE)
g=sg:FilterSelect(tp,c52085072.mzfilter,4,4,nil,tp) g=sg:FilterSelect(tp,c52085072.mzfilter,4,4,nil,tp)
end end
Duel.Release(g,REASON_COST) Duel.SendtoGrave(g,REASON_COST)
end end
function c52085072.antarget(e,c) function c52085072.antarget(e,c)
return c~=e:GetHandler() return c~=e:GetHandler()
......
...@@ -61,7 +61,7 @@ function c53183600.spcon(e,c) ...@@ -61,7 +61,7 @@ function c53183600.spcon(e,c)
local rg=Duel.GetReleaseGroup(tp) local rg=Duel.GetReleaseGroup(tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=-ft+1 local ct=-ft+1
return Duel.IsExistingMatchingCard(c38369349.cfilter,tp,LOCATION_ONFIELD,0,1,nil) return Duel.IsExistingMatchingCard(c53183600.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and ft>-2 and rg:GetCount()>1 and (ft>0 or rg:IsExists(c53183600.mzfilter,ct,nil,tp)) and ft>-2 and rg:GetCount()>1 and (ft>0 or rg:IsExists(c53183600.mzfilter,ct,nil,tp))
end end
function c53183600.spop(e,tp,eg,ep,ev,re,r,rp,c) function c53183600.spop(e,tp,eg,ep,ev,re,r,rp,c)
......
...@@ -33,7 +33,7 @@ function c54297661.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -33,7 +33,7 @@ function c54297661.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
g=rg:FilterSelect(tp,c54297661.mzfilter,2,2,nil,tp) g=rg:FilterSelect(tp,c54297661.mzfilter,2,2,nil,tp)
end end
Duel.Release(g,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c54297661.filter(c,tp) function c54297661.filter(c,tp)
return c:IsFaceup() return c:IsFaceup()
......
...@@ -17,7 +17,7 @@ function c54913680.mzfilter(c,tp) ...@@ -17,7 +17,7 @@ function c54913680.mzfilter(c,tp)
return c:GetSequence()<5 return c:GetSequence()<5
end end
function c54913680.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c54913680.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp):Filter(c54913680.costfilter,nil,tp) local rg=Duel.GetReleaseGroup(tp):Filter(c54913680.costfilter,nil)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=-ft+1 local ct=-ft+1
if chk==0 then return ft>-2 and rg:GetCount()>1 and (ft>0 or rg:IsExists(c54913680.mzfilter,ct,nil,tp)) end if chk==0 then return ft>-2 and rg:GetCount()>1 and (ft>0 or rg:IsExists(c54913680.mzfilter,ct,nil,tp)) end
......
...@@ -17,7 +17,7 @@ function c66607691.mzfilter(c,tp) ...@@ -17,7 +17,7 @@ function c66607691.mzfilter(c,tp)
return c:IsControler(tp) and c:GetSequence()<5 return c:IsControler(tp) and c:GetSequence()<5
end end
function c66607691.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c66607691.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local rg=Duel.GetReleaseGroup(tp):Filter(c66607691.costfilter,nil,tp) local rg=Duel.GetReleaseGroup(tp):Filter(c66607691.rfilter,nil,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local ct=-ft+1 local ct=-ft+1
if chk==0 then return ft>-2 and rg:GetCount()>1 and (ft>0 or rg:IsExists(c66607691.mzfilter,ct,nil,tp)) end if chk==0 then return ft>-2 and rg:GetCount()>1 and (ft>0 or rg:IsExists(c66607691.mzfilter,ct,nil,tp)) end
......
...@@ -74,7 +74,7 @@ function c88619463.distg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -74,7 +74,7 @@ function c88619463.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,eg,1,0,0)
end end
end end
function c88619463.disop(e,tp,eg,ep,ev,re,r,rp,chk) function c88619463.disop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsFacedown() or not e:GetHandler():IsRelateToEffect(e) then return end if e:GetHandler():IsFacedown() or not e:GetHandler():IsRelateToEffect(e) then return end
if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then if Duel.NegateActivation(ev) and re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
......
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