Commit c2fda5dc authored by Huangnan's avatar Huangnan

fix

parent abb5a0fc
Pipeline #41310 failed with stages
in 2 minutes and 39 seconds
......@@ -2400,7 +2400,7 @@
52700712 1 --忍·妖 玉雪
52700715 0 --忍·兽 鹿雷
52700697 1 --鬼行大道而世人惮之 忍·鬼 猩猩童子
52700694 1 --樱花烂漫 忍·鬼 猩猩童子
52700694 2 --樱花烂漫 忍·鬼 猩猩童子
52700679 1 --彼岸归还
#52700721 0 --余兴之鬼 忍·鬼 仙贝
52700738 1 --忍·龙 缠
......
......@@ -44,7 +44,7 @@ function s.immcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.immop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect() and c:IsFaceup() then
if c:IsRelateToEffect(e) and c:IsFaceup() then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
......@@ -78,8 +78,8 @@ function s.descost(e,tp,eg,ep,ev,re,r,rp,chk)
e:GetHandler():RemoveOverlayCard(tp,1,1,REASON_COST)
end
function s.destg(e,tp,eg,ep,ev,re,r,rp,chk,chk)
if chk==0 then return Duel.IsExistingMatchingCard(nil,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(nil,tp,0,LOCATION_ONFIELD,nil)
if chk==0 then return Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(aux.TRUE,tp,0,LOCATION_ONFIELD,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
Duel.Hint(24,0,aux.Stringid(id,0))
end
......
......@@ -100,7 +100,7 @@ function s.target3(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.operation3(e,tp,eg,ep,ev,re,r,rp)
if re:IsLocation(LOCATION_GRAVE) and Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT)>0 and re:GetHandler():IsRelateToEffect(re) then
if Duel.Remove(re:GetHandler(),POS_FACEUP,REASON_EFFECT)>0 and re:IsPreviousLocation(LOCATION_GRAVE) and re:GetHandler():IsRelateToEffect(re) then
Duel.NegateActivation(ev)
end
end
......
......@@ -62,6 +62,7 @@ function s.op1(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local g=Duel.SelectMatchingCard(tp,s.f1,tp,LOCATION_DECK,0,1,1,nil)
local tc=g:GetFirst()
local c=e:GetHandler()
if tc and Duel.SSet(tp,tc)~=0 and g:GetCount()>0 then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,1))
......
......@@ -161,7 +161,7 @@ function s.op5(e,tp,eg,ep,ev,re,r,rp)
end
end
if not c:GetEquipTarget():IsCode(61200201) and c:IsAbleToGrave() then
c:SendtoGrave(REASON_EFFECT)
Duel.SendtoGrave(c,REASON_EFFECT)
end
end
function s.distg(e,c)
......
......@@ -163,7 +163,7 @@ function s.tg5(e,tp,eg,ep,ev,re,r,rp,chk)
end
function s.op5(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.f4,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil)
local g=Duel.GetMatchingGroup(s.f4,tp,LOCATION_ONFIELD,LOCATION_ONFIELD,nil,e)
if g:GetCount()>0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local sg=g:Select(tp,1,1,nil)
......
......@@ -139,13 +139,17 @@ function s.tg4(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end
function s.op4(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(s.f3,tp,LOCATION_DECK+LOCATION_REMOVED,0,nil)
local g1=Group.CreateGroup()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then
local g=Duel.SelectMatchingCard(tp,s.f3,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,1,nil,e,tp)
if Duel.IsPlayerAffectedByEffect(tp,59822133) or g:GetCount()==1 then
local g1=Duel.SelectMatchingCard(tp,s.f3,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,1,nil,e,tp)
else
local g=Duel.SelectMatchingCard(tp,s.f3,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,2,nil,e,tp)
local g1=Duel.SelectMatchingCard(tp,s.f3,tp,LOCATION_DECK+LOCATION_REMOVED,0,1,2,nil,e,tp)
end
if g1:GetCount()>0 then
Duel.SpecialSummon(g1,nil,tp,tp,false,false,POS_FACEUP)
end
Duel.SpecialSummon(g,nil,tp,tp,false,false,POS_FACEUP)
end
function s.cost5(e,tp,eg,ep,ev,re,r,rp,chk)
......
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