Commit b9635850 authored by REIKAI's avatar REIKAI 💬

rep 11.6

parent 7a0a1317
Pipeline #17777 passed with stages
in 28 minutes and 42 seconds
......@@ -45,17 +45,15 @@ function cm.con(e,tp,eg,ep,ev,re,r,rp)
return (Duel.GetCurrentPhase()==PHASE_MAIN1 or Duel.GetCurrentPhase()==PHASE_MAIN2) and Duel.GetTurnPlayer()~=tp
end
function cm.chkfilter1(c,e,tp)
return c:IsSetCard(0xce2) and c:IsType(TYPE_MONSTER) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and
not c:IsHasEffect(EFFECT_REVIVE_LIMIT) and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP_ATTACK,tp,c)
return c:IsSetCard(0xce2) and c:IsType(TYPE_MONSTER) and Duel.GetLocationCountFromEx(tp,tp,nil,c)>0 and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP_ATTACK,tp,c)
and Duel.IsExistingMatchingCard(cm.chkfilter2,tp,LOCATION_EXTRA,0,1,nil,e,tp,c:GetCode())
end
function cm.chkfilter2(c,e,tp,cd)
return c:IsSetCard(0xce2) and c:IsType(TYPE_MONSTER) and not c:IsCode(cd) and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0
and not c:IsHasEffect(EFFECT_REVIVE_LIMIT) and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP_ATTACK,1-tp,c)
return c:IsSetCard(0xce2) and c:IsType(TYPE_MONSTER) and not c:IsCode(cd) and Duel.GetLocationCountFromEx(1-tp,tp,nil,c)>0 and Duel.IsPlayerCanSpecialSummon(tp,0,POS_FACEUP_ATTACK,1-tp,c)
end
function cm.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.IsExistingMatchingCard(cm.chkfilter1,tp,LOCATION_DECK,0,1,nil,e,tp) end
and Duel.IsExistingMatchingCard(cm.chkfilter1,tp,LOCATION_EXTRA,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,2,tp,LOCATION_EXTRA)
end
function cm.cost(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