Commit 389aac45 authored by mallu11's avatar mallu11 Committed by nekrozar

fix オルターガイスト・プロトコル (#1225)

* fix オルターガイスト・プロトコル

Fix this:If your opponent activates a monster's effect in damage step,this card can activate without using its second effect.(In fact,if you want to activate this card in damage step,you must use its effect when you activate it).

* fix
parent f25108db
......@@ -5,6 +5,7 @@ function c27541563.initial_effect(c)
e1:SetDescription(aux.Stringid(27541563,0))
e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCondition(c27541563.condition)
c:RegisterEffect(e1)
--negate
local e2=Effect.CreateEffect(c)
......@@ -37,6 +38,9 @@ function c27541563.initial_effect(c)
e5:SetValue(c27541563.effectfilter)
c:RegisterEffect(e5)
end
function c27541563.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c27541563.discon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return ep==1-tp and re:IsActiveType(TYPE_MONSTER) and Duel.IsChainNegatable(ev)
......
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