Commit 9eba77e3 authored by nekrozar's avatar nekrozar

fix

Monster Eye
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=4408
■対象を取る効果ではありません。効果処理時に自分の墓地に存在する「融合」1枚を手札に加えます。

The Dragon's Bead
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=5342
■罠カードの効果の発動にチェーンして「ドラゴンの宝珠」の効果を発動する事はできません。

Pharaoh's Treasure
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=5449

■『この効果でデッキに加えたこのカードをドローした時、このカードを墓地へ送り、このカード以外の自分の墓地に存在するカード1枚を選択して手札に加える』効果はチェーンブロックの作られる効果です。(自分の墓地のカード1枚を対象に取る効果です。ダメージステップでも発動します。)

Insect Princess
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=5892

■『このカードが戦闘によって昆虫族モンスターを破壊する度に、このカードの攻撃力は500ポイントアップする』効果は誘発効果です。(対象を取る効果ではありません。「インセクト・プリンセス」自身が戦闘によって昆虫族モンスターを破壊したダメージステップ終了時に必ず発動する効果となります。)

Backfire
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=5986

■自分のモンスターゾーンに表側表示で存在する炎属性モンスターが破壊され墓地へ送られた時に効果が発動します。(裏側守備表示の炎属性モンスターが効果で破壊され墓地へ送られた時に効果は発動しません。)

Detonate
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=7554
■相手フィールドにカードが存在しない場合、「機雷化」を発動する事はできません。

Kuribon
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=8292
■「クリボン」のモンスター効果は誘発効果です。

Kurivolt
https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=9875
■自分または相手のモンスターゾーンに表側表示で存在する、エクシーズ素材を1つ以上持っているエクシーズモンスター1体を対象に取る効果です。
■『このカードはシンクロ素材にできない』は効果の扱いではありません。
parent c82f8892
......@@ -11,18 +11,22 @@ function c37957847.initial_effect(c)
c:RegisterEffect(e1)
--atkup
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_BATTLED)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e2:SetCode(EVENT_BATTLE_DESTROYING)
e2:SetCondition(c37957847.atkcon)
e2:SetOperation(c37957847.atkop)
c:RegisterEffect(e2)
end
function c37957847.target(e,c)
return c:IsRace(RACE_INSECT)
end
function c37957847.atkcon(e,tp,eg,ep,ev,re,r,rp)
local bc=e:GetHandler():GetBattleTarget()
return bc and bc:IsStatus(STATUS_BATTLE_DESTROYED) and bc:IsRace(RACE_INSECT)
end
function c37957847.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=c:GetBattleTarget()
if bc and bc:IsStatus(STATUS_BATTLE_DESTROYED) and bc:IsRace(RACE_INSECT) then
if c:IsRelateToEffect(e) then
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_UPDATE_ATTACK)
......
......@@ -13,12 +13,13 @@ function c40817915.initial_effect(c)
--unsynchroable
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EFFECT_CANNOT_BE_SYNCHRO_MATERIAL)
e2:SetValue(1)
c:RegisterEffect(e2)
end
function c40817915.ofilter(c)
return c:GetOverlayCount()~=0
return c:IsFaceup() and c:GetOverlayCount()~=0
end
function c40817915.spfilter(c,e,tp)
return c:IsCode(40817915) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
......@@ -4,10 +4,8 @@ function c47432275.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(47432275,0))
e1:SetCategory(CATEGORY_RECOVER+CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetRange(LOCATION_MZONE)
e1:SetType(EFFECT_TYPE_TRIGGER_O+EFFECT_TYPE_SINGLE)
e1:SetCode(EVENT_PRE_DAMAGE_CALCULATE)
e1:SetCountLimit(1)
e1:SetCondition(c47432275.con)
e1:SetTarget(c47432275.target)
e1:SetOperation(c47432275.op)
......
......@@ -25,25 +25,26 @@ function c63571750.activate(e,tp,eg,ep,ev,re,r,rp)
e1:SetDescription(aux.Stringid(63571750,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_DRAW)
e1:SetTarget(c63571750.thtg)
e1:SetOperation(c63571750.thop)
e1:SetReset(RESET_EVENT+0x1de0000)
c:RegisterEffect(e1)
end
function c63571750.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
function c63571750.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_GRAVE) and chkc:IsAbleToHand() end
if chk==0 then return e:GetHandler():IsRelateToEffect(e) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,Card.IsAbleToHand,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
end
function c63571750.thop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
if c:IsRelateToEffect(e) then
Duel.SendtoGrave(c,REASON_EFFECT)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(Card.IsAbleToHand),tp,LOCATION_GRAVE,0,1,1,c)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
if c:IsRelateToEffect(e) and Duel.SendtoGrave(c,REASON_EFFECT)~=0 then
local tc=Duel.GetFirstTarget()
if tc and tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
end
end
end
......@@ -18,7 +18,7 @@ function c82705573.initial_effect(c)
c:RegisterEffect(e2)
end
function c82705573.filter(c,tp)
return c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp
return c:IsPreviousPosition(POS_FACEUP) and c:IsPreviousLocation(LOCATION_MZONE) and c:GetPreviousControler()==tp
and c:GetControler()==tp and c:IsReason(REASON_DESTROY) and c:IsAttribute(ATTRIBUTE_FIRE)
end
function c82705573.condition(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -4,7 +4,6 @@ function c84133008.initial_effect(c)
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(84133008,0))
e1:SetCategory(CATEGORY_TOHAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetType(EFFECT_TYPE_IGNITION)
e1:SetRange(LOCATION_MZONE)
e1:SetCost(c84133008.thcost)
......@@ -19,17 +18,15 @@ end
function c84133008.filter(c)
return c:IsCode(24094653) and c:IsAbleToHand()
end
function c84133008.thtg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_GRAVE) and chkc:IsControler(tp) and c84133008.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c84133008.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
local g=Duel.SelectTarget(tp,c84133008.filter,tp,LOCATION_GRAVE,0,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,g,1,0,0)
function c84133008.thtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c84133008.filter,tp,LOCATION_GRAVE,0,1,nil) end
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_GRAVE)
end
function c84133008.thop(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RTOHAND)
local g=Duel.SelectMatchingCard(tp,aux.NecroValleyFilter(c84133008.filter),tp,LOCATION_GRAVE,0,1,1,nil)
if g:GetCount()>0 then
Duel.SendtoHand(g,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,g)
end
end
......@@ -14,7 +14,8 @@ function c89086566.cfilter(c)
return c:IsFaceup() and c:IsCode(40640057,40703223)
end
function c89086566.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c89086566.cfilter,tp,LOCATION_ONFIELD,0,1,nil) end
if chk==0 then return Duel.IsExistingMatchingCard(c89086566.cfilter,tp,LOCATION_ONFIELD,0,1,nil)
and Duel.IsExistingMatchingCard(aux.TRUE,tp,0,LOCATION_ONFIELD,1,nil) end
local g=Duel.GetMatchingGroup(c89086566.cfilter,tp,LOCATION_ONFIELD,0,nil)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end
......
......@@ -30,7 +30,7 @@ function c92408984.cost1(e,tp,eg,ep,ev,re,r,rp,chk)
if ct==1 then return end
local pe=Duel.GetChainInfo(ct-1,CHAININFO_TRIGGERING_EFFECT)
if not pe:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
if not pe:GetHandler():IsType(TYPE_TRAP) then return false end
if not pe:IsHasType(EFFECT_TYPE_ACTIVATE) or not pe:IsActiveType(TYPE_TRAP) then return false end
local tg=Duel.GetChainInfo(ct-1,CHAININFO_TARGET_CARDS)
if not tg or not tg:IsExists(c92408984.cfilter,1,nil) then return false end
if not Duel.IsChainNegatable(ct-1) then return false end
......@@ -64,7 +64,7 @@ function c92408984.operation1(e,tp,eg,ep,ev,re,r,rp)
end
function c92408984.condition2(e,tp,eg,ep,ev,re,r,rp)
if not re:IsHasProperty(EFFECT_FLAG_CARD_TARGET) then return end
if not re:GetHandler():IsType(TYPE_TRAP) then return false end
if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_TRAP) then return false end
local tg=Duel.GetChainInfo(ev,CHAININFO_TARGET_CARDS)
if not tg or not tg:IsExists(c92408984.cfilter,1,nil) then return false end
return 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