Commit dd525f8a authored by wind2009's avatar wind2009

Fix

parent e59bbd72
......@@ -53,7 +53,7 @@ merge_databases:
FIELDS: 'name,desc,overallString,picUrl'
GIT_DEPTH: '1000'
OUTPUT_FILENAME: test-release.json
REF_COMMIT: '6.0' # 更新的时候改这里,修改成上一个tag的版本号
REF_COMMIT: '6.1' # 更新的时候改这里,修改成上一个tag的版本号
script:
- apt update;apt -y install wget
- currentPath=$PWD
......
......@@ -40,12 +40,6 @@ function s.initial_effect(c)
end
s.dark_calling=true
s.material_setcode=0x8
function s.matfilter1(c)
return c:IsFusionCode(21844576,58932615) or c:IsHasEffect(EFFECT_FUSION_SUBSTITUTE)
end
function s.matfilter2(c)
return c:IsFusionSetCard(0x8)
end
function s.thfilter(c)
return (c:IsCode(94820406) or aux.IsCodeListed(c,94820406)) and c:IsAbleToHand()
and not c:IsType(TYPE_FUSION)
......
......@@ -38,21 +38,20 @@ function s.initial_effect(c)
end
s.dark_calling=true
function s.matcheck(e,c)
local c=e:GetHandler()
local e1=Effect.CreateEffect(c)
local ec=e:GetHandler()
local e1=Effect.CreateEffect(ec)
e1:SetType(EFFECT_TYPE_FIELD)
e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetRange(LOCATION_MZONE)
e1:SetTargetRange(0,LOCATION_MZONE)
e1:SetValue(s.atkval)
e1:SetReset(RESET_EVENT+RESETS_STANDARD-RESET_TOFIELD)
c:RegisterEffect(e1)
ec:RegisterEffect(e1)
end
function s.atkval(e,c)
local ec=e:GetHandler()
local g=ec:GetMaterial()
local mg=g:Filter(Card.IsType,nil,TYPE_MONSTER)
local atk=mg:GetSum(Card.GetBaseAttack)
local atk=g:GetSum(Card.GetTextAttack)
return -atk
end
function s.spcon(e,tp,eg,ep,ev,re,r,rp)
......
......@@ -41,9 +41,9 @@ end
function s.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_OPERATECARD)
local g=Duel.SelectMatchingCard(tp,s.thfilter,tp,LOCATION_DECK,0,1,1,nil,e,tp)
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
local tc=g:GetFirst()
if tc then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
if tc:IsAbleToHand() and (not tc:IsCanBeSpecialSummoned(e,0,tp,false,false) or ft<=0 or Duel.SelectOption(tp,1190,1152)==0) then
Duel.SendtoHand(tc,nil,REASON_EFFECT)
Duel.ConfirmCards(1-tp,tc)
......
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