Commit d327ecf2 authored by Tachibana's avatar Tachibana

ybb

parent 2aa4d4f8
Pipeline #10851 passed with stages
in 24 minutes and 35 seconds
No preview for this file type
...@@ -31,18 +31,20 @@ function c33700373.condition(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,18 +31,20 @@ function c33700373.condition(e,tp,eg,ep,ev,re,r,rp)
return ep~=tp and Duel.GetAttackTarget()==nil return ep~=tp and Duel.GetAttackTarget()==nil
end end
function c33700373.operation(e,tp,eg,ep,ev,re,r,rp) function c33700373.operation(e,tp,eg,ep,ev,re,r,rp)
local e3=Effect.CreateEffect(e:GetHandler()) local rct=1
e3:SetType(EFFECT_TYPE_FIELD) if Duel.GetTurnPlayer()~=tp then rct=2 end
e3:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) local e1=Effect.CreateEffect(e:GetHandler())
e3:SetReset(RESET_PHASE+PHASE_END,2) e1:SetType(EFFECT_TYPE_FIELD)
e3:SetProperty(EFFECT_FLAG_SET_AVAILABLE+EFFECT_FLAG_IGNORE_IMMUNE) e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e3:SetTargetRange(0xff,0xff) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e3:SetTarget(c33700373.tg) e1:SetTargetRange(0xff,0xff)
e3:SetValue(1) e1:SetTarget(c33700373.tglimit)
Duel.RegisterEffect(e3,tp) e1:SetValue(aux.tgoval)
e1:SetReset(RESET_PHASE+PHASE_END+RESET_OPPO_TURN,rct)
Duel.RegisterEffect(e1,tp)
end end
function c33700373.tg(e,re,rp) function c33700373.tglimit(e,c)
return re:GetHandler()~=e:GetOwner() and rp==1-e:GetHandlerPlayer() return not (c==e:GetHandler() and c:IsFaceup() and c:IsOnField())
end end
function c33700373.damcon(e,tp,eg,ep,ev,re,r,rp) function c33700373.damcon(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
......
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