Commit b2d146f2 authored by mallu11's avatar mallu11 Committed by GitHub

fix 月光黄鼬 (#1475)

parent 93b88156
...@@ -25,7 +25,7 @@ function c50546208.initial_effect(c) ...@@ -25,7 +25,7 @@ function c50546208.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c50546208.thfilter1(c,tp) function c50546208.thfilter1(c,tp)
return c:IsFaceup() and c:IsSetCard(0xdf) and not c:IsCode(50546208) and c:IsAbleToHand() and Duel.GetMZoneCount(tp,c) return c:IsFaceup() and c:IsSetCard(0xdf) and not c:IsCode(50546208) and c:IsAbleToHand() and Duel.GetMZoneCount(tp,c)>0
end end
function c50546208.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c50546208.sptg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c50546208.thfilter1(chkc,tp) end if chkc then return chkc:IsOnField() and chkc:IsControler(tp) and c50546208.thfilter1(chkc,tp) end
...@@ -39,8 +39,8 @@ end ...@@ -39,8 +39,8 @@ end
function c50546208.spop(e,tp,eg,ep,ev,re,r,rp) function c50546208.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) and c:IsRelateToEffect(e) then if tc:IsRelateToEffect(e) and Duel.SendtoHand(tc,nil,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_HAND) and c:IsRelateToEffect(e)
Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP_DEFENSE)~=0 then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT) e1:SetCode(EFFECT_LEAVE_FIELD_REDIRECT)
......
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