游戏王残局简化版

Annotation For expansions/script/c896311392.lua
Login

Annotation For expansions/script/c896311392.lua

Origin for each line in expansions/script/c896311392.lua from check-in 34aee2c41a:

34aee2c41a 2024-07-21  顽雨沉风: --ファイアウォール・ドラゴン
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.initial_effect(c)
34aee2c41a 2024-07-21  顽雨沉风: 	--link summon
34aee2c41a 2024-07-21  顽雨沉风: 	aux.AddLinkProcedure(c,nil,2)
34aee2c41a 2024-07-21  顽雨沉风: 	c:EnableReviveLimit()
34aee2c41a 2024-07-21  顽雨沉风: 	--to hand
34aee2c41a 2024-07-21  顽雨沉风: 	local e1=Effect.CreateEffect(c)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetDescription(aux.Stringid(896311392,0))
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetCategory(CATEGORY_TOHAND)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetType(EFFECT_TYPE_QUICK_O)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_NO_TURN_RESET)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetRange(LOCATION_MZONE)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetCountLimit(1)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetCode(EVENT_FREE_CHAIN)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetTarget(c896311392.thtg)
34aee2c41a 2024-07-21  顽雨沉风: 	e1:SetOperation(c896311392.thop)
34aee2c41a 2024-07-21  顽雨沉风: 	c:RegisterEffect(e1)
34aee2c41a 2024-07-21  顽雨沉风: 	--special summon
34aee2c41a 2024-07-21  顽雨沉风: 	local e2=Effect.CreateEffect(c)
34aee2c41a 2024-07-21  顽雨沉风: 	e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
34aee2c41a 2024-07-21  顽雨沉风: 	e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
34aee2c41a 2024-07-21  顽雨沉风: 	e2:SetRange(LOCATION_MZONE)
34aee2c41a 2024-07-21  顽雨沉风: 	e2:SetCode(EVENT_BATTLE_DESTROYED)
34aee2c41a 2024-07-21  顽雨沉风: 	e2:SetCondition(c896311392.regcon)
34aee2c41a 2024-07-21  顽雨沉风: 	e2:SetOperation(c896311392.regop)
34aee2c41a 2024-07-21  顽雨沉风: 	c:RegisterEffect(e2)
34aee2c41a 2024-07-21  顽雨沉风: 	local e3=e2:Clone()
34aee2c41a 2024-07-21  顽雨沉风: 	e3:SetCode(EVENT_TO_GRAVE)
34aee2c41a 2024-07-21  顽雨沉风: 	e3:SetCondition(c896311392.regcon2)
34aee2c41a 2024-07-21  顽雨沉风: 	c:RegisterEffect(e3)
34aee2c41a 2024-07-21  顽雨沉风: 	local e4=Effect.CreateEffect(c)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetDescription(aux.Stringid(896311392,1))
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetCategory(CATEGORY_SPECIAL_SUMMON)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetProperty(EFFECT_FLAG_SINGLE_RANGE+EFFECT_FLAG_DELAY+EFFECT_FLAG_DAMAGE_STEP)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetCode(EVENT_CUSTOM+896311392)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetRange(LOCATION_MZONE)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetTarget(c896311392.sptg)
34aee2c41a 2024-07-21  顽雨沉风: 	e4:SetOperation(c896311392.spop)
34aee2c41a 2024-07-21  顽雨沉风: 	c:RegisterEffect(e4)
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.thfilter(c)
34aee2c41a 2024-07-21  顽雨沉风: 	return c:IsType(TYPE_MONSTER) and c:IsAbleToHand()
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
34aee2c41a 2024-07-21  顽雨沉风: 	local c=e:GetHandler()
34aee2c41a 2024-07-21  顽雨沉风: 	local ct=c:GetMutualLinkedGroupCount()
34aee2c41a 2024-07-21  顽雨沉风: 	if chkc then return chkc:IsLocation(LOCATION_MZONE+LOCATION_GRAVE) and c896311392.thfilter(chkc) end
34aee2c41a 2024-07-21  顽雨沉风: 	if chk==0 then return ct>0 and Duel.IsExistingTarget(c896311392.thfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,nil) end
34aee2c41a 2024-07-21  顽雨沉风: 	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
34aee2c41a 2024-07-21  顽雨沉风: 	local g=Duel.SelectTarget(tp,c896311392.thfilter,tp,LOCATION_MZONE+LOCATION_GRAVE,LOCATION_MZONE+LOCATION_GRAVE,1,ct,nil)
34aee2c41a 2024-07-21  顽雨沉风: 	Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,g:GetCount(),0,0)
34aee2c41a 2024-07-21  顽雨沉风: 	c:RegisterFlagEffect(0,RESET_EVENT+RESETS_STANDARD,EFFECT_FLAG_CLIENT_HINT,1,0,aux.Stringid(896311392,2))
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.thop(e,tp,eg,ep,ev,re,r,rp)
34aee2c41a 2024-07-21  顽雨沉风: 	local g=Duel.GetChainInfo(0,CHAININFO_TARGET_CARDS):Filter(Card.IsRelateToEffect,nil,e)
34aee2c41a 2024-07-21  顽雨沉风: 	Duel.SendtoHand(g,nil,REASON_EFFECT)
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.cfilter(c,tp,zone)
34aee2c41a 2024-07-21  顽雨沉风: 	local seq=c:GetPreviousSequence()
34aee2c41a 2024-07-21  顽雨沉风: 	if c:GetPreviousControler()~=tp then seq=seq+16 end
34aee2c41a 2024-07-21  顽雨沉风: 	return c:IsPreviousLocation(LOCATION_MZONE) and bit.extract(zone,seq)~=0
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.regcon(e,tp,eg,ep,ev,re,r,rp)
34aee2c41a 2024-07-21  顽雨沉风: 	return eg:IsExists(c896311392.cfilter,1,nil,tp,e:GetHandler():GetLinkedZone())
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.cfilter2(c,tp,zone)
34aee2c41a 2024-07-21  顽雨沉风: 	return not c:IsReason(REASON_BATTLE) and c896311392.cfilter(c,tp,zone)
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.regcon2(e,tp,eg,ep,ev,re,r,rp)
34aee2c41a 2024-07-21  顽雨沉风: 	return eg:IsExists(c896311392.cfilter2,1,nil,tp,e:GetHandler():GetLinkedZone())
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.regop(e,tp,eg,ep,ev,re,r,rp)
34aee2c41a 2024-07-21  顽雨沉风: 	Duel.RaiseSingleEvent(e:GetHandler(),EVENT_CUSTOM+896311392,e,0,tp,0,0)
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
34aee2c41a 2024-07-21  顽雨沉风: 	if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
34aee2c41a 2024-07-21  顽雨沉风: 		and Duel.IsExistingMatchingCard(Card.IsCanBeSpecialSummoned,tp,LOCATION_HAND,0,1,nil,e,0,tp,false,false) end
34aee2c41a 2024-07-21  顽雨沉风: 	Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND)
34aee2c41a 2024-07-21  顽雨沉风: end
34aee2c41a 2024-07-21  顽雨沉风: function c896311392.spop(e,tp,eg,ep,ev,re,r,rp)
34aee2c41a 2024-07-21  顽雨沉风: 	if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
34aee2c41a 2024-07-21  顽雨沉风: 	Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
34aee2c41a 2024-07-21  顽雨沉风: 	local g=Duel.SelectMatchingCard(tp,Card.IsCanBeSpecialSummoned,tp,LOCATION_HAND,0,1,1,nil,e,0,tp,false,false)
34aee2c41a 2024-07-21  顽雨沉风: 	if g:GetCount()>0 then
34aee2c41a 2024-07-21  顽雨沉风: 		Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
34aee2c41a 2024-07-21  顽雨沉风: 	end
34aee2c41a 2024-07-21  顽雨沉风: end