Commit 8195cc65 authored by POLYMER's avatar POLYMER

fix

parent f39f6deb
......@@ -42,7 +42,7 @@ function c28384498.target(e,tp,eg,ep,ev,re,r,rp,chk)
{b1,aux.Stringid(28384498,0)},
{b2,aux.Stringid(28384498,1)})
e:SetLabel(op)
if sel==1 then
if op==1 then
e:SetCategory(CATEGORY_DESTROY+CATEGORY_REMOVE)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,b1,1,0,0)
else
......@@ -58,7 +58,7 @@ function c28384498.setfilter(c)
end
function c28384498.operation(e,tp,eg,ep,ev,re,r,rp)
local sel=e:GetLabel()
if sel==0 then
if sel==1 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=Duel.SelectMatchingCard(tp,aux.TRUE,tp,0,LOCATION_ONFIELD,1,1,nil)
Duel.HintSelection(dg)
......
......@@ -80,7 +80,7 @@ end
function cm.eqop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
if tc:IsRelateToEffect(e) and c:IsRelateToEffect(e) and Duel.GetLocationCount(tp,LOCATION_SZONE)>0 then
cm.equip_monster(c,tp,tc)
end
end
......
......@@ -7,9 +7,10 @@ function s.initial_effect(c)
--atk
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
e1:SetHintTiming(TIMING_DAMAGE_STEP,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE+TIMING_DAMAGE_STEP)
e1:SetCountLimit(1,id)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(s.cost)
......
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