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