Commit b4bb12ea authored by salix5's avatar salix5

update マルチ・ピース・ゴーレム

parent e385bada
...@@ -24,23 +24,22 @@ function c71628381.sptg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -24,23 +24,22 @@ function c71628381.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOEXTRA,e:GetHandler(),1,0,0)
end end
function c71628381.mgfilter(c,e,tp,fusc,mg) function c71628381.mgfilter(c,e,tp,fusc,mg)
return not c:IsControler(tp) or not c:IsLocation(LOCATION_GRAVE) return c:IsControler(tp) and c:IsLocation(LOCATION_GRAVE)
or bit.band(c:GetReason(),0x40008)~=0x40008 or c:GetReasonCard()~=fusc and c:GetReason()&(REASON_FUSION+REASON_MATERIAL)==(REASON_FUSION+REASON_MATERIAL) and c:GetReasonCard()==fusc
or not c:IsCanBeSpecialSummoned(e,0,tp,false,false) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
or not fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true) and fusc:CheckFusionMaterial(mg,c,PLAYER_NONE,true)
end end
function c71628381.spop(e,tp,eg,ep,ev,re,r,rp) function c71628381.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) then return end if not c:IsRelateToEffect(e) then return end
local mg=c:GetMaterial() local mg=c:GetMaterial()
local sumable=true local ct=mg:GetCount()
local sumtype=c:GetSummonType() local sumtype=c:GetSummonType()
if Duel.SendtoDeck(c,nil,0,REASON_EFFECT)==0 or bit.band(sumtype,SUMMON_TYPE_FUSION)~=SUMMON_TYPE_FUSION or mg:GetCount()==0 if Duel.SendtoDeck(c,nil,0,REASON_EFFECT)~=0 and bit.band(sumtype,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION
or mg:GetCount()>Duel.GetLocationCount(tp,LOCATION_MZONE) and ct>0 and ct<=Duel.GetLocationCount(tp,LOCATION_MZONE)
or mg:IsExists(c71628381.mgfilter,1,nil,e,tp,c,mg) then and mg:FilterCount(aux.NecroValleyFilter(c71628381.mgfilter),nil,e,tp,c,mg)==ct
sumable=false and not Duel.IsPlayerAffectedByEffect(tp,59822133)
end and Duel.SelectYesNo(tp,aux.Stringid(71628381,1)) then
if sumable and Duel.SelectYesNo(tp,aux.Stringid(71628381,1)) then
Duel.BreakEffect() Duel.BreakEffect()
Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(mg,0,tp,tp,false,false,POS_FACEUP)
end 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