Commit b09931d5 authored by mercury233's avatar mercury233

fix De-Fusion & De-Synchro

parent 77c020b1
...@@ -30,10 +30,10 @@ function c32441317.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,10 +30,10 @@ function c32441317.activate(e,tp,eg,ep,ev,re,r,rp)
if tc:IsFacedown() or not tc:IsRelateToEffect(e) then return end if tc:IsFacedown() or not tc:IsRelateToEffect(e) then return end
local mg=tc:GetMaterial() local mg=tc:GetMaterial()
local ct=mg:GetCount() local ct=mg:GetCount()
local sumtype=tc:GetSummonType() if Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_EXTRA)
if Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT)~=0 and sumtype==SUMMON_TYPE_SYNCHRO and tc:IsSummonType(SUMMON_TYPE_SYNCHRO)
and ct>0 and not Duel.IsPlayerAffectedByEffect(tp,59822133) and ct>0 and ct<=Duel.GetLocationCount(tp,LOCATION_MZONE)
and ct<=Duel.GetLocationCount(tp,LOCATION_MZONE) and (not Duel.IsPlayerAffectedByEffect(tp,59822133) or ct==1)
and mg:FilterCount(aux.NecroValleyFilter(c32441317.mgfilter),nil,e,tp,tc)==ct and mg:FilterCount(aux.NecroValleyFilter(c32441317.mgfilter),nil,e,tp,tc)==ct
and Duel.SelectYesNo(tp,aux.Stringid(32441317,0)) then and Duel.SelectYesNo(tp,aux.Stringid(32441317,0)) then
Duel.BreakEffect() Duel.BreakEffect()
......
...@@ -31,11 +31,11 @@ function c95286165.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -31,11 +31,11 @@ function c95286165.activate(e,tp,eg,ep,ev,re,r,rp)
if not (tc:IsRelateToEffect(e) and tc:IsFaceup()) then return end if not (tc:IsRelateToEffect(e) and tc:IsFaceup()) then return end
local mg=tc:GetMaterial() local mg=tc:GetMaterial()
local ct=mg:GetCount() local ct=mg:GetCount()
local sumtype=tc:GetSummonType() if Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT)~=0 and tc:IsLocation(LOCATION_EXTRA)
if Duel.SendtoDeck(tc,nil,SEQ_DECKTOP,REASON_EFFECT)~=0 and bit.band(sumtype,SUMMON_TYPE_FUSION)==SUMMON_TYPE_FUSION and tc:IsSummonType(SUMMON_TYPE_FUSION)
and ct>0 and ct<=Duel.GetLocationCount(tp,LOCATION_MZONE) and ct>0 and ct<=Duel.GetLocationCount(tp,LOCATION_MZONE)
and (not Duel.IsPlayerAffectedByEffect(tp,59822133) or ct==1)
and mg:FilterCount(aux.NecroValleyFilter(c95286165.mgfilter),nil,e,tp,tc,mg)==ct and mg:FilterCount(aux.NecroValleyFilter(c95286165.mgfilter),nil,e,tp,tc,mg)==ct
and not Duel.IsPlayerAffectedByEffect(tp,59822133)
and Duel.SelectYesNo(tp,aux.Stringid(95286165,0)) then and Duel.SelectYesNo(tp,aux.Stringid(95286165,0)) 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)
......
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