Commit 14f46353 authored by VanillaSalt's avatar VanillaSalt

fix

parent 8ea76f0b
......@@ -52,7 +52,6 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
Duel.Equip(tp,c,tc)
c:CancelToGrave()
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
......@@ -75,6 +74,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e3:SetCode(EVENT_SUMMON_SUCCESS)
e3:SetCondition(c13235258.ctcon1)
e3:SetOperation(c13235258.ctop)
e3:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e2)
local e4=e3:Clone()
e4:SetCode(EVENT_SPSUMMON_SUCCESS)
......@@ -85,6 +85,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e5:SetCode(EVENT_CHAINING)
e5:SetRange(LOCATION_SZONE)
e5:SetOperation(aux.chainreg)
e5:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e5)
local e6=Effect.CreateEffect(c)
e6:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
......@@ -92,6 +93,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e6:SetRange(LOCATION_SZONE)
e6:SetCondition(c13235258.ctcon2)
e6:SetOperation(c13235258.ctop)
e6:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e6)
local e7=Effect.CreateEffect(c)
e7:SetType(EFFECT_TYPE_FIELD)
......@@ -100,6 +102,7 @@ function c13235258.activate(e,tp,eg,ep,ev,re,r,rp)
e7:SetTargetRange(0,LOCATION_MZONE)
e7:SetCondition(c13235258.atkcon2)
e7:SetValue(c13235258.atkval)
e7:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e7)
local e8=e7:Clone()
e8:SetCode(EFFECT_UPDATE_DEFENSE)
......
......@@ -51,8 +51,8 @@ function c27354732.spfilter(c,e,tp)
and not c:IsCode(27354732) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c27354732.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDestructable() and Duel.GetLocationCountFromEx(tp)>0
and Duel.IsExistingTarget(c27354732.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
if chk==0 then return e:GetHandler():IsDestructable() and Duel.GetLocationCountFromEx(tp)>0
and Duel.IsExistingMatchingCard(c27354732.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_EXTRA)
end
......@@ -74,11 +74,9 @@ function c27354732.acop(e,tp,eg,ep,ev,re,r,rp)
end
function c27354732.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local rc=re:GetHandler()
return rp~=tp and re:IsActiveType(TYPE_MONSTER) and not c:IsStatus(STATUS_BATTLE_DESTROYED) and Duel.IsChainNegatable(ev)
end
function c27354732.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
if chk==0 then return Duel.IsCanRemoveCounter(tp,1,0,0x1,2,REASON_COST) end
Duel.RemoveCounter(tp,1,0,0x1,2,REASON_COST)
end
......
......@@ -27,9 +27,6 @@ function c32472237.descon(e,tp,eg,ep,ev,re,r,rp)
if not g or not g:IsContains(c) then return false end
return re:IsActiveType(TYPE_LINK)
end
function c32472237.desfilter(c,g)
return g:IsContains(c)
end
function c32472237.destg(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
local cg=c:GetColumnGroup():Filter(Card.IsControler,nil,1-tp)
......
......@@ -12,6 +12,7 @@ function c38502358.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_INDESTRUCTABLE_EFFECT)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE)
e2:SetCondition(c38502358.indcon)
e2:SetValue(1)
......
......@@ -40,7 +40,7 @@ function c41456841.initial_effect(c)
c:RegisterEffect(e4)
--spsummon
local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(91512835,1))
e5:SetDescription(aux.Stringid(41456841,1))
e5:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e5:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e5:SetRange(LOCATION_MZONE)
......
......@@ -19,9 +19,6 @@ function c53620899.initial_effect(c)
e2:SetOperation(c53620899.posop)
c:RegisterEffect(e2)
end
function c53620899.tgfilter(c)
return c:IsType(TYPE_MONSTER) and c:IsSetCard(0xed) and c:IsDiscardable()
end
function c53620899.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanDraw(tp,1) end
Duel.SetOperationInfo(0,CATEGORY_DRAW,nil,0,tp,1)
......
......@@ -78,7 +78,7 @@ function c62753201.activate(e,tp,eg,ep,ev,re,r,rp)
e2:SetReset(RESET_EVENT+0x1fe0000)
e2:SetCountLimit(1)
e2:SetTarget(c62753201.indtg)
e2:SetOperation(c62753201.intop)
e2:SetOperation(c62753201.indop)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_GRANT)
e3:SetRange(LOCATION_SZONE)
......
......@@ -109,10 +109,10 @@ function c879958.atkfilter(c)
return c:IsFaceup() and c:IsType(TYPE_LINK) and not c:IsHasEffect(EFFECT_EXTRA_ATTACK)
end
function c879958.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c879958.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c879958.filter,tp,LOCATION_MZONE,0,1,nil) end
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and c879958.atkfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c879958.atkfilter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c879958.filter,tp,LOCATION_MZONE,0,1,1,nil)
Duel.SelectTarget(tp,c879958.atkfilter,tp,LOCATION_MZONE,0,1,1,nil)
end
function c879958.atkop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
......
......@@ -58,7 +58,7 @@ function c89785779.eqop(e,tp,eg,ep,ev,re,r,rp)
m.equip_monster(tc2,tp,tc1)
end
end
function c89785779.thfilter(c,e)
function c89785779.thfilter(c)
return c:IsFaceup() and ((c:IsSetCard(0x110) and c:IsType(TYPE_FUSION)) or c:IsCode(64631466))
end
function c89785779.thcon(e,tp,eg,ep,ev,re,r,rp)
......
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