Commit 7fa885a4 authored by nekrozar's avatar nekrozar

fix Judgment, the Dragon of Heaven

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=21920
「王者の調和」の効果は、同じ属性のモンスターをシンクロ素材としていませんので、その効果によって「熾天龍
ジャッジメント」を特殊召喚する事はできません。
parent 0504a4d1
...@@ -3,6 +3,13 @@ function c41659072.initial_effect(c) ...@@ -3,6 +3,13 @@ function c41659072.initial_effect(c)
--synchro summon --synchro summon
aux.AddSynchroMixProcedure(c,aux.Tuner(nil),nil,nil,aux.NonTuner(nil),1,99,c41659072.syncheck) aux.AddSynchroMixProcedure(c,aux.Tuner(nil),nil,nil,aux.NonTuner(nil),1,99,c41659072.syncheck)
c:EnableReviveLimit() c:EnableReviveLimit()
--spsummon condition
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e1:SetCode(EFFECT_SPSUMMON_CONDITION)
e1:SetValue(c41659072.sumlimit)
c:RegisterEffect(e1)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetDescription(aux.Stringid(41659072,0)) e2:SetDescription(aux.Stringid(41659072,0))
...@@ -31,6 +38,9 @@ end ...@@ -31,6 +38,9 @@ end
function c41659072.syncheck(g) function c41659072.syncheck(g)
return g:GetClassCount(Card.GetAttribute)==1 return g:GetClassCount(Card.GetAttribute)==1
end end
function c41659072.sumlimit(e,se,sp,st)
return bit.band(st,SUMMON_TYPE_SYNCHRO)~=SUMMON_TYPE_SYNCHRO or not se
end
function c41659072.condition(e,tp,eg,ep,ev,re,r,rp,chk) function c41659072.condition(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_TUNER) local g=Duel.GetMatchingGroup(Card.IsType,tp,LOCATION_GRAVE,0,nil,TYPE_TUNER)
return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and g:GetClassCount(Card.GetCode)>3 return e:GetHandler():IsSummonType(SUMMON_TYPE_SYNCHRO) and g:GetClassCount(Card.GetCode)>3
......
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