Commit 3f3818aa authored by TanakaKotoha's avatar TanakaKotoha

fix k2

parent 63f99584
......@@ -66,6 +66,7 @@ function c47530035.tetg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,nil,1,tp,LOCATION_PZONE)
end
function c47530035.teop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(47530035,3))
local g=Duel.SelectMatchingCard(tp,c47530035.tefilter,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
......
......@@ -11,7 +11,7 @@ function c66915003.initial_effect(c)
e22:SetType(EFFECT_TYPE_FIELD)
e22:SetCode(EFFECT_UPDATE_ATTACK)
e22:SetRange(LOCATION_SZONE)
e22:SetTargetRange(LOCATION_MZONE,LOCATION_MZONE)
e22:SetTargetRange(LOCATION_MZONE,0)
e22:SetTarget(c66915003.tgtg)
e22:SetValue(1000)
c:RegisterEffect(e22)
......@@ -31,6 +31,7 @@ function c66915003.initial_effect(c)
e55:SetTargetRange(LOCATION_MZONE,0)
e55:SetTarget(c66915003.eftg)
e55:SetLabelObject(e222)
c:RegisterEffect(e55)
--chain attack
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
......@@ -63,7 +64,7 @@ function c66915003.eftg(e,c)
local seq=c:GetSequence()
return c:IsSetCard(0x1374)
and seq<5 and math.abs(e:GetHandler():GetSequence()-seq)==0 or
math.abs(e:GetHandler():GetSequence()-seq)==-1
e:GetHandler():GetSequence()-seq==1
end
function c66915003.sumlimit(e,c,sump,sumtype,sumpos,targetp)
return c:IsLocation(LOCATION_EXTRA) and not c:IsSetCard(0x1374)
......@@ -86,6 +87,6 @@ end
function c66915003.tgtg(e,c)
local seq=c:GetSequence()
return c:IsType(TYPE_EFFECT) and c:IsSetCard(0x1374)
and seq<5 and math.abs(e:GetHandler():GetSequence()-seq)==0 or
math.abs(e:GetHandler():GetSequence()-seq)==-1
and seq<5 and math.abs(e:GetHandler():GetSequence()-seq)==0 or
e:GetHandler():GetSequence()-seq==1
end
\ No newline at end of file
......@@ -79,7 +79,7 @@ function c66915004.eftg(e,c)
local seq=c:GetSequence()
return c:IsSetCard(0x1374)
and seq<5 and math.abs(e:GetHandler():GetSequence()-seq)==0 or
math.abs(e:GetHandler():GetSequence()-seq)==1
e:GetHandler():GetSequence()-seq==-1
end
function c66915004.cfilter(c)
return c:IsFaceup() and c:IsCode(66915001)
......@@ -88,7 +88,7 @@ function c66915004.tgtg(e,c)
local seq=c:GetSequence()
return c:IsType(TYPE_EFFECT) and c:IsSetCard(0x1374)
and seq<5 and math.abs(e:GetHandler():GetSequence()-seq)==0 or
math.abs(e:GetHandler():GetSequence()-seq)==1
e:GetHandler():GetSequence()-seq==-1
end
function c66915004.tglimit(e,c)
return c~=e:GetHandler()
......
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