Commit 8afc9964 authored by wyykak's avatar wyykak

Merge branch 'patch-4' into 'master'

Update c50343.lua 2效果抗性

See merge request !9
parents c58557de a4449c27
Pipeline #13962 passed with stage
in 58 seconds
......@@ -30,7 +30,6 @@ function c50343.initial_effect(c)
e0:SetCode(EFFECT_IMMUNE_EFFECT)
e0:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e0:SetRange(LOCATION_MZONE)
e0:SetTarget(c50343.target)
e0:SetValue(c50343.efilter)
c:RegisterEffect(e0)
end
......@@ -68,10 +67,9 @@ function c50343.tgop2(e,tp,eg,ep,ev,re,r,rp)
Duel.CalculateDamage(a,c,true)
end
end
function c50343.target(e,c)
local te,g=Duel.GetChainInfo(0,CHAININFO_TRIGGERING_EFFECT,CHAININFO_TARGET_CARDS)
return te and te:IsHasProperty(EFFECT_FLAG_CARD_TARGET) and g and g:IsContains(c) and c:IsSummonType(SUMMON_TYPE_SPECIAL)
end
function c50343.efilter(e,te)
return te:GetOwnerPlayer()~=e:GetHandlerPlayer()
local c=e:GetHandler()
local ec=te:GetHandler()
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()
end
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