Commit 0ac58aca authored by argon.sun's avatar argon.sun

fix

parent 1f2de922
......@@ -47,7 +47,8 @@ function c54704216.operation(e,tp,eg,ep,ev,re,r,rp)
e:GetLabelObject():SetLabelObject(tc)
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_OWNER_RELATE)
e1:SetProperty(EFFECT_FLAG_OWNER_RELATE+EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_CANNOT_ATTACK)
e1:SetReset(RESET_EVENT+0x1fc0000)
e1:SetCondition(c54704216.rcon)
......@@ -70,7 +71,7 @@ function c54704216.desop(e,tp,eg,ep,ev,re,r,rp)
Duel.Destroy(e:GetHandler(),REASON_EFFECT)
end
function c54704216.damcon(e,tp,eg,ep,ev,re,r,rp)
return tp==Duel.GetTurnPlayer()
return tp==Duel.GetTurnPlayer() and e:GetHandler():GetFirstCardTarget()~=nil
end
function c54704216.damtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
......
--Wo `(test)
function c20000010.initial_effect(c)
--Wo `
function c83994433.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--indes
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(20000010,0))
e1:SetDescription(aux.Stringid(83994433,0))
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetTarget(c20000010.target)
e1:SetOperation(c20000010.operation)
e1:SetTarget(c83994433.target)
e1:SetOperation(c83994433.operation)
c:RegisterEffect(e1)
end
function c20000010.filter(c)
function c83994433.filter(c)
return c:IsFaceup()
end
function c20000010.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c20000010.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c20000010.filter,tp,LOCATION_ONFIELD,0,1,nil) end
function c83994433.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsOnField() and c83994433.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c83994433.filter,tp,LOCATION_ONFIELD,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c20000010.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
Duel.SelectTarget(tp,c83994433.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
end
function c20000010.operation(e,tp,eg,ep,ev,re,r,rp)
function c83994433.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetCountLimit(1)
e1:SetValue(c20000010.valcon)
e1:SetValue(c83994433.valcon)
e1:SetReset(RESET_EVENT+0x1fe0000+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1)
end
end
function c20000010.valcon(e,re,r,rp)
function c83994433.valcon(e,re,r,rp)
return bit.band(r,REASON_BATTLE+REASON_EFFECT)~=0
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