Commit 328301ee authored by GuGu's avatar GuGu

Update c31084.lua 自肃and区域检测

parent 86795315
Pipeline #21783 passed with stage
in 50 seconds
......@@ -33,7 +33,7 @@ function c31084.initial_effect(c)
Duel.SendtoHand(e:GetHandler(), nil, REASON_COST)
end
function c31084.splimit(e,c,sump,sumtype,sumpos,targetp,se)
return c:GetAttribute()==ATTRIBUTE_EARTH
return c:GetAttribute()~=ATTRIBUTE_EARTH
end
--效果条件:自己墓地的地属性怪兽或者「0x258」怪兽
function c31084.filter1b(c,e,tp)
......@@ -42,7 +42,7 @@ function c31084.initial_effect(c)
function c31084.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c31084.filter1b(chkc,e,tp) end
if chk==0 then return Duel.IsExistingTarget(c31084.filter1b,tp,LOCATION_GRAVE,0,1,nil,e,tp)
and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
and Duel.GetMZoneCount(tp,e:GetHandler())>0 end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectTarget(tp,c31084.filter1b,tp,LOCATION_GRAVE,0,1,1,nil,e,tp)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,g,1,0,0)
......
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