Commit 5632861b authored by DailyShana's avatar DailyShana

fix

parent 7afe677d
......@@ -21,8 +21,7 @@ function c12117532.initial_effect(c)
--atkdown
local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(12117532,0))
e3:SetCategory(CATEGORY_ATKCHANGE)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_F)
e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_PHASE+PHASE_STANDBY)
e3:SetRange(LOCATION_SZONE)
e3:SetCountLimit(1)
......@@ -61,7 +60,6 @@ function c12117532.atkcon(e,tp,eg,ep,ev,re,r,rp)
end
function c12117532.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local tc=c:GetFirstCardTarget()
if tc then
local e1=Effect.CreateEffect(c)
......
......@@ -14,7 +14,7 @@ function c23842445.initial_effect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_EQUIP_LIMIT)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(1)
e2:SetValue(c23842445.eqlimit)
c:RegisterEffect(e2)
--damage
local e3=Effect.CreateEffect(c)
......@@ -28,6 +28,9 @@ function c23842445.initial_effect(c)
e3:SetOperation(c23842445.damop)
c:RegisterEffect(e3)
end
function c23842445.eqlimit(e,c)
return c:IsControler(1-e:GetHandlerPlayer())
end
function c23842445.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(1-tp) and chkc:IsLocation(LOCATION_MZONE) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,0,LOCATION_MZONE,1,nil) 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