Commit 30cd12c6 authored by Momobako's avatar Momobako

Push by Appveyor

parent 5fd803a9
...@@ -33,7 +33,7 @@ function c22250003.IsRiviera(c) ...@@ -33,7 +33,7 @@ function c22250003.IsRiviera(c)
return m and m.named_with_Riviera return m and m.named_with_Riviera
end end
function c22250003.spcon(e,tp,eg,ep,ev,re,r,rp) function c22250003.spcon(e,tp,eg,ep,ev,re,r,rp)
return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and Duel.GetTurnPlayer()~=rp return re:IsActiveType(TYPE_SPELL+TYPE_TRAP) and re:IsHasType(EFFECT_TYPE_ACTIVATE) and Duel.GetTurnPlayer()~=rp
end end
function c22250003.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c22250003.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
......
...@@ -70,7 +70,7 @@ function c22250101.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -70,7 +70,7 @@ function c22250101.atkop(e,tp,eg,ep,ev,re,r,rp)
e2:SetValue(-500) e2:SetValue(-500)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
bc:RegisterEffect(e2) bc:RegisterEffect(e2)
if bc:GetAttack()*bc:GetDefense()==0 then if (bc:IsType(TYPE_LINK) and bc:GetAttack()==0) or (bc:GetAttack()*bc:GetDefense()==0 and not bc:IsType(TYPE_LINK)) then
Duel.Remove(bc,POS_FACEUP,REASON_EFFECT) Duel.Remove(bc,POS_FACEUP,REASON_EFFECT)
if Duel.Remove(c,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 then if Duel.Remove(c,POS_FACEUP,REASON_EFFECT+REASON_TEMPORARY)~=0 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -171,13 +171,9 @@ function c22251001.op(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -171,13 +171,9 @@ function c22251001.op(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetValue(-400*e:GetLabel()) e1:SetValue(-400*e:GetLabel())
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
if tc:GetAttack()*tc:GetDefense()==0 then if (tc:IsType(TYPE_LINK) and tc:GetAttack()==0) or (tc:GetAttack()*tc:GetDefense()==0 and not tc:IsType(TYPE_LINK))then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
tc=g:GetNext() tc=g:GetNext()
end end
end end
\ No newline at end of file
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