Commit 1d9c5ddf authored by nekrozar's avatar nekrozar

fix Elemental HERO Honest Neos

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=12901
自分または相手のモンスターゾーンに表側表示で存在する「HERO」と名のついたモンスター1体を対象に取る効果です。
parent 7d35b95c
...@@ -41,10 +41,10 @@ function c14124483.atkfilter(c) ...@@ -41,10 +41,10 @@ function c14124483.atkfilter(c)
return c:IsFaceup() and c:IsSetCard(0x8) return c:IsFaceup() and c:IsSetCard(0x8)
end end
function c14124483.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c14124483.atktg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsControler(tp) and chkc:IsLocation(LOCATION_MZONE) and c14124483.atkfilter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c14124483.atkfilter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c14124483.atkfilter,tp,LOCATION_MZONE,0,1,nil) end if chk==0 then return Duel.IsExistingTarget(c14124483.atkfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.SelectTarget(tp,c14124483.atkfilter,tp,LOCATION_MZONE,0,1,1,nil) Duel.SelectTarget(tp,c14124483.atkfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c14124483.atkop1(e,tp,eg,ep,ev,re,r,rp,chk) function c14124483.atkop1(e,tp,eg,ep,ev,re,r,rp,chk)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
......
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