Commit fb74c2f3 authored by argon.sun's avatar argon.sun

fix

parent 451740fe
...@@ -19,10 +19,11 @@ function c66853752.initial_effect(c) ...@@ -19,10 +19,11 @@ function c66853752.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c66853752.cfilter(c) function c66853752.cfilter(c)
return c:IsType(TYPE_MONSTER) and not c:IsAttribute(ATTRIBUTE_WATER) return c:GetCode()~=66853752 and c:IsType(TYPE_MONSTER)
end end
function c66853752.condition(e,tp,eg,ep,ev,re,r,rp) function c66853752.condition(e,tp,eg,ep,ev,re,r,rp)
return not Duel.IsExistingMatchingCard(c66853752.cfilter,tp,LOCATION_GRAVE,0,1,nil) local g=Duel.GetMatchingGroup(c66853752.cfilter,tp,LOCATION_GRAVE,0,nil)
return g:GetCount()>0 and g:FilterCount(Card.IsAttribute,nil,ATTRIBUTE_WATER)==g:GetCount()
end end
function c66853752.target(e,tp,eg,ep,ev,re,r,rp,chk) function c66853752.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetFlagEffect(tp,66853752)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetFlagEffect(tp,66853752)==0 and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
...@@ -32,16 +33,18 @@ function c66853752.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,16 +33,18 @@ function c66853752.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c66853752.operation(e,tp,eg,ep,ev,re,r,rp) function c66853752.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:IsRelateToEffect(e) if c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 then
and not Duel.IsExistingMatchingCard(c66853752.cfilter,tp,LOCATION_GRAVE,0,1,nil) local g=Duel.GetMatchingGroup(c66853752.cfilter,tp,LOCATION_GRAVE,0,nil)
and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then if g:GetCount()>0 and g:FilterCount(Card.IsAttribute,nil,ATTRIBUTE_WATER)==g:GetCount()
local e1=Effect.CreateEffect(c) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
e1:SetReset(RESET_EVENT+0x47e0000) e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetValue(LOCATION_REMOVED) e1:SetReset(RESET_EVENT+0x47e0000)
c:RegisterEffect(e1,true) e1:SetValue(LOCATION_REMOVED)
c:RegisterEffect(e1,true)
end
end end
end end
function c66853752.synlimit(e,c) function c66853752.synlimit(e,c)
......
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