Commit fb847ef3 authored by mercury233's avatar mercury233 Committed by GitHub

fix 神の忠告

activate in hand
parent 5cc31092
...@@ -30,9 +30,14 @@ end ...@@ -30,9 +30,14 @@ end
function c92512625.cfilter(c) function c92512625.cfilter(c)
return c:IsFacedown() and c:GetSequence()<5 return c:IsFacedown() and c:GetSequence()<5
end end
function c92512625.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
return c:IsLocation(LOCATION_SZONE) and c:IsFacedown()
and not Duel.IsExistingMatchingCard(c92512625.cfilter,tp,LOCATION_SZONE,0,1,c)
end
function c92512625.condition1(e,tp,eg,ep,ev,re,r,rp) function c92512625.condition1(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentChain()==0 return Duel.GetCurrentChain()==0
and not Duel.IsExistingMatchingCard(c92512625.cfilter,tp,LOCATION_SZONE,0,1,e:GetHandler()) and c92512625.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c92512625.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c92512625.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckLPCost(tp,3000) end if chk==0 then return Duel.CheckLPCost(tp,3000) end
...@@ -49,7 +54,7 @@ function c92512625.activate1(e,tp,eg,ep,ev,re,r,rp) ...@@ -49,7 +54,7 @@ function c92512625.activate1(e,tp,eg,ep,ev,re,r,rp)
end end
function c92512625.condition2(e,tp,eg,ep,ev,re,r,rp) function c92512625.condition2(e,tp,eg,ep,ev,re,r,rp)
return (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev) return (re:IsActiveType(TYPE_MONSTER) or re:IsHasType(EFFECT_TYPE_ACTIVATE)) and Duel.IsChainNegatable(ev)
and not Duel.IsExistingMatchingCard(c92512625.cfilter,tp,LOCATION_SZONE,0,1,e:GetHandler()) and c92512625.condition(e,tp,eg,ep,ev,re,r,rp)
end end
function c92512625.target2(e,tp,eg,ep,ev,re,r,rp,chk) function c92512625.target2(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true 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