Commit ab7e9577 authored by tsubaki's avatar tsubaki

2.0.0正式版b version

parent acce78e6
Pipeline #40168 passed with stage
in 8 seconds
No preview for this file type
No preview for this file type
--雾符『毒气花园』 --雾符『毒气花园』
function c25049.initial_effect(c) function c25049.initial_effect(c)
--c:SetUniqueOnField(1,0,25049,LOCATION_ONFIELD)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
...@@ -35,16 +36,15 @@ function c25049.initial_effect(c) ...@@ -35,16 +36,15 @@ function c25049.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
end end
function c25049.tfilter(c) function c25049.tfilter(c)
return c:IsSetCard(0x165) and c:IsAbleToHand() return c:IsSetCard(0x165) and c:IsReleasable()
end end
function c25049.activate(e,tp,eg,ep,ev,re,r,rp) function c25049.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(c25049.tfilter,tp,LOCATION_DECK,0,nil) local g=Duel.GetMatchingGroup(c25049.tfilter,tp,LOCATION_DECK,0,nil)
if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(25049,0)) then if g:GetCount()>0 and Duel.SelectYesNo(tp,aux.Stringid(25049,0)) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RELEASE)
local sg=g:Select(tp,1,1,nil) local sg=g:Select(tp,1,1,nil)
Duel.SendtoHand(sg,nil,REASON_EFFECT) Duel.Release(sg,REASON_EFFECT)
Duel.ConfirmCards(1-tp,sg)
end end
end end
function c25049.tokentg(e,tp,eg,ep,ev,re,r,rp,chk) function c25049.tokentg(e,tp,eg,ep,ev,re,r,rp,chk)
......
...@@ -6,6 +6,7 @@ function c25050.initial_effect(c) ...@@ -6,6 +6,7 @@ function c25050.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_STANDBY_PHASE) e1:SetHintTiming(0,TIMING_STANDBY_PHASE)
e1:SetCountLimit(1,25050)
e1:SetCost(c25050.cost) e1:SetCost(c25050.cost)
e1:SetTarget(c25050.target) e1:SetTarget(c25050.target)
e1:SetOperation(c25050.activate) e1:SetOperation(c25050.activate)
......
...@@ -39,6 +39,7 @@ function c27059.initial_effect(c) ...@@ -39,6 +39,7 @@ function c27059.initial_effect(c)
e6:SetType(EFFECT_TYPE_FIELD) e6:SetType(EFFECT_TYPE_FIELD)
e6:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN) e6:SetCode(EFFECT_TRAP_ACT_IN_SET_TURN)
e6:SetProperty(EFFECT_FLAG_SET_AVAILABLE) e6:SetProperty(EFFECT_FLAG_SET_AVAILABLE)
e6:SetCountLimit(2)
e6:SetRange(LOCATION_MZONE) e6:SetRange(LOCATION_MZONE)
e6:SetTargetRange(LOCATION_SZONE,0) e6:SetTargetRange(LOCATION_SZONE,0)
e6:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x164)) e6:SetTarget(aux.TargetBoolFunction(Card.IsSetCard,0x164))
......
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