Commit 963f0fa6 authored by REIKAI's avatar REIKAI 💬

fix trans

parent 8fa727d8
...@@ -71,7 +71,7 @@ function c77765002.initial_effect(c) ...@@ -71,7 +71,7 @@ function c77765002.initial_effect(c)
local c=e:GetHandler() local c=e:GetHandler()
local g=e:GetLabelObject():GetLabelObject() local g=e:GetLabelObject():GetLabelObject()
local tg=g:Filter(function(c) local tg=g:Filter(function(c)
return Senya.IsDFCTransformable(c) and Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c) return Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c)
end,nil) end,nil)
if chk==0 then return #tg>0 end if chk==0 then return #tg>0 end
Duel.SetOperationInfo(0,CATEGORY_EQUIP,tg,#tg,0,0) Duel.SetOperationInfo(0,CATEGORY_EQUIP,tg,#tg,0,0)
...@@ -80,7 +80,7 @@ function c77765002.initial_effect(c) ...@@ -80,7 +80,7 @@ function c77765002.initial_effect(c)
local c=e:GetHandler() local c=e:GetHandler()
local g=e:GetLabelObject():GetLabelObject() local g=e:GetLabelObject():GetLabelObject()
local tg=g:Filter(function(c) local tg=g:Filter(function(c)
return Senya.IsDFCTransformable(c) and Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c) return Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c)
end,nil) end,nil)
for cc in aux.Next(tg) do for cc in aux.Next(tg) do
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
......
...@@ -81,7 +81,7 @@ function cm.initial_effect(c) ...@@ -81,7 +81,7 @@ function cm.initial_effect(c)
end 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 Duel.IsExistingMatchingCard(KaguyaFilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,e,tp,c)
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)
......
...@@ -19,7 +19,7 @@ function cm.initial_effect(c) ...@@ -19,7 +19,7 @@ function cm.initial_effect(c)
end 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 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)
...@@ -98,6 +98,7 @@ function cm.initial_effect(c) ...@@ -98,6 +98,7 @@ function cm.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e1:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e1:SetCountLimit(1,m)
e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp) e1:SetCondition(function(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(function(c) return Duel.IsExistingMatchingCard(function(c)
return Kaguya.IsDifficulty(c) and c:IsFaceup() return Kaguya.IsDifficulty(c) and c:IsFaceup()
......
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