Commit 151894ec authored by mercury233's avatar mercury233 Committed by GitHub

fix 海晶乙女クラウンテイル

その後、自分の墓地に存在する「マリンセス」と名のついたリンクモンスターの数が変化したとしても、そのターンに自分が受けなくなる戦闘ダメージの数値は変わりません。
parent ce55b415
......@@ -68,18 +68,19 @@ function c54569495.damtg1(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c54569495.damfilter,tp,LOCATION_GRAVE,0,1,nil) end
end
function c54569495.damop1(e,tp,eg,ep,ev,re,r,rp)
local g=Duel.GetMatchingGroup(c54569495.damfilter,tp,LOCATION_GRAVE,0,nil)
local ct=g:GetSum(Card.GetLink)*1000
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_AVOID_BATTLE_DAMAGE)
e1:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e1:SetTargetRange(1,0)
e1:SetCondition(c54569495.damcon3)
e1:SetLabel(ct)
e1:SetCondition(c54569495.valcon)
e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp)
end
function c54569495.damcon3(e)
function c54569495.valcon(e)
local tp=e:GetHandlerPlayer()
local g=Duel.GetMatchingGroup(c54569495.damfilter,tp,LOCATION_GRAVE,0,nil)
local ct=g:GetSum(Card.GetLink)*1000
return Duel.GetBattleDamage(tp)<=ct
return Duel.GetBattleDamage(tp)<=e:GetLabel()
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