Commit 4a4d8da7 authored by nekrozar's avatar nekrozar

fix material in pendulm zone

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=5&fid=11933

この時、「EMガトリングール」のモンスター効果を発動した場合には、『①:このカードが融合召喚に成功した場合に発動できる。フィールドのカードの数×200ダメージを相手に与える』処理だけでなく、『このカードがPモンスターを素材として融合召喚していた場合、さらに相手フィールドのモンスター1体を選んで破壊し、そのモンスターの元々の攻撃力分のダメージを相手に与える』処理も通常通り適用される事になります。
parent 91679b29
......@@ -51,11 +51,27 @@ function c32354768.initial_effect(c)
e6:SetValue(c32354768.valcheck)
c:RegisterEffect(e6)
end
function c32354768.mtfilter(c)
return c:IsSetCard(0xc4) and c:IsType(TYPE_MONSTER+TYPE_PENDULUM)
function c32354768.mtfilter1(c)
return c:IsSetCard(0xc4) and c:IsType(TYPE_MONSTER)
end
function c32354768.mtfilter2(c)
return c:IsFusionSetCard(0xc4) and c:IsFusionType(TYPE_MONSTER)
end
function c32354768.mtfilter3(c)
return c:IsSetCard(0xc4) and c:IsSynchroType(TYPE_MONSTER)
end
function c32354768.mtfilter4(c)
return c:IsSetCard(0xc4) and c:IsXyzType(TYPE_MONSTER)
end
function c32354768.valcheck(e,c)
if c:GetMaterial():IsExists(c32354768.mtfilter,1,nil) then
local g=c:GetMaterial()
if c:IsType(TYPE_RITUAL) and g:IsExists(c32354768.mtfilter1,1,nil) then
c:RegisterFlagEffect(32354768,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
elseif c:IsType(TYPE_FUSION) and g:IsExists(c32354768.mtfilter2,1,nil) then
c:RegisterFlagEffect(32354768,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
elseif c:IsType(TYPE_SYNCHRO) and g:IsExists(c32354768.mtfilter3,1,nil) then
c:RegisterFlagEffect(32354768,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
elseif c:IsType(TYPE_XYZ) and g:IsExists(c32354768.mtfilter4,1,nil) then
c:RegisterFlagEffect(32354768,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
end
end
......
......@@ -49,8 +49,8 @@ function c36898537.valcheck(e,c)
local tpe=0
local tc=g:GetFirst()
while tc do
if not tc:IsType(TYPE_TUNER) then
tpe=bit.bor(tpe,tc:GetType())
if not tc:IsSynchroType(TYPE_TUNER) then
tpe=bit.bor(tpe,tc:GetSynchroType())
end
tc=g:GetNext()
end
......
......@@ -59,7 +59,7 @@ function c49820233.damop(e,tp,eg,ep,ev,re,r,rp)
end
function c49820233.valcheck(e,c)
local g=c:GetMaterial()
if g:IsExists(Card.IsType,1,nil,TYPE_PENDULUM) then
if g:IsExists(Card.IsFusionType,1,nil,TYPE_PENDULUM) then
e:GetLabelObject():SetLabel(1)
else
e:GetLabelObject():SetLabel(0)
......
......@@ -42,7 +42,12 @@ function c84274024.initial_effect(c)
c:RegisterEffect(e5)
end
function c84274024.valcheck(e,c)
if c:GetMaterial():IsExists(Card.IsType,1,nil,TYPE_PENDULUM) then
local g=c:GetMaterial()
if c:IsType(TYPE_FUSION) and g:IsExists(Card.IsFusionType,1,nil,TYPE_PENDULUM) then
c:RegisterFlagEffect(84274024,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
elseif c:IsType(TYPE_SYNCHRO) and g:IsExists(Card.IsSynchroType,1,nil,TYPE_PENDULUM) then
c:RegisterFlagEffect(84274024,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
elseif c:IsType(TYPE_XYZ) and g:IsExists(Card.IsXyzType,1,nil,TYPE_PENDULUM) then
c:RegisterFlagEffect(84274024,RESET_EVENT+0x4fe0000+RESET_PHASE+PHASE_END,0,1)
end
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