Commit 7985153a authored by REIKAI's avatar REIKAI 💬

update

parent 33d30cbe
...@@ -60,7 +60,7 @@ function cm.initial_effect(c) ...@@ -60,7 +60,7 @@ function cm.initial_effect(c)
e4:SetCode(EFFECT_CANNOT_TO_DECK) e4:SetCode(EFFECT_CANNOT_TO_DECK)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e4:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e4:SetTargetRange(1,1) e4:SetTargetRange(LOCATION_ONFIELD,LOCATION_ONFIELD)
e4:SetTarget(aux.TRUE) e4:SetTarget(aux.TRUE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
...@@ -53,8 +53,15 @@ function c77765002.initial_effect(c) ...@@ -53,8 +53,15 @@ function c77765002.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local function KaguyaFilter(c,e,tp,cc) local function KaguyaFilter(c,e,tp,cc)
local p=c:GetControler() local p=c:GetControler()
local tc=Senya.GetDFCBackSideCard(cc) local code=c.dfc_front_side
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 and tc:CheckEquipTarget(c) Duel.DisableActionCheck(true)
local tc=Duel.CreateToken(tp,code)
Duel.DisableActionCheck(false)
if tc then
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c)
else
return false
end
end end
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE) e3:SetType(EFFECT_TYPE_TRIGGER_F+EFFECT_TYPE_SINGLE)
......
...@@ -70,8 +70,15 @@ function cm.initial_effect(c) ...@@ -70,8 +70,15 @@ function cm.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local function KaguyaFilter(c,e,tp,cc) local function KaguyaFilter(c,e,tp,cc)
local p=c:GetControler() local p=c:GetControler()
local tc=Senya.GetDFCBackSideCard(cc) local code=c.dfc_front_side
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 and tc:CheckEquipTarget(c) Duel.DisableActionCheck(true)
local tc=Duel.CreateToken(tp,code)
Duel.DisableActionCheck(false)
if tc then
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c)
else
return false
end
end end
local function DifficultyFilter(c,e,tp) local function DifficultyFilter(c,e,tp)
return Kaguya.IsDifficulty(c) and Senya.IsDFCTransformable(c) and Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c) return Kaguya.IsDifficulty(c) and Senya.IsDFCTransformable(c) and Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c)
......
...@@ -8,11 +8,18 @@ function cm.initial_effect(c) ...@@ -8,11 +8,18 @@ function cm.initial_effect(c)
end end
local function KaguyaFilter(c,e,tp,cc) local function KaguyaFilter(c,e,tp,cc)
local p=c:GetControler() local p=c:GetControler()
local tc=Senya.GetDFCBackSideCard(cc) local code=c.dfc_front_side
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()) Duel.DisableActionCheck(true)
local tc=Duel.CreateToken(tp,code)
Duel.DisableActionCheck(false)
if tc then
return c:IsFaceup() and c:IsCode(77765001) and Duel.GetLocationCount(p,LOCATION_SZONE,tp)>0 --and tc:CheckEquipTarget(c)
else
return false
end
end end
local function DifficultyFilter(c,e,tp) local function DifficultyFilter(c,e,tp)
return Kaguya.IsDifficulty(c) and c:IsFaceup() and Senya.IsDFCTransformable(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)
end end
local target_list={ local target_list={
function(e,tp,eg,ep,ev,re,r,rp,chk) function(e,tp,eg,ep,ev,re,r,rp,chk)
......
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