Commit 43c0c302 authored by 聖園ミカ's avatar 聖園ミカ 🐟

byd

parent 0a63d0a8
No preview for this file type
......@@ -21,6 +21,9 @@ function cm.initial_effect(c)
e2:SetOperation(cm.disop)
c:RegisterEffect(e2)
end
function cm.mfilter(c)
return c:IsAttackAbove(2000) and c:IsLevel(4)
end
function cm.discon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetLP(tp)<Duel.GetLP(1-tp)
end
......@@ -65,11 +68,11 @@ function cm.disop(e,tp,eg,ep,ev,re,r,rp)
e5:SetType(EFFECT_TYPE_SINGLE)
e5:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e5:SetCode(EFFECT_DISABLE)
if Duel.GetTurnPlayer()==tp then
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
end
if Duel.GetTurnPlayer()==tp then
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e5:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
end
c:RegisterEffect(e5)
local e6=e5:Clone()
e5:SetCode(EFFECT_DISABLE_EFFECT)
......
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