Commit 96b96dca authored by salix5's avatar salix5

fix CiNo.1000 夢幻虚光神ヌメロニアス・ヌメロニア

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=23249&keyword=&tag=-1
The winning condition is a part of the 1st effect.
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=23247&keyword=&tag=-1
The 1st effect will apply after temp remove.
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=23250&keyword=&tag=-1
The timing should be EVENT_TURN_END.
parent b1720e17
......@@ -30,6 +30,7 @@ function c15862758.condition(e,tp,eg,ep,ev,re,r,rp)
end
function c15862758.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local turn=c:GetTurnID()
--100,000 ATK
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
......@@ -38,7 +39,7 @@ function c15862758.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetRange(LOCATION_MZONE)
e1:SetCondition(c15862758.atkcon)
e1:SetValue(100000)
e1:SetReset(RESET_EVENT+RESETS_STANDARD)
e1:SetReset(RESET_EVENT+RESETS_WITHOUT_TEMP_REMOVE)
c:RegisterEffect(e1)
local e2=e1:Clone()
e2:SetCode(EFFECT_UPDATE_DEFENSE)
......@@ -50,7 +51,8 @@ function c15862758.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetRange(LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetCondition(c15862758.effcon)
e2:SetReset(RESET_EVENT+RESETS_STANDARD)
e2:SetLabel(turn)
e2:SetReset(RESET_EVENT+RESETS_WITHOUT_TEMP_REMOVE)
c:RegisterEffect(e2)
local e3=e2:Clone()
e3:SetCode(EFFECT_MUST_ATTACK_MONSTER)
......@@ -59,19 +61,19 @@ function c15862758.operation(e,tp,eg,ep,ev,re,r,rp)
--Win Condition
local e4=Effect.CreateEffect(c)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e4:SetRange(LOCATION_MZONE)
e4:SetCode(EVENT_PHASE+PHASE_END)
e4:SetCode(EVENT_TURN_END)
e4:SetCondition(c15862758.wincon)
e4:SetOperation(c15862758.winop)
e4:SetReset(RESET_EVENT+RESETS_STANDARD)
e4:SetLabel(turn)
e4:SetReset(RESET_EVENT+RESETS_WITHOUT_TEMP_REMOVE)
c:RegisterEffect(e4)
end
function c15862758.atkcon(e)
return Duel.GetTurnPlayer()==1-e:GetHandlerPlayer()
end
function c15862758.effcon(e)
return Duel.GetTurnCount()>=e:GetHandler():GetTurnID()+1
return Duel.GetTurnCount()>=e:GetLabel()+1
end
function c15862758.atklimit(e,c)
return c==e:GetHandler()
......
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