Commit ebb5944a authored by GuGu's avatar GuGu

Update c71107.lua 墓封的错误判定

parent 5bbaee16
Pipeline #22059 passed with stage
in 44 seconds
...@@ -22,14 +22,12 @@ function c71107.initial_effect(c) ...@@ -22,14 +22,12 @@ function c71107.initial_effect(c)
--Inactivate --Inactivate
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD) e4:SetType(EFFECT_TYPE_FIELD)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetCode(EFFECT_CANNOT_ACTIVATE)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetTargetRange(LOCATION_GRAVE,LOCATION_GRAVE) e4:SetTargetRange(1,1)
e4:SetTarget(c71107.disable) e4:SetValue(c71107.aclimit)
e4:SetCode(EFFECT_DISABLE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
local e5=e4:Clone()
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))
...@@ -100,3 +98,6 @@ function c71107.retop(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,3 +98,6 @@ function c71107.retop(e,tp,eg,ep,ev,re,r,rp)
Duel.SendtoHand(c,nil,REASON_EFFECT) Duel.SendtoHand(c,nil,REASON_EFFECT)
end 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
\ 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