Commit daa8a3e0 authored by POLYMER's avatar POLYMER

fix

parent 5dfbe6c0
...@@ -122,7 +122,7 @@ end ...@@ -122,7 +122,7 @@ end
function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
local tp=e:GetHandler():GetControler() local tp=e:GetHandler():GetControler()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,true) and e:GetHandler():GetEquipTarget() end and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,true,false) and e:GetHandler():GetEquipTarget() end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler():GetEquipTarget(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,e:GetHandler():GetEquipTarget(),1,0,0)
end end
...@@ -131,7 +131,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp) ...@@ -131,7 +131,7 @@ function cm.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsRelateToEffect(e) and c:GetEquipTarget() then return end if not c:IsRelateToEffect(e) and c:GetEquipTarget() then return end
local tc=c:GetEquipTarget() local tc=c:GetEquipTarget()
if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SpecialSummon(c,0,tp,tp,true,true,POS_FACEUP)~=0 then if Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and Duel.SpecialSummon(c,0,tp,tp,true,false,POS_FACEUP)~=0 then
Duel.Destroy(tc,REASON_EFFECT) Duel.Destroy(tc,REASON_EFFECT)
end end
end end
\ No newline at end of file
...@@ -11,23 +11,23 @@ function c50220025.initial_effect(c) ...@@ -11,23 +11,23 @@ function c50220025.initial_effect(c)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD) e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET) e2:SetCode(EFFECT_CANNOT_BE_EFFECT_TARGET)
e2:SetRange(LOCATION_FZONE) e2:SetRange(LOCATION_SZONE)
e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE) e2:SetProperty(EFFECT_FLAG_IGNORE_IMMUNE)
e2:SetTargetRange(LOCATION_MZONE,0) e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x116)) e2:SetTarget(c50220025.tgtg)
e2:SetValue(aux.tgoval) e2:SetValue(aux.tgoval)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--draw --draw
local e7=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e7:SetCategory(CATEGORY_DRAW) e3:SetCategory(CATEGORY_DRAW)
e7:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e7:SetProperty(EFFECT_FLAG_DELAY) e3:SetProperty(EFFECT_FLAG_DELAY)
e7:SetCode(EVENT_TO_GRAVE) e3:SetCode(EVENT_TO_GRAVE)
e7:SetCountLimit(1,50220026) e3:SetCountLimit(1,50220026)
e7:SetCondition(c50220025.drcon) e3:SetCondition(c50220025.drcon)
e7:SetTarget(c50220025.drtg) e3:SetTarget(c50220025.drtg)
e7:SetOperation(c50220025.drop) e3:SetOperation(c50220025.drop)
c:RegisterEffect(e7) c:RegisterEffect(e3)
end end
function c50220025.setfilter(c) function c50220025.setfilter(c)
return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x116) and c:IsSSetable() return c:IsType(TYPE_SPELL+TYPE_TRAP) and c:IsSetCard(0x116) and c:IsSSetable()
...@@ -72,6 +72,9 @@ function c50220025.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -72,6 +72,9 @@ function c50220025.activate(e,tp,eg,ep,ev,re,r,rp)
end end
end end
end end
function c50220025.tgtg(e,c)
return c:IsSetCard(0x116) and c:IsType(TYPE_LINK)
end
function c50220025.drcon(e,tp,eg,ep,ev,re,r,rp) function c50220025.drcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD) return e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
end end
......
--真纯的原型·阿纪尔 --真纯的原型·阿纪尔
Duel.LoadScript("c60002382.lua") Duel.LoadScript("c60000000.lua")
local cm,m,o=GetID() local cm,m,o=GetID()
function cm.initial_effect(c) function cm.initial_effect(c)
--public --public
...@@ -42,7 +42,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -42,7 +42,7 @@ function cm.operation(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local num=Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0) local num=Duel.GetFieldGroupCount(tp,LOCATION_EXTRA,0)
if num>=20 then if num>=20 then
FusionA.Change(c,m+1) MerlinTC.Change(c,m+1)
else else
local gm=60002238 local gm=60002238
local tc1=Duel.CreateToken(tp,gm) local tc1=Duel.CreateToken(tp,gm)
......
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