Commit 54dd2218 authored by Grajade's avatar Grajade

Update c50222.lua

parent e259c4bb
...@@ -8,7 +8,7 @@ function c50222.initial_effect(c) ...@@ -8,7 +8,7 @@ function c50222.initial_effect(c)
e4:SetDescription(aux.Stringid(50222,0)) e4:SetDescription(aux.Stringid(50222,0))
e4:SetType(EFFECT_TYPE_IGNITION) e4:SetType(EFFECT_TYPE_IGNITION)
e4:SetRange(LOCATION_MZONE) e4:SetRange(LOCATION_MZONE)
e4:SetCost(c50222.bcost) e4:SetCost(c50222.bcost)
e4:SetTarget(c50222.btg) e4:SetTarget(c50222.btg)
e4:SetOperation(c50222.bop) e4:SetOperation(c50222.bop)
c:RegisterEffect(e4) c:RegisterEffect(e4)
...@@ -37,13 +37,22 @@ function c50222.bop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,13 +37,22 @@ function c50222.bop(e,tp,eg,ep,ev,re,r,rp)
e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e1:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetValue(aux.tgoval) e1:SetValue(aux.tgoval)
if Duel.GetTurnPlayer()==tp then
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
end
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN)
c:RegisterEffect(e1,true) c:RegisterEffect(e1,true)
--heal --heal
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetCode(EVENT_DAMAGE_STEP_END) e3:SetCode(EVENT_DAMAGE_STEP_END)
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN) if Duel.GetTurnPlayer()==tp then
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e3:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
end
e3:SetCondition(c50222.elccon) e3:SetCondition(c50222.elccon)
e3:SetOperation(c50222.eleop) e3:SetOperation(c50222.eleop)
c:RegisterEffect(e3,tp) c:RegisterEffect(e3,tp)
...@@ -54,7 +63,11 @@ function c50222.bop(e,tp,eg,ep,ev,re,r,rp) ...@@ -54,7 +63,11 @@ function c50222.bop(e,tp,eg,ep,ev,re,r,rp)
e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE) e2:SetProperty(EFFECT_FLAG_SINGLE_RANGE)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetValue(c50222.value) e2:SetValue(c50222.value)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_OPPO_TURN) if Duel.GetTurnPlayer()==tp then
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,2)
else
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_END+RESET_SELF_TURN,1)
end
c:RegisterEffect(e2,true) c:RegisterEffect(e2,true)
end end
function c50222.elccon(e,tp,eg,ep,ev,re,r,rp) function c50222.elccon(e,tp,eg,ep,ev,re,r,rp)
......
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