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