Commit d60c69fc authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

fix Knightmare Goblin, Noble Knight Custennin and Simorgh, Bird of Beginning (#1854)

parent 74a45523
...@@ -29,7 +29,7 @@ function c39064822.lcheck(g,lc) ...@@ -29,7 +29,7 @@ function c39064822.lcheck(g,lc)
return g:GetClassCount(Card.GetLinkCode)==g:GetCount() return g:GetClassCount(Card.GetLinkCode)==g:GetCount()
end end
function c39064822.sumcon(e,tp,eg,ep,ev,re,r,rp) function c39064822.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) return e:GetHandler():IsSummonType(SUMMON_TYPE_LINK) and Duel.GetTurnPlayer()==tp
end end
function c39064822.sumcost(e,tp,eg,ep,ev,re,r,rp,chk) function c39064822.sumcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsDiscardable,tp,LOCATION_HAND,0,1,nil) end
......
...@@ -54,7 +54,7 @@ function c42472002.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +54,7 @@ function c42472002.effop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function c42472002.sumcon(e,tp,eg,ep,ev,re,r,rp) function c42472002.sumcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFlagEffect(tp,42472002)==0 return Duel.GetFlagEffect(tp,42472002)==0 and Duel.GetTurnPlayer()==tp
end end
function c42472002.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function c42472002.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanSummon(tp) and Duel.IsPlayerCanAdditionalSummon(tp) end if chk==0 then return Duel.IsPlayerCanSummon(tp) and Duel.IsPlayerCanAdditionalSummon(tp) end
......
...@@ -22,7 +22,8 @@ function c50820852.initial_effect(c) ...@@ -22,7 +22,8 @@ function c50820852.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c50820852.sumtg(e,tp,eg,ep,ev,re,r,rp,chk) function c50820852.sumtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsPlayerCanSummon(tp) and Duel.IsPlayerCanAdditionalSummon(tp) and Duel.GetFlagEffect(tp,50820852)==0 end if chk==0 then return Duel.IsPlayerCanSummon(tp) and Duel.IsPlayerCanAdditionalSummon(tp)
and Duel.GetFlagEffect(tp,50820852)==0 and Duel.GetTurnPlayer()==tp end
end end
function c50820852.sumop(e,tp,eg,ep,ev,re,r,rp) function c50820852.sumop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetFlagEffect(tp,50820852)~=0 then return end if Duel.GetFlagEffect(tp,50820852)~=0 then return 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