Commit 6e8147bc authored by salix5's avatar salix5

fix

29616929 蟲惑の落とし穴
42752141 エヴォルカイザー・ドルカ
天罰
スターライト·ロード
parent 718a6b77
...@@ -39,8 +39,11 @@ function c29616929.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -39,8 +39,11 @@ function c29616929.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
end end
function c29616929.activate(e,tp,eg,ep,ev,re,r,rp) function c29616929.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler()
if not tc:IsDisabled() then
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
if re:GetHandler():IsRelateToEffect(re) then if tc:IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end
end end
--エヴォルカイザー·ドルカ --エヴォルカイザー・ドルカ
function c42752141.initial_effect(c) function c42752141.initial_effect(c)
--xyz summon --xyz summon
aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_DINOSAUR),4),2) aux.AddXyzProcedure(c,aux.XyzFilterFunctionF(c,aux.FilterBoolFunction(Card.IsRace,RACE_DINOSAUR),4),2)
...@@ -34,7 +34,7 @@ function c42752141.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -34,7 +34,7 @@ function c42752141.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c42752141.operation(e,tp,eg,ep,ev,re,r,rp) function c42752141.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
if re:GetHandler():IsRelateToEffect(re) then if re:GetActivateLocation()==LOCATION_EXTRA or re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -27,7 +27,7 @@ function c49010598.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -27,7 +27,7 @@ function c49010598.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c49010598.activate(e,tp,eg,ep,ev,re,r,rp) function c49010598.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.NegateActivation(ev) Duel.NegateActivation(ev)
if re:GetHandler():GetLocation()==LOCATION_EXTRA or re:GetHandler():IsRelateToEffect(re) then if re:GetActivateLocation()==LOCATION_EXTRA or re:GetHandler():IsRelateToEffect(re) then
Duel.Destroy(eg,REASON_EFFECT) Duel.Destroy(eg,REASON_EFFECT)
end end
end end
...@@ -32,7 +32,7 @@ function c58120309.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -32,7 +32,7 @@ function c58120309.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=re:GetHandler() local tc=re:GetHandler()
if not tc:IsDisabled() then if not tc:IsDisabled() then
Duel.NegateEffect(ev) Duel.NegateEffect(ev)
if (tc:GetLocation()==LOCATION_EXTRA or tc:IsRelateToEffect(re)) and Duel.Destroy(eg,REASON_EFFECT)~=0 then if (re:GetActivateLocation()==LOCATION_EXTRA or tc:IsRelateToEffect(re)) and Duel.Destroy(eg,REASON_EFFECT)~=0 then
local sc=Duel.GetFirstMatchingCard(c58120309.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp) local sc=Duel.GetFirstMatchingCard(c58120309.sfilter,tp,LOCATION_EXTRA,0,nil,e,tp)
if sc and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(58120309,0)) then if sc and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SelectYesNo(tp,aux.Stringid(58120309,0)) then
Duel.BreakEffect() Duel.BreakEffect()
......
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