Commit d797d171 authored by Tachibana's avatar Tachibana

得得得得得

parent 19a52e56
Pipeline #13300 passed with stages
in 27 minutes and 45 seconds
......@@ -20,7 +20,7 @@ function cm.condition(e,tp,eg,ep,ev,re,r,rp)
end
function cm.ckfilter1(c,tp,seq)
local seq1=4-aux.MZoneSequence(c:GetSequence())
return c:IsFaceup() and math.abs(seq-seq1)<=1
return c:IsFaceup() and math.abs(seq-seq1)<=1
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
local c=e:GetHandler()
......@@ -39,7 +39,7 @@ function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function cm.cfilter2(c,seq2)
local seq1=aux.MZoneSequence(c:GetSequence())
return c:IsFaceup() and c:IsCode(92369048) and seq1==4-seq2
return c:IsFaceup() and c:IsCode(92369048) and math.abs(seq2-seq1)==0
end
function cm.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
......@@ -60,8 +60,8 @@ function cm.activate(e,tp,eg,ep,ev,re,r,rp)
while tc do
local preatk=tc:GetAttack()
local predef=tc:GetDefense()
local seq1=aux.MZoneSequence(tc:GetSequence())
if Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil,seq) then
local seq1=4-aux.MZoneSequence(tc:GetSequence())
if Duel.IsExistingMatchingCard(cm.cfilter2,tp,LOCATION_MZONE,0,1,nil,seq1) then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
......
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