Commit 2f314a2d authored by argon.sun's avatar argon.sun

fix

parent f16d2656
...@@ -88,7 +88,7 @@ function c3429238.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -88,7 +88,7 @@ function c3429238.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE) Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end end
function c3429238.filter(c) function c3429238.filter(c)
return c:IsType(TYPE_MONSTER) and c:IsAbleToGrave() return c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end end
function c3429238.spop(e,tp,eg,ep,ev,re,r,rp) function c3429238.spop(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)>0 then if e:GetHandler():IsRelateToEffect(e) and Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)>0 then
......
...@@ -14,10 +14,8 @@ end ...@@ -14,10 +14,8 @@ end
function c44155002.disop(e,tp,eg,ep,ev,re,r,rp) function c44155002.disop(e,tp,eg,ep,ev,re,r,rp)
if ep==tp or Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)~=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) then return end if ep==tp or Duel.GetFieldGroupCount(tp,LOCATION_HAND,0)~=Duel.GetFieldGroupCount(tp,0,LOCATION_HAND) then return end
local rc=re:GetHandler() local rc=re:GetHandler()
if re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE) then Duel.NegateEffect(ev)
Duel.NegateEffect(ev) if rc:IsRelateToEffect(re) then
if rc:IsRelateToEffect(re) then Duel.Destroy(rc,REASON_EFFECT)
Duel.Destroy(rc,REASON_EFFECT)
end
end end
end end
...@@ -15,9 +15,9 @@ function c45662855.initial_effect(c) ...@@ -15,9 +15,9 @@ function c45662855.initial_effect(c)
e1:SetOperation(c45662855.operation) e1:SetOperation(c45662855.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c45662855.costfilter(c) function c45662855.costfilter(c,tp)
return c:IsSetCard(0x47) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost() return c:IsSetCard(0x47) and c:IsType(TYPE_MONSTER) and c:IsAbleToRemoveAsCost()
and Duel.IsExistingTarget(c45662855.tgfilter,tp,LOCATION_GRAVE,0,1,c,e,tp) and Duel.IsExistingTarget(c45662855.tgfilter,tp,LOCATION_GRAVE,0,1,c)
end end
function c45662855.tgfilter(c) function c45662855.tgfilter(c)
return c:IsSetCard(0x1047) and c:IsAbleToHand() return c:IsSetCard(0x1047) and c:IsAbleToHand()
...@@ -31,14 +31,14 @@ function c45662855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -31,14 +31,14 @@ function c45662855.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then if chk==0 then
if e:GetLabel()==1 then if e:GetLabel()==1 then
e:SetLabel(0) e:SetLabel(0)
return Duel.IsExistingMatchingCard(c45662855.costfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingMatchingCard(c45662855.costfilter,tp,LOCATION_GRAVE,0,1,nil,tp)
else else
return Duel.IsExistingTarget(c45662855.tgfilter,tp,LOCATION_GRAVE,0,1,nil) return Duel.IsExistingTarget(c45662855.tgfilter,tp,LOCATION_GRAVE,0,1,nil)
end end
end end
if e:GetLabel()==1 then if e:GetLabel()==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local cg=Duel.SelectMatchingCard(tp,c45662855.costfilter,tp,LOCATION_GRAVE,0,1,1,nil) local cg=Duel.SelectMatchingCard(tp,c45662855.costfilter,tp,LOCATION_GRAVE,0,1,1,nil,tp)
Duel.Remove(cg,POS_FACEUP,REASON_COST) Duel.Remove(cg,POS_FACEUP,REASON_COST)
e:SetLabel(0) e:SetLabel(0)
end end
......
...@@ -32,6 +32,6 @@ function c64514622.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,6 +32,6 @@ function c64514622.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c64514622.filter,tp,0x13,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c64514622.filter,tp,0x13,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
end end
end end
...@@ -8,14 +8,12 @@ function c79856792.initial_effect(c) ...@@ -8,14 +8,12 @@ function c79856792.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_UNCOPYABLE) e1:SetProperty(EFFECT_FLAG_UNCOPYABLE)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetCondition(c79856792.spcon) e1:SetCondition(c79856792.spcon)
e1:SetOperation(c79856792.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--cannot special summon --cannot special summon
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_SPSUMMON_CONDITION) e2:SetCode(EFFECT_SPSUMMON_CONDITION)
e2:SetValue(aux.FALSE)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--atkup --atkup
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
...@@ -41,6 +39,13 @@ function c79856792.initial_effect(c) ...@@ -41,6 +39,13 @@ function c79856792.initial_effect(c)
e4:SetTarget(c79856792.tdtg) e4:SetTarget(c79856792.tdtg)
e4:SetOperation(c79856792.tdop) e4:SetOperation(c79856792.tdop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--
local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetCode(EVENT_SPSUMMON_SUCCESS)
e5:SetOperation(c79856792.spop)
c:RegisterEffect(e5)
end end
function c79856792.spfilter(c) function c79856792.spfilter(c)
return c:IsSetCard(0x34) and (not c:IsOnField() or c:IsFaceup()) return c:IsSetCard(0x34) and (not c:IsOnField() or c:IsFaceup())
...@@ -52,8 +57,8 @@ function c79856792.spcon(e,c) ...@@ -52,8 +57,8 @@ function c79856792.spcon(e,c)
local ct=g:GetClassCount(Card.GetCode) local ct=g:GetClassCount(Card.GetCode)
return ct>6 return ct>6
end end
function c79856792.spop(e,tp,eg,ep,ev,re,r,rp,c) function c79856792.spop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterFlagEffect(79856792,RESET_EVENT+0xfc0000+RESET_PHASE+PHASE_END,0,1) e:GetHandler():RegisterFlagEffect(79856792,RESET_EVENT+0xfc0000+RESET_PHASE+PHASE_END,0,1)
end end
function c79856792.atcon(e,tp,eg,ep,ev,re,r,rp) function c79856792.atcon(e,tp,eg,ep,ev,re,r,rp)
if e:GetHandler():GetFlagEffect(79856792)~=0 then return false end if e:GetHandler():GetFlagEffect(79856792)~=0 then return false end
......
...@@ -8,5 +8,5 @@ function c92084010.initial_effect(c) ...@@ -8,5 +8,5 @@ function c92084010.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c92084010.condition(e,c) function c92084010.condition(e,c)
return c:IsAttribute(ATTRIBUTE_DARK) return c:IsAttribute(ATTRIBUTE_WATER)
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