Commit b48877be authored by salix5's avatar salix5

fix 氷結界

parent ff42e4be
...@@ -23,12 +23,12 @@ function c34293667.initial_effect(c) ...@@ -23,12 +23,12 @@ function c34293667.initial_effect(c)
end end
function c34293667.target(e,tp,eg,ep,ev,re,r,rp,chk) function c34293667.target(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetBattleMonster(1-tp) local tc=Duel.GetBattleMonster(1-tp)
if chk==0 then return tc and tc:IsRelateToBattle() end if chk==0 then return tc and tc:IsRelateToBattle() and tc:IsFaceup() end
end end
function c34293667.activate(e,tp,eg,ep,ev,re,r,rp) function c34293667.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetBattleMonster(1-tp) local tc=Duel.GetBattleMonster(1-tp)
if tc and tc:IsRelateToBattle() then if tc and tc:IsRelateToBattle() and tc:IsFaceup() then
Duel.NegateRelatedChain(tc,RESET_TURN_SET) Duel.NegateRelatedChain(tc,RESET_TURN_SET)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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