Commit 05dcb03a authored by POLYMER's avatar POLYMER

fix

parent 3d3d6ecc
--看护院院长弗洛伦斯
function c95101168.initial_effect(c)
aux.AddCodeList(c,95101001)
--pendulum
aux.EnablePendulumAttribute(c)
--set
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
......
--幽灵猎人卡纳奇
function c95101170.initial_effect(c)
aux.AddCodeList(c,95101001)
--pendulum
aux.EnablePendulumAttribute(c)
--set
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
......@@ -20,7 +22,7 @@ function c95101170.initial_effect(c)
e2:SetProperty(EFFECT_FLAG_DELAY)
e2:SetRange(LOCATION_HAND+LOCATION_GRAVE)
e2:SetCountLimit(1,95101170+1)
e2:SetCost(c95101170.spcost)
--e2:SetCost(c95101170.spcost)
e2:SetTarget(c95101170.sptg)
e2:SetOperation(c95101170.spop)
c:RegisterEffect(e2)
......
--雪之少女格尔达
function c95101172.initial_effect(c)
aux.AddCodeList(c,95101001)
--pendulum
aux.EnablePendulumAttribute(c)
--set
local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_TOHAND)
......@@ -27,7 +29,7 @@ function c95101172.setcon(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetFieldGroupCount(tp,LOCATION_MZONE,0)==0
end
function c95101172.penfilter(c)
return aux.IsCodeListed(c,95101001) and not c:IsCode(95101172) and c:IsAttribute(ATTRIBUTE_FIRE) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()
return aux.IsCodeListed(c,95101001) and not c:IsCode(95101172) and c:IsAttribute(ATTRIBUTE_WATER) and c:IsType(TYPE_PENDULUM) and not c:IsForbidden()
end
function c95101172.settg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return (Duel.CheckLocation(tp,LOCATION_PZONE,0) or Duel.CheckLocation(tp,LOCATION_PZONE,1)) and Duel.IsExistingMatchingCard(c95101172.penfilter,tp,LOCATION_DECK,0,1,nil) end
......@@ -57,9 +59,9 @@ function c95101172.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c95101172.spop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_MZONE,1,nil,0x6) and Duel.SelectYesNo(tp,aux.Stringid(95101172,2)) then
if c:IsRelateToEffect(e) and Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 and Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_ONFIELD,1,nil,0x6) and Duel.SelectYesNo(tp,aux.Stringid(95101172,2)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local g=Duel.SelectMatchingCard(Card.IsType,nil,tp,0,LOCATION_MZONE,1,1,nil,0x6)
local g=Duel.SelectMatchingCard(tp,Card.IsType,tp,0,LOCATION_ONFIELD,1,1,nil,0x6)
if g:GetCount()>0 then
Duel.BreakEffect()
Duel.HintSelection(g)
......
......@@ -61,13 +61,13 @@ end
function c95101176.spfilter(c,e,tp,chk)
return c:IsSetCard(0xbbe) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and (chk==0 or aux.NecroValleyFilter()(c))
end
function c95101176.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
function c95101176.spotg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetMZoneCount(tp)>0
and Duel.IsExistingMatchingCard(c95101176.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp,0)
end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
function c95101176.spop(e,tp,eg,ep,ev,re,r,rp)
function c95101176.spoop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetMZoneCount(tp)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local sc=Duel.SelectMatchingCard(tp,c95101176.spfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp,1):GetFirst()
......
......@@ -51,7 +51,7 @@ function c95101180.skipop(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EFFECT_SKIP_TURN)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END,2)
e1:SetReset(RESET_PHASE+PHASE_END,3)
Duel.RegisterEffect(e1,p)
end
function c95101180.spfilter(c,e,tp)
......@@ -80,7 +80,7 @@ function c95101180.spscon(e,tp,eg,ep,ev,re,r,rp)
end
function c95101180.spscost(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsReleasable,tp,LOCATION_MZONE,LOCATION_MZONE,nil)
if chk==0 then return #g==12 and Duel.GetMZoneCount(tp,g>0 end
if chk==0 then return #g==12 and Duel.GetMZoneCount(tp,g)>0 end
Duel.Release(g,REASON_COST)
end
function c95101180.spstg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -47,7 +47,7 @@ function c95101187.thop(e,tp,eg,ep,ev,re,r,rp)
if tc then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
if Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_GRAVE,5,nil,TYPE_MONSTER) and Duel.IsExistingMatchingCard(c95101187.setfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(95101187,2))
if Duel.IsExistingMatchingCard(Card.IsType,tp,0,LOCATION_GRAVE,5,nil,TYPE_MONSTER) and Duel.IsExistingMatchingCard(c95101187.setfilter,tp,LOCATION_DECK,0,1,nil) and Duel.SelectYesNo(tp,aux.Stringid(95101187,2)) then
Duel.BreakEffect()
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SET)
local sc=Duel.SelectMatchingCard(tp,c95101187.setfilter,tp,LOCATION_DECK,0,1,1,nil):GetFirst()
......
......@@ -47,7 +47,7 @@ function c95101189.thcost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.DiscardDeck(1-tp,3,REASON_COST)
end
function c95101189.thfilter(c)
return c:IsSetCard(0xbbb) and not c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
return c:IsSetCard(0xbbb) and c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
end
function c95101189.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c95101189.thfilter,tp,LOCATION_DECK,0,1,nil) end
......
......@@ -38,6 +38,10 @@ function c95101197.drop(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_CARD,0,95101197)
Duel.Draw(tp,1,REASON_EFFECT)
end
function c95101197.spcon(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase()
return ph==PHASE_MAIN1 or ph==PHASE_MAIN2--Duel.IsMainPhase()
end
function c95101197.spcfilter(c,tp)
return aux.IsCodeListed(c,95101001) and c:IsFaceup() and c:IsAbleToHandAsCost() and Duel.GetMZoneCount(tp,c)>0
end
......
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