Commit bcf8c623 authored by fallenstardust's avatar fallenstardust

fix 24PR-JP004\005 scripts

parent 021267e8
Pipeline #24412 passed with stages
in 2 minutes and 8 seconds
...@@ -7,7 +7,7 @@ function c100213004.initial_effect(c) ...@@ -7,7 +7,7 @@ function c100213004.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCountLimit(1,100213004+EFFECT_COUNT_CODE_OATH) e1:SetCountLimit(1,100213004)
e1:SetCondition(aux.dscon) e1:SetCondition(aux.dscon)
e1:SetTarget(c100213004.target) e1:SetTarget(c100213004.target)
e1:SetOperation(c100213004.activate) e1:SetOperation(c100213004.activate)
...@@ -25,7 +25,7 @@ function c100213004.initial_effect(c) ...@@ -25,7 +25,7 @@ function c100213004.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c100213004.filter(c,tp) function c100213004.filter(c,tp)
return c:IsFaceup() and not c:IsAttack(Duel.GetLP(tp)/2) return c:IsFaceup() and not c:IsAttack(Duel.GetLP(tp))
end end
function c100213004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c100213004.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c100213004.filter(chkc,1-tp) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c100213004.filter(chkc,1-tp) end
...@@ -39,7 +39,7 @@ function c100213004.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -39,7 +39,7 @@ function c100213004.activate(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(Duel.GetLP(1-tp)/2) e1:SetValue(Duel.GetLP(1-tp))
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
...@@ -64,7 +64,7 @@ function c100213004.atkop(e,tp,eg,ep,ev,re,r,rp) ...@@ -64,7 +64,7 @@ function c100213004.atkop(e,tp,eg,ep,ev,re,r,rp)
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(Duel.GetLP(tp)/2) e1:SetValue(Duel.GetLP(tp))
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END)
tc:RegisterEffect(e1) tc:RegisterEffect(e1)
end end
......
--獸累々 --獸累々
function c100213005.initial_effect(c) function c100213005.initial_effect(c)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_POSITION+CATEGORY_DRAW) e1:SetCategory(CATEGORY_POSITION)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE) e1:SetHintTiming(0,TIMINGS_CHECK_MONSTER+TIMING_END_PHASE)
...@@ -23,7 +23,7 @@ end ...@@ -23,7 +23,7 @@ end
function c100213005.checkop(e,tp,eg,ep,ev,re,r,rp) function c100213005.checkop(e,tp,eg,ep,ev,re,r,rp)
local tc=eg:GetFirst() local tc=eg:GetFirst()
while tc do while tc do
tc:RegisterFlagEffect(100213005,RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END,0,1) tc:RegisterFlagEffect(100213005,RESET_EVENT+RESETS_STANDARD-RESET_TEMP_REMOVE+RESET_PHASE+PHASE_END,0,1)
tc=eg:GetNext() tc=eg:GetNext()
end end
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