Commit a3e8b178 authored by Nemo Ma's avatar Nemo Ma

Update c33400033.lua

parent cb12d8a5
...@@ -30,9 +30,10 @@ function c33400033.initial_effect(c) ...@@ -30,9 +30,10 @@ function c33400033.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--ChainLimit --ChainLimit
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD) e3:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_CHAINING)
e3:SetRange(LOCATION_MZONE) e3:SetRange(LOCATION_MZONE)
e3:SetOperation(c33400033.tgop) e3:SetOperation(c33400033.chainop)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Equip Okatana --Equip Okatana
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -120,16 +121,8 @@ end ...@@ -120,16 +121,8 @@ end
function c33400033.afilter(c) function c33400033.afilter(c)
return c:IsSetCard(0x3340) and c:IsType(TYPE_QUICKPLAY) return c:IsSetCard(0x3340) and c:IsType(TYPE_QUICKPLAY)
end end
function c33400033.tgop(e,tp,eg,ep,ev,re,r,rp) function c33400033.chainop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) if re:GetHandler():IsSetCard(0x3341) and ep==tp then
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_CHAINING)
e1:SetOperation(c33400033.actop)
Duel.RegisterEffect(e1,tp)
end
function c33400033.actop(e,tp,eg,ep,ev,re,r,rp)
local rc=re:GetHandler()
if re:GetHandler():IsSetCard(0x3341) then
Duel.SetChainLimit(c33400033.chainlm) Duel.SetChainLimit(c33400033.chainlm)
end end
end end
...@@ -192,7 +185,7 @@ end ...@@ -192,7 +185,7 @@ end
function c33400033.valcon(e,re,r,rp) function c33400033.valcon(e,re,r,rp)
return r==REASON_BATTLE return r==REASON_BATTLE
end end
function c33400033.op3(e,tp,eg,ep,ev,re,r,rp) function c33400033.op3(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c33400033.filter,tp,LOCATION_ONFIELD,0,1,1,nil) Duel.SelectTarget(tp,c33400033.filter,tp,LOCATION_ONFIELD,0,1,1,nil)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
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