Commit 775c2f44 authored by salix5's avatar salix5

fix 方界曼荼羅

parent 3e60aa9b
...@@ -40,7 +40,7 @@ end ...@@ -40,7 +40,7 @@ end
function c8837932.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c8837932.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local tid=Duel.GetTurnCount() local tid=Duel.GetTurnCount()
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c8837932.spfilter(chkc,e,tp,tid) end if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(1-tp) and c8837932.spfilter(chkc,e,tp,tid) end
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(1-tp,LOCATION_MZONE)
if chk==0 then return ft>0 if chk==0 then return ft>0
and Duel.IsExistingTarget(c8837932.spfilter,tp,0,LOCATION_GRAVE,1,nil,e,tp,tid) end and Duel.IsExistingTarget(c8837932.spfilter,tp,0,LOCATION_GRAVE,1,nil,e,tp,tid) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
...@@ -50,7 +50,7 @@ function c8837932.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -50,7 +50,7 @@ function c8837932.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c8837932.activate(e,tp,eg,ep,ev,re,r,rp) function c8837932.activate(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(1-tp,LOCATION_MZONE)
if ft<=0 or not c:IsRelateToEffect(e) then return end if ft<=0 or not c:IsRelateToEffect(e) then return end
local sg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e) local sg=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
if sg:GetCount()>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) then return end if sg:GetCount()>1 and Duel.IsPlayerAffectedByEffect(tp,59822133) 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