游戏王残局简化版

Annotation For expansions/script/c7563580.lua
Login

Annotation For expansions/script/c7563580.lua

Origin for each line in expansions/script/c7563580.lua from check-in d21b5167ba:

d21b5167ba 2024-07-26  顽雨沉风: --Emヒグルミ
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.initial_effect(c)
d21b5167ba 2024-07-26  顽雨沉风:   --pendulum summon
d21b5167ba 2024-07-26  顽雨沉风:   aux.EnablePendulumAttribute(c)
d21b5167ba 2024-07-26  顽雨沉风:   --spsummon
d21b5167ba 2024-07-26  顽雨沉风:   local e2=Effect.CreateEffect(c)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_DAMAGE)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetCode(EVENT_DESTROYED)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetRange(LOCATION_PZONE)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetCountLimit(1,7563580)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetCondition(c7563580.spcon1)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetTarget(c7563580.sptg1)
d21b5167ba 2024-07-26  顽雨沉风:   e2:SetOperation(c7563580.spop1)
d21b5167ba 2024-07-26  顽雨沉风:   c:RegisterEffect(e2)
d21b5167ba 2024-07-26  顽雨沉风:   --spsummon
d21b5167ba 2024-07-26  顽雨沉风:   local e3=Effect.CreateEffect(c)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DELAY)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetCode(EVENT_DESTROYED)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetCondition(c7563580.spcon2)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetTarget(c7563580.sptg2)
d21b5167ba 2024-07-26  顽雨沉风:   e3:SetOperation(c7563580.spop2)
d21b5167ba 2024-07-26  顽雨沉风:   c:RegisterEffect(e3)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.cfilter(c,tp)
d21b5167ba 2024-07-26  顽雨沉风:   return c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:IsSetCard(0xc6)
d21b5167ba 2024-07-26  顽雨沉风:     and c:IsPreviousLocation(LOCATION_MZONE) and c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousControler(tp)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.spcon1(e,tp,eg,ep,ev,re,r,rp)
d21b5167ba 2024-07-26  顽雨沉风:   return eg:IsExists(c7563580.cfilter,1,nil,tp)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.sptg1(e,tp,eg,ep,ev,re,r,rp,chk)
d21b5167ba 2024-07-26  顽雨沉风:   if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
d21b5167ba 2024-07-26  顽雨沉风:     and e:GetHandler():IsCanBeSpecialSummoned(e,0,tp,false,false) end
d21b5167ba 2024-07-26  顽雨沉风:   Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,e:GetHandler(),1,0,0)
d21b5167ba 2024-07-26  顽雨沉风:   Duel.SetOperationInfo(0,CATEGORY_DAMAGE,0,0,tp,500)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.spop1(e,tp,eg,ep,ev,re,r,rp)
d21b5167ba 2024-07-26  顽雨沉风:   local c=e:GetHandler()
d21b5167ba 2024-07-26  顽雨沉风:   if not c:IsRelateToEffect(e) then return end
d21b5167ba 2024-07-26  顽雨沉风:   if Duel.SpecialSummon(c,0,tp,tp,false,false,POS_FACEUP)~=0 then
d21b5167ba 2024-07-26  顽雨沉风:     Duel.BreakEffect()
d21b5167ba 2024-07-26  顽雨沉风:     Duel.Damage(tp,500,REASON_EFFECT)
d21b5167ba 2024-07-26  顽雨沉风:   end
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.spcon2(e,tp,eg,ep,ev,re,r,rp)
d21b5167ba 2024-07-26  顽雨沉风:   return bit.band(r,REASON_EFFECT+REASON_BATTLE)~=0 and e:GetHandler():IsPreviousLocation(LOCATION_ONFIELD)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.spfilter(c,e,tp)
d21b5167ba 2024-07-26  顽雨沉风:   return c:IsSetCard(0xc6) and not c:IsCode(7563580) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.sptg2(e,tp,eg,ep,ev,re,r,rp,chk)
d21b5167ba 2024-07-26  顽雨沉风:   if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
d21b5167ba 2024-07-26  顽雨沉风:     and Duel.IsExistingMatchingCard(c7563580.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,nil,e,tp) end
d21b5167ba 2024-07-26  顽雨沉风:   Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_HAND+LOCATION_DECK)
d21b5167ba 2024-07-26  顽雨沉风: end
d21b5167ba 2024-07-26  顽雨沉风: function c7563580.spop2(e,tp,eg,ep,ev,re,r,rp)
d21b5167ba 2024-07-26  顽雨沉风:   if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
d21b5167ba 2024-07-26  顽雨沉风:   Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
d21b5167ba 2024-07-26  顽雨沉风:   local g=Duel.SelectMatchingCard(tp,c7563580.spfilter,tp,LOCATION_HAND+LOCATION_DECK,0,1,1,nil,e,tp)
d21b5167ba 2024-07-26  顽雨沉风:   if g:GetCount()>0 then
d21b5167ba 2024-07-26  顽雨沉风:     Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP)
d21b5167ba 2024-07-26  顽雨沉风:   end
d21b5167ba 2024-07-26  顽雨沉风: end