Commit 6abd7ef6 authored by POLYMER's avatar POLYMER

fix

parent d624cd03
--密探蜘蛛 --欲念魅魔
function c10105555.initial_effect(c) function c10105555.initial_effect(c)
--Atk update --Atk update
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE) e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE)
e1:SetValue(1) e1:SetValue(1)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--control --control
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_CONTROL) e2:SetCategory(CATEGORY_CONTROL)
e2:SetDescription(aux.Stringid(10105555,0))
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetProperty(EFFECT_FLAG_CARD_TARGET)
e2:SetCode(EVENT_TO_GRAVE) e2:SetCode(EVENT_TO_GRAVE)
e2:SetCondition(c10105555.condition) e2:SetCondition(c10105555.condition)
e2:SetTarget(c10105555.target)
e2:SetOperation(c10105555.operation) e2:SetOperation(c10105555.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
...@@ -25,16 +22,11 @@ end ...@@ -25,16 +22,11 @@ end
function c10105555.filter(c) function c10105555.filter(c)
return c:IsAttackPos() and c:IsControlerCanBeChanged() return c:IsAttackPos() and c:IsControlerCanBeChanged()
end end
function c10105555.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(1-tp) and c10105555.filter(chkc) end
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
local g=Duel.SelectTarget(tp,c10105555.filter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_CONTROL,g,g:GetCount(),0,0)
end
function c10105555.operation(e,tp,eg,ep,ev,re,r,rp) function c10105555.operation(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_CONTROL)
if tc and tc:IsAttackPos() and tc:IsRelateToEffect(e) then local sg=Duel.SelectMatchingCard(tp,c10105555.filter,tp,0,LOCATION_MZONE,1,1,nil)
Duel.GetControl(tc,tp) if #sg>0 then
Duel.HintSelection(sg)
Duel.GetControl(sg:GetFirst(),tp)
end end
end end
\ No newline at end of file
--欲望的故乡
function c10105561.initial_effect(c) function c10105561.initial_effect(c)
--spsummon --spsummon
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(10105561,0))
e1:SetCategory(CATEGORY_SPECIAL_SUMMON) e1:SetCategory(CATEGORY_SPECIAL_SUMMON)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCountLimit(1,10105561) e1:SetCountLimit(1,10105561+EFFECT_COUNT_CODE_OATH)
e1:SetTarget(c10105561.sptg) e1:SetTarget(c10105561.sptg)
e1:SetOperation(c10105561.spop) e1:SetOperation(c10105561.spop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c10105561.spfilter(c,e,tp) function c10105561.spfilter(c,e,tp)
return c:IsSetCard(0x7cdd) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x7cdd) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
......
...@@ -110,12 +110,9 @@ function cm.drcon(e,tp,eg,ep,ev,re,r,rp) ...@@ -110,12 +110,9 @@ function cm.drcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(cm.thfilter,1,nil,tp) return eg:IsExists(cm.thfilter,1,nil,tp)
end end
function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk) function cm.drtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end if chk==0 then return e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0 end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
end end
function cm.fit2(c)
return c:IsAbleToDeck() and c:IsRace(RACE_ZOMBIE)
end
function cm.drop(e,tp,eg,ep,ev,re,r,rp) function cm.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(e:GetHandler(),0,tp,tp,false,false,POS_FACEUP)
end end
\ No newline at end of file
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