Commit e3c9cacf authored by Amiya's avatar Amiya

龙辉巧新卡修复

parent 1d047274
Pipeline #25796 passed with stages
in 1 minute and 22 seconds
...@@ -55,7 +55,8 @@ function s.fselect(g,atk) ...@@ -55,7 +55,8 @@ function s.fselect(g,atk)
return sum>=atk and not g:IsExists(Card.IsAttackBelow,1,nil,sum-atk) return sum>=atk and not g:IsExists(Card.IsAttackBelow,1,nil,sum-atk)
end end
function s.distg(e,tp,eg,ep,ev,re,r,rp,chk) function s.distg(e,tp,eg,ep,ev,re,r,rp,chk)
local atk=re:GetHandler():GetBaseAttack() --local atk=re:GetHandler():GetBaseAttack()
local atk=re:GetHandler():GetTextAttack()
local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(s.costfilter,tp,LOCATION_GRAVE,0,nil)
if chk==0 then if chk==0 then
if e:GetLabel()~=100 then return false end if e:GetLabel()~=100 then return false end
......
...@@ -13,6 +13,7 @@ function s.initial_effect(c) ...@@ -13,6 +13,7 @@ function s.initial_effect(c)
e1:SetRange(LOCATION_SZONE) e1:SetRange(LOCATION_SZONE)
e1:SetCountLimit(1,id) e1:SetCountLimit(1,id)
e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_DELAY+EFFECT_FLAG_CARD_TARGET)
e1:SetCondition(s.thcon)
e1:SetCost(s.thcost) e1:SetCost(s.thcost)
e1:SetTarget(s.thtg) e1:SetTarget(s.thtg)
e1:SetOperation(s.thop) e1:SetOperation(s.thop)
...@@ -30,7 +31,7 @@ function s.initial_effect(c) ...@@ -30,7 +31,7 @@ function s.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function s.cfilter(c) function s.cfilter(c)
return c:IsSetCard(0x154) return c:IsSetCard(0x154) and c:IsFaceupEx()
end end
function s.thcon(e,tp,eg,ep,ev,re,r,rp) function s.thcon(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(s.cfilter,1,nil) return eg:IsExists(s.cfilter,1,nil)
......
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