Commit 9bccc3c5 authored by mallu11's avatar mallu11 Committed by GitHub

fix 魔妖仙獣 独眼群主 (#1620)

parent 59e49bbb
...@@ -81,7 +81,7 @@ function c21364070.initial_effect(c) ...@@ -81,7 +81,7 @@ function c21364070.initial_effect(c)
end end
end end
function c21364070.scalefilter(c) function c21364070.scalefilter(c)
return c:IsFaceup() and c:IsSetCard(0xb3) and c:GetLeftScale()~=11 return c:IsFaceup() and c:IsSetCard(0xb3) and c:GetCurrentScale()~=11
end end
function c21364070.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c21364070.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and c21364070.scalefilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_PZONE) and chkc:IsControler(tp) and c21364070.scalefilter(chkc) end
...@@ -91,7 +91,6 @@ function c21364070.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -91,7 +91,6 @@ function c21364070.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c21364070.operation(e,tp,eg,ep,ev,re,r,rp) function c21364070.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
...@@ -103,15 +102,15 @@ function c21364070.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -103,15 +102,15 @@ function c21364070.operation(e,tp,eg,ep,ev,re,r,rp)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CHANGE_RSCALE) e2:SetCode(EFFECT_CHANGE_RSCALE)
tc:RegisterEffect(e2) tc:RegisterEffect(e2)
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(1,0)
e3:SetTarget(c21364070.splimit)
e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp)
end end
local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_FIELD)
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
e3:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e3:SetTargetRange(1,0)
e3:SetTarget(c21364070.splimit)
e3:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e3,tp)
end end
function c21364070.splimit(e,c) function c21364070.splimit(e,c)
return not c:IsSetCard(0xb3) return not c:IsSetCard(0xb3)
......
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