Commit 30d69d6f authored by Huangnan's avatar Huangnan

fix

parent cf5276af
--洛天依「日面」
EFFECT_FLAG_OWNER_RELATE = 0x1000000
function c21185825.initial_effect(c)
c:SetSPSummonOnce(21185825)
c:EnableReviveLimit()
......@@ -74,16 +73,13 @@ end
function c21185825.gf(c,lc,sg)
return sg and c:IsCanBeLinkMaterial(lc) and c:IsLinkType(TYPE_LINK) and c:GetSequence()>=5
end
function c21185825.to222(c)
return not c:IsLinkType(TYPE_EFFECT)
end
function c21185825.LCheckGoal(sg,tp,lc,lmat)
return #sg>=4
and sg:IsExists(c21185825.gf,1,nil,lc,sg)
and sg:CheckWithSumEqual(aux.GetLinkCount,5,#sg,#sg)
and Duel.GetLocationCountFromEx(tp,tp,sg,lc)>0
and not sg:IsExists(aux.LUncompatibilityFilter,1,nil,sg,lc,tp)
and not sg:IsExists(c21185825.to222,1,nil)
and (not lmat or sg:IsContains(lmat))
end
function c21185825.LCheckGoal2(sg,tp,lc,lmat)
return #sg==1
......@@ -176,7 +172,7 @@ function c21185825.op(e,tp,eg,ep,ev,re,r,rp)
if tc then
if not Duel.Equip(tp,tc,c) then return end
local e1=Effect.CreateEffect(c)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT+EFFECT_FLAG_OWNER_RELATE)
e1:SetProperty(0x1002000)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_EQUIP_LIMIT)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
......@@ -186,7 +182,7 @@ function c21185825.op(e,tp,eg,ep,ev,re,r,rp)
if atk>0 then
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_EQUIP)
e2:SetProperty(EFFECT_FLAG_OWNER_RELATE+EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetProperty(0x1000000+EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetValue(-math.ceil(atk/2))
......
......@@ -107,7 +107,7 @@ function s.chainreg(e, tp, eg, ep, ev, re, r, rp)
end
function s.drcon(e, tp, eg, ep, ev, re, r, rp)
local c=e:GetHandler()
return Duel.GetTurnPlayer()~=tp and c:IsPreviousControler(tp) and e:GetHandler():GetFlagEffect(id) ~= 0
return Duel.GetTurnPlayer()~=tp and c:IsPreviousControler(tp) and rp==1-tp and e:GetHandler():GetFlagEffect(id) ~= 0
end
function s.drop(e, tp, eg, ep, ev, re, r, rp)
Duel.Hint(HINT_CARD, 0, id)
......
......@@ -6,7 +6,7 @@ function cm.initial_effect(c)
aux.AddCodeList(c,53718002)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(m,0))
e1:SetCategory(CATEGORY_TOHAND+CATEGORY_TOGRAVE)
e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOHAND+CATEGORY_DECKDES)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetRange(LOCATION_HAND)
......
......@@ -101,7 +101,7 @@ end
function cm.drcost(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.IsExistingMatchingCard(cm.tdfilter,tp,0xff,0,3,e:GetHandler()) end
local g=Duel.SelectMatchingCard(tp,cm.tdfilter,tp,tp,0xff,0,3,3,nil)
local g=Duel.SelectMatchingCard(tp,cm.tdfilter,tp,0xff,0,3,3,nil)
Duel.SendtoDeck(g,nil,REASON_COST)
end
function cm.drtg(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