Commit 30db66a0 authored by Grajade's avatar Grajade

Update c50343.lua

parent 95328ff4
Pipeline #15410 passed with stage
in 43 seconds
...@@ -30,6 +30,7 @@ function c50343.initial_effect(c) ...@@ -30,6 +30,7 @@ function c50343.initial_effect(c)
e0:SetCode(EFFECT_IMMUNE_EFFECT) e0:SetCode(EFFECT_IMMUNE_EFFECT)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e0:SetRange(LOCATION_MZONE) e0:SetRange(LOCATION_MZONE)
e0:SetCondition(c50343.immcon)
e0:SetValue(c50343.efilter) e0:SetValue(c50343.efilter)
c:RegisterEffect(e0) c:RegisterEffect(e0)
end end
...@@ -73,3 +74,6 @@ function c50343.efilter(e,te) ...@@ -73,3 +74,6 @@ function c50343.efilter(e,te)
if ec:IsHasCardTarget(c) then return true end if ec:IsHasCardTarget(c) then return true end
return te:IsHasType(EFFECT_TYPE_ACTIONS) and te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and c:IsRelateToEffect(te) and te:GetOwnerPlayer()~=e:GetHandlerPlayer() return te:IsHasType(EFFECT_TYPE_ACTIONS) and te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and c:IsRelateToEffect(te) and te:GetOwnerPlayer()~=e:GetHandlerPlayer()
end end
function c50343.immcon(e)
return e:GetHandler():IsSummonType(SUMMON_TYPE_NORMAL)
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