Commit 344d4dc4 authored by Huangnan's avatar Huangnan

fix

parent 2a91154b
...@@ -67,7 +67,7 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -67,7 +67,7 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
local mg=c:GetOverlayGroup() local mg=c:GetOverlayGroup()
if chk==0 and c:GetFlagEffect(75600021)==0 then if chk==0 and c:GetFlagEffect(75600021)==0 then
local sel=0 local sel=0
if e:GetHandler():IsType(TYPE_XYZ) and Duel.IsExistingMatchingCard(c75600021.mfilter,tp,LOCATION_GRAVE,0,1,nil) then sel=sel+1 end if e:GetHandler():IsType(TYPE_XYZ) and Duel.IsExistingMatchingCard(c75600021.mfilter,tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,nil) then sel=sel+1 end
if Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil) if Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,0,LOCATION_ONFIELD+LOCATION_GRAVE,1,nil)
and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) then sel=sel+2 end and Duel.IsExistingMatchingCard(Card.IsAbleToRemove,tp,LOCATION_ONFIELD+LOCATION_GRAVE,0,1,nil) then sel=sel+2 end
e:SetLabel(sel) e:SetLabel(sel)
...@@ -78,13 +78,12 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -78,13 +78,12 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EFFECT)
sel=Duel.SelectOption(tp,aux.Stringid(75600021,1),aux.Stringid(75600021,2))+1 sel=Duel.SelectOption(tp,aux.Stringid(75600021,1),aux.Stringid(75600021,2))+1
elseif sel==1 then elseif sel==1 then
sel=Duel.SelectOption(tp,aux.Stringid(75600021,1)) sel=Duel.SelectOption(tp,aux.Stringid(75600021,1))+1
else else
sel=Duel.SelectOption(tp,aux.Stringid(75600021,2)) sel=Duel.SelectOption(tp,aux.Stringid(75600021,2))
end end
e:SetLabel(sel) e:SetLabel(sel)
if sel~=1 then if sel~=1 then
local ct=Duel.GetFlagEffect(e:GetOwnerPlayer(),75600021)
e:SetCategory(CATEGORY_REMOVE) e:SetCategory(CATEGORY_REMOVE)
Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_ONFIELD+LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_REMOVE,nil,1,0,LOCATION_ONFIELD+LOCATION_GRAVE)
end end
...@@ -92,11 +91,11 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -92,11 +91,11 @@ function c75600021.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c75600021.operation(e,tp,eg,ep,ev,re,r,rp) function c75600021.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local sel=e:GetLabel() local sel=e:GetLabel()
if sel==1 then if sel==1 then
if not c:IsRelateToEffect(e) then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_XMATERIAL)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75600021.mfilter),tp,LOCATION_GRAVE,0,1,1,nil) local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c75600021.mfilter),tp,LOCATION_GRAVE+LOCATION_REMOVED,0,1,1,nil)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.Overlay(c,g) Duel.Overlay(c,g)
end end
...@@ -111,11 +110,6 @@ function c75600021.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -111,11 +110,6 @@ function c75600021.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Remove(g1,POS_FACEUP,REASON_EFFECT) Duel.Remove(g1,POS_FACEUP,REASON_EFFECT)
end end
end end
function c75600021.atkval(e,c)
local ct=Duel.GetFlagEffect(e:GetOwnerPlayer(),5600013)
return ct*1000
end
function c75600021.filter(c) function c75600021.filter(c)
return c:IsFaceup() and c:IsType(TYPE_MONSTER) return c:IsFaceup() and c:IsType(TYPE_MONSTER)
end end
......
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