-
-
Notifications
You must be signed in to change notification settings - Fork 65
/
Copy pathc160016041.lua
47 lines (47 loc) · 1.43 KB
/
c160016041.lua
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
--ジョインテック・トライ・ダイナベース
--Jointech Tridynabase
--Scripted by YoshiDuels
local s,id=GetID()
function s.initial_effect(c)
--fusion material
c:EnableReviveLimit()
Fusion.AddProcMixN(c,true,true,160016017,1,s.matfilter,2)
--Piercing battle damage
local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e1)
--Multi attack
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_SPSUMMON_SUCCESS)
e2:SetCondition(s.condition)
e2:SetOperation(s.operation)
c:RegisterEffect(e2)
end
s.named_material={160016017}
s.listed_names={160010025,160014023}
function s.matfilter(c,scard,sumtype,tp)
return not c:IsRace(RACE_MACHINE,scard,sumtype,tp)
end
function s.condition(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsSummonType(SUMMON_TYPE_FUSION)
end
function s.cfilter(c,code)
return c:IsLocation(LOCATION_GRAVE) and c:IsOriginalCodeRule(code)
end
function s.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local g=c:GetMaterial()
local flag=0
if g:FilterCount(s.cfilter,nil,160010025)>0 and g:FilterCount(s.cfilter,nil,160014023)>0 then
local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(id,0))
e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_EXTRA_ATTACK)
e1:SetValue(2)
e1:SetReset(RESETS_STANDARD_PHASE_END)
c:RegisterEffect(e1)
end
end