Commit ebb5944a authored by GuGu's avatar GuGu

Update c71107.lua 墓封的错误判定

parent 5bbaee16
Pipeline #22059 passed with stage
in 44 seconds
...@@ -19,17 +19,15 @@ function c71107.initial_effect(c) ...@@ -19,17 +19,15 @@ function c71107.initial_effect(c)
e3:SetTargetRange(1,1) e3:SetTargetRange(1,1)
e3:SetTarget(c71107.sumlimit) e3:SetTarget(c71107.sumlimit)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Inactivate --Inactivate
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetRange(LOCATION_MZONE) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(LOCATION_GRAVE,LOCATION_GRAVE) e4:SetCode(EFFECT_CANNOT_ACTIVATE)
e4:SetTarget(c71107.disable) e4:SetRange(LOCATION_MZONE)
e4:SetCode(EFFECT_DISABLE) e4:SetTargetRange(1,1)
c:RegisterEffect(e4) e4:SetValue(c71107.aclimit)
local e5=e4:Clone() c:RegisterEffect(e4)
e5:SetCode(EFFECT_DISABLE_EFFECT)
c:RegisterEffect(e5)
--return --return
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(71107,1)) e1:SetDescription(aux.Stringid(71107,1))
...@@ -99,4 +97,7 @@ function c71107.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -99,4 +97,7 @@ function c71107.retop(e,tp,eg,ep,ev,re,r,rp)
if c:IsRelateToEffect(e) and c:IsFaceup() then if c:IsRelateToEffect(e) and c:IsFaceup() then
Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.SendtoHand(c,nil,REASON_EFFECT)
end end
end
function c71107.aclimit(e,re,tp)
return re:GetActivateLocation()==LOCATION_GRAVE and re:IsActiveType(TYPE_MONSTER) and not re:GetHandler():IsImmuneToEffect(e)
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