Commit 46af81a9 authored by nekrozar's avatar nekrozar

fix Beast Rising

https://www.db.yugioh-card.com/yugiohdb/faq_search.action?ope=4&cid=9005
この効果を発動する際に、コストとして、自分のモンスターゾーンに表側表示で存在する獣族・獣戦士族モンスター1体を除外します。
■「ビーストライザー」の効果をダメージステップに発動する場合、ダメージステップ開始時からダメージ計算前までに発動する事になります。
parent afc9c104
...@@ -6,6 +6,7 @@ function c84962466.initial_effect(c) ...@@ -6,6 +6,7 @@ function c84962466.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetCondition(c84962466.condition)
e1:SetTarget(c84962466.target1) e1:SetTarget(c84962466.target1)
e1:SetOperation(c84962466.operation) e1:SetOperation(c84962466.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -17,12 +18,16 @@ function c84962466.initial_effect(c) ...@@ -17,12 +18,16 @@ function c84962466.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetHintTiming(TIMING_DAMAGE_STEP) e2:SetHintTiming(TIMING_DAMAGE_STEP)
e2:SetCondition(c84962466.condition)
e2:SetTarget(c84962466.target2) e2:SetTarget(c84962466.target2)
e2:SetOperation(c84962466.operation) e2:SetOperation(c84962466.operation)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c84962466.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end
function c84962466.cfilter(c,tp) function c84962466.cfilter(c,tp)
return c:IsFaceup() and c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR) and c:IsAbleToRemove() return c:IsFaceup() and c:IsRace(RACE_BEAST+RACE_BEASTWARRIOR) and c:IsAbleToRemoveAsCost()
and Duel.IsExistingTarget(c84962466.filter,tp,LOCATION_MZONE,0,1,c) and Duel.IsExistingTarget(c84962466.filter,tp,LOCATION_MZONE,0,1,c)
end end
function c84962466.filter(c) function c84962466.filter(c)
...@@ -33,7 +38,7 @@ function c84962466.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -33,7 +38,7 @@ function c84962466.target1(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then if chk==0 then
return Duel.GetCurrentPhase()~=PHASE_DAMAGE or Duel.IsExistingMatchingCard(c84962466.cfilter,tp,LOCATION_MZONE,0,1,nil,tp) return Duel.GetCurrentPhase()~=PHASE_DAMAGE or Duel.IsExistingMatchingCard(c84962466.cfilter,tp,LOCATION_MZONE,0,1,nil,tp)
end end
if Duel.GetCurrentPhase()==PHASE_DAMAGE or if Duel.GetCurrentPhase()==PHASE_DAMAGE or
(Duel.IsExistingMatchingCard(c84962466.cfilter,tp,LOCATION_MZONE,0,1,nil,tp) and Duel.SelectYesNo(tp,aux.Stringid(84962466,0))) then (Duel.IsExistingMatchingCard(c84962466.cfilter,tp,LOCATION_MZONE,0,1,nil,tp) and Duel.SelectYesNo(tp,aux.Stringid(84962466,0))) then
e:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
......
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