Commit faa75765 authored by GuGu's avatar GuGu

Update c22271102.lua 地图配套+category修正

parent 1a104da3
Pipeline #21704 passed with stage
in 1 minute and 3 seconds
...@@ -5,7 +5,7 @@ function c22271102.initial_effect(c) ...@@ -5,7 +5,7 @@ function c22271102.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(22271102,0)) e1:SetDescription(aux.Stringid(22271102,0))
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCategory(CATEGORY_RECOVER) e1:SetCategory(CATEGORY_RECOVER+CATEGORY_DRAW)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
--e1:SetCountLimit(1,22271102+EFFECT_COUNT_CODE_OATH) --e1:SetCountLimit(1,22271102+EFFECT_COUNT_CODE_OATH)
e1:SetCondition(c22271102.condition) e1:SetCondition(c22271102.condition)
...@@ -42,6 +42,8 @@ function c22271102.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -42,6 +42,8 @@ function c22271102.target(e,tp,eg,ep,ev,re,r,rp,chk)
end end
function c22271102.activate(e,tp,eg,ep,ev,re,r,rp) function c22271102.activate(e,tp,eg,ep,ev,re,r,rp)
local dg=Group.CreateGroup() local dg=Group.CreateGroup()
local ev=Duel.GetCurrentChain()-1
if ev<1 then return end
for i=1,ev do for i=1,ev do
local te=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT) local te=Duel.GetChainInfo(i,CHAININFO_TRIGGERING_EFFECT)
if te:IsHasType(EFFECT_TYPE_ACTIVATE) and te:GetHandler():IsCode(22271101) then if te:IsHasType(EFFECT_TYPE_ACTIVATE) and te:GetHandler():IsCode(22271101) then
......
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