Commit 7c918ad9 authored by zengsxing's avatar zengsxing Committed by GitHub

Update utility.lua (#2260)

为Auxiliary.sumreg添加了变里侧重置和一时除外重置
为灵魂怪兽添加了一时除外重置
parent cc2a46b7
...@@ -180,7 +180,7 @@ function Auxiliary.SpiritReturnReg(e,tp,eg,ep,ev,re,r,rp) ...@@ -180,7 +180,7 @@ function Auxiliary.SpiritReturnReg(e,tp,eg,ep,ev,re,r,rp)
e1:SetCode(EVENT_PHASE+PHASE_END) e1:SetCode(EVENT_PHASE+PHASE_END)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetReset(RESET_EVENT+0xd6e0000+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+0xd7e0000+RESET_PHASE+PHASE_END)
e1:SetCondition(Auxiliary.SpiritReturnConditionForced) e1:SetCondition(Auxiliary.SpiritReturnConditionForced)
e1:SetTarget(Auxiliary.SpiritReturnTargetForced) e1:SetTarget(Auxiliary.SpiritReturnTargetForced)
e1:SetOperation(Auxiliary.SpiritReturnOperation) e1:SetOperation(Auxiliary.SpiritReturnOperation)
...@@ -704,7 +704,7 @@ function Auxiliary.sumreg(e,tp,eg,ep,ev,re,r,rp) ...@@ -704,7 +704,7 @@ function Auxiliary.sumreg(e,tp,eg,ep,ev,re,r,rp)
local code=e:GetLabel() local code=e:GetLabel()
while tc do while tc do
if tc:GetOriginalCode()==code then if tc:GetOriginalCode()==code then
tc:RegisterFlagEffect(code,RESET_EVENT+0x1ec0000+RESET_PHASE+PHASE_END,0,1) tc:RegisterFlagEffect(code,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1)
end end
tc=eg:GetNext() tc=eg:GetNext()
end 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