Commit b9635850 authored by REIKAI's avatar REIKAI 💬

rep 11.6

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