Commit b7158828 authored by REIKAI's avatar REIKAI 💬

fix equit

parents 7985153a e8817f10
Pipeline #23925 canceled with stages
in 1 minute and 12 seconds
...@@ -58,7 +58,11 @@ function c77765002.initial_effect(c) ...@@ -58,7 +58,11 @@ function c77765002.initial_effect(c)
local tc=Duel.CreateToken(tp,code) local tc=Duel.CreateToken(tp,code)
Duel.DisableActionCheck(false) Duel.DisableActionCheck(false)
if tc then if tc then
<<<<<<< HEAD
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c) return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c)
=======
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 and tc:CheckEquipTarget(c)
>>>>>>> e8817f1011ef690e10f70938650b5ef260ef8722
else else
return false return false
end end
......
...@@ -75,7 +75,11 @@ function cm.initial_effect(c) ...@@ -75,7 +75,11 @@ function cm.initial_effect(c)
local tc=Duel.CreateToken(tp,code) local tc=Duel.CreateToken(tp,code)
Duel.DisableActionCheck(false) Duel.DisableActionCheck(false)
if tc then if tc then
<<<<<<< HEAD
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c) return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c)
=======
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 and tc:CheckEquipTarget(c)
>>>>>>> e8817f1011ef690e10f70938650b5ef260ef8722
else else
return false return false
end end
......
...@@ -13,10 +13,18 @@ function cm.initial_effect(c) ...@@ -13,10 +13,18 @@ function cm.initial_effect(c)
local tc=Duel.CreateToken(tp,code) local tc=Duel.CreateToken(tp,code)
Duel.DisableActionCheck(false) Duel.DisableActionCheck(false)
if tc then if tc then
<<<<<<< HEAD
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c) return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c)
else else
return false return false
end end
=======
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 and tc:CheckEquipTarget(c)
else
return false
end
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 and tc:CheckEquipTarget(c) and (cc:IsControler(c:GetControler()) or c:IsAbleToChangeControler())
>>>>>>> e8817f1011ef690e10f70938650b5ef260ef8722
end end
local function DifficultyFilter(c,e,tp) local function DifficultyFilter(c,e,tp)
return Kaguya.IsDifficulty(c) and c:IsFaceup() and c and Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c) return Kaguya.IsDifficulty(c) and c:IsFaceup() and c and Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c)
......
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