Commit cafcf9ec authored by DailyShana's avatar DailyShana

fix

parent 4604c36f
......@@ -7,6 +7,7 @@ function c66765023.initial_effect(c)
e1:SetRange(LOCATION_MZONE)
e1:SetCode(EFFECT_INDESTRUCTABLE_COUNT)
e1:SetCountLimit(1)
e1:SetCondition(c66765023.indcon)
e1:SetValue(c66765023.valcon)
c:RegisterEffect(e1)
--add win effect
......@@ -19,6 +20,9 @@ function c66765023.initial_effect(c)
e2:SetOperation(c66765023.effop)
c:RegisterEffect(e2)
end
function c66765023.indcon(e)
return Duel.GetTurnPlayer()~=e:GetHandlerPlayer()
end
function c66765023.valcon(e,re,r,rp)
local res=false
if bit.band(r,REASON_EFFECT)~=0 and rp==1-e:GetHandlerPlayer() then
......
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