Commit 3d022be6 authored by Tachibana's avatar Tachibana

eme

parent 9bcca274
Pipeline #8992 passed with stages
in 33 minutes and 59 seconds
...@@ -12,7 +12,7 @@ function cm.initial_effect(c) ...@@ -12,7 +12,7 @@ function cm.initial_effect(c)
e1:SetRange(LOCATION_EXTRA) e1:SetRange(LOCATION_EXTRA)
e1:SetCondition(cm.lcon) e1:SetCondition(cm.lcon)
e1:SetTarget(cm.ltg) e1:SetTarget(cm.ltg)
e1:SetOperation(Auxiliary.LinkOperation(nil,2,5,cm.gf)) e1:SetOperation(Auxiliary.LinkOperation(nil,2,4,cm.gf))
e1:SetValue(SUMMON_TYPE_LINK) e1:SetValue(SUMMON_TYPE_LINK)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--direct attack --direct attack
...@@ -68,8 +68,8 @@ end ...@@ -68,8 +68,8 @@ end
function cm.Linkfilter2(c,lc) function cm.Linkfilter2(c,lc)
return c:IsFaceup() and c:IsCanBeLinkMaterial(lc) return c:IsFaceup() and c:IsCanBeLinkMaterial(lc)
end end
function cm.GetLinkMaterials(tp,f,lc,e) function cm.GetLinkMaterials(tp,f,lc)
local mg=Duel.GetMatchingGroup(Auxiliary.LConditionFilter,tp,LOCATION_MZONE,0,nil,cm.Linkfilter,lc,e) local mg=Duel.GetMatchingGroup(Auxiliary.LConditionFilter,tp,LOCATION_MZONE,0,nil,cm.Linkfilter,lc)
local mg2=Duel.GetMatchingGroup(Auxiliary.LExtraFilter,tp,LOCATION_HAND+LOCATION_SZONE,LOCATION_ONFIELD,nil,cm.Linkfilter,lc,tp) local mg2=Duel.GetMatchingGroup(Auxiliary.LExtraFilter,tp,LOCATION_HAND+LOCATION_SZONE,LOCATION_ONFIELD,nil,cm.Linkfilter,lc,tp)
local mg3=Duel.GetMatchingGroup(cm.Linkfilter2,tp,0,LOCATION_MZONE,nil,lc) local mg3=Duel.GetMatchingGroup(cm.Linkfilter2,tp,0,LOCATION_MZONE,nil,lc)
if mg2:GetCount()>0 then mg:Merge(mg2) end if mg2:GetCount()>0 then mg:Merge(mg2) end
...@@ -100,7 +100,7 @@ function cm.seacon(e,tp,eg,ep,ev,re,r,rp) ...@@ -100,7 +100,7 @@ function cm.seacon(e,tp,eg,ep,ev,re,r,rp)
return rp==tp and rk.check(re:GetHandler(),"FAIRY") return rp==tp and rk.check(re:GetHandler(),"FAIRY")
end end
function cm.seatgf(c,rc) function cm.seatgf(c,rc)
return rk.check(rc,"FAIRY") and not c:IsCode(rc:GetCode()) and c:IsAbleToHand() return rk.check(c,"FAIRY") and not c:IsCode(rc:GetCode()) and c:IsAbleToHand()
end end
function cm.seatg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.seatg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(cm.seatgf,tp,LOCATION_DECK,0,1,nil,re:GetHandler()) end if chk==0 then return Duel.IsExistingMatchingCard(cm.seatgf,tp,LOCATION_DECK,0,1,nil,re:GetHandler()) end
......
...@@ -102,7 +102,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -102,7 +102,7 @@ function cm.cost(e,tp,eg,ep,ev,re,r,rp,chk)
return true return true
end end
function cm.rmc(c,mc) function cm.rmc(c,mc)
return (c:IsType(TYPE_EFFECT) or not c:IsAttribute(mc:GetAttribute())) and (c:IsRace(RACE_DRAGON) or (not c:IsLocation(LOCATION_MZONE) and c:GetOriginalRace()&RACE_DRAGON~=0)) and c:IsReleasable() return (c:GetOriginalType()&TYPE_EFFECT~=0 or c:GetOriginalAttribute()&mc:GetAttribute()==0) and (c:IsRace(RACE_DRAGON) or (not c:IsLocation(LOCATION_MZONE) and c:GetOriginalRace()&RACE_DRAGON~=0)) and c:IsReleasable()
end end
function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then if chk==0 then
......
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