Commit e7c6e86a authored by 聖園ミカ's avatar 聖園ミカ 🐟

Replace c31710057.lua

parent 3a01b4bc
Pipeline #32512 passed with stages
in 33 minutes
......@@ -66,7 +66,7 @@ end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) then
local zone=c:GetLinkedZone(tp)&0x1f
local zone=c:GetLinkedZone(c:GetControler())
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)
if Duel.IsPlayerAffectedByEffect(tp,59822133) then ct=1 end
if ct>=1 then
......@@ -98,9 +98,9 @@ function s.operation(e,tp,eg,ep,ev,re,r,rp)
end
function s.nefilter(c,e)
local zone = c:GetLinkedZone()&0x1f
local zone = c:GetLinkedZone(c:GetControler())
local ct=Duel.GetLocationCount(tp,LOCATION_MZONE,tp,LOCATION_REASON_TOFIELD,zone)
return c:IsType(TYPE_LINK) and c:IsFaceup() and c:GetLinkedZone()&0x1f>0 and Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) and ct>0
return c:IsType(TYPE_LINK) and c:IsFaceup() and Duel.IsExistingMatchingCard(s.sfilter,tp,LOCATION_GRAVE,0,1,nil,e,tp,zone) and ct>0
end
function s.sfilter(c,e,tp,zone)
return c:IsSetCard(0x690) and c:IsType(TYPE_MONSTER) and (zone~=0 and c:IsCanBeSpecialSummoned(e,0,tp,false,false,POS_FACEUP,tp,zone)) and c:IsRace(RACE_WARRIOR)
......
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