Commit 479b9dee authored by Fluorohydride's avatar Fluorohydride

Merge pull request #701 from woodee/patch-44

fix
parents 45ec8c6b 3b31324f
...@@ -25,21 +25,28 @@ function c65384188.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -25,21 +25,28 @@ function c65384188.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc1,tc2=Duel.GetFirstTarget() local tc1,tc2=Duel.GetFirstTarget()
if tc1:IsRelateToEffect(e) and tc1:IsFaceup() and tc2:IsRelateToEffect(e) and tc2:IsFaceup() then if tc1:IsRelateToEffect(e) and tc1:IsFaceup() and tc2:IsRelateToEffect(e) and tc2:IsFaceup() then
local a=0
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_DISABLE) e1:SetCode(EFFECT_DISABLE)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
tc1:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_DISABLE_EFFECT) e2:SetCode(EFFECT_DISABLE_EFFECT)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
tc1:RegisterEffect(e2) if not tc1:IsDisabled() then
local e3=e1:Clone() tc1:RegisterEffect(e1)
tc2:RegisterEffect(e3) tc1:RegisterEffect(e2)
local e4=e2:Clone() a=a+1
tc2:RegisterEffect(e4) end
if tc1:IsDefencePos() or tc2:IsDefencePos() then return end if not tc2:IsDisabled() then
local e3=e1:Clone()
local e4=e2:Clone()
tc2:RegisterEffect(e3)
tc2:RegisterEffect(e4)
a=a+1
end
if tc1:IsDefencePos() or tc2:IsDefencePos() or a~=2 then return end
Duel.BreakEffect() Duel.BreakEffect()
c65384188.reg(c,tc1,tc2) c65384188.reg(c,tc1,tc2)
c65384188.reg(c,tc2,tc1) c65384188.reg(c,tc2,tc1)
......
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