Commit 20a26df7 authored by nekrozar's avatar nekrozar

fix Mystik Wok

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

「神秘の中華なべ」を発動する際にはコストとなるモンスターのリリースと合わせて、攻撃力・守備力のどちらの数値分回復する効果とするかを選択する事になりますが、「電影の騎士ガイアセイバー」はリンクモンスターですので守備力を持ちません。

したがって、リンクモンスターをリリースして「神秘の中華なべ」を発動する場合には、攻撃力の数値分ライフポイントを回復する効果として発動する事になります。
parent 7ae86161
...@@ -17,9 +17,13 @@ function c80161395.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -17,9 +17,13 @@ function c80161395.cost(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=sg:GetFirst() local tc=sg:GetFirst()
local atk=tc:GetAttack() local atk=tc:GetAttack()
local def=tc:GetDefense() local def=tc:GetDefense()
local isdef=tc:IsDefenseAbove(0)
Duel.Release(tc,REASON_COST) Duel.Release(tc,REASON_COST)
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(80161395,0)) local sel=0
local sel=Duel.SelectOption(tp,aux.Stringid(80161395,1),aux.Stringid(80161395,2)) if isdef then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(80161395,0))
sel=Duel.SelectOption(tp,aux.Stringid(80161395,1),aux.Stringid(80161395,2))
end
if sel==0 then e:SetLabel(atk) if sel==0 then e:SetLabel(atk)
else e:SetLabel(def) end else e:SetLabel(def) end
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