Commit 52d5b1fb authored by mercury233's avatar mercury233 Committed by GitHub

fix for Duel.MoveToField (#1441)

check immune
parent 848a31d4
...@@ -46,7 +46,7 @@ function c19501924.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -46,7 +46,7 @@ function c19501924.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SelectTarget(tp,c19501924.cfilter,tp,LOCATION_MZONE,0,1,ft,nil) Duel.SelectTarget(tp,c19501924.cfilter,tp,LOCATION_MZONE,0,1,ft,nil)
end end
function c19501924.mfilter(c,e) function c19501924.mfilter(c,e)
return c:IsFaceup() and c:IsRelateToEffect(e) return c:IsFaceup() and c:IsRelateToEffect(e) and not c:IsImmuneToEffect(e)
end end
function c19501924.activate(e,tp,eg,ep,ev,re,r,rp) function c19501924.activate(e,tp,eg,ep,ev,re,r,rp)
local ft=0 local ft=0
......
...@@ -48,7 +48,7 @@ end ...@@ -48,7 +48,7 @@ end
function c91870448.plop(e,tp,eg,ep,ev,re,r,rp) function c91870448.plop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local bc=c:GetBattleTarget() local bc=c:GetBattleTarget()
if bc:IsRelateToBattle() and bc:IsControler(1-tp) then if bc:IsRelateToBattle() and bc:IsControler(1-tp) and not bc:IsImmuneToEffect(e) then
if Duel.MoveToField(bc,tp,1-tp,LOCATION_SZONE,POS_FACEUP,true) then if Duel.MoveToField(bc,tp,1-tp,LOCATION_SZONE,POS_FACEUP,true) then
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_CHANGE_TYPE) e1:SetCode(EFFECT_CHANGE_TYPE)
......
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