Commit 4eacbb81 authored by Huangnan's avatar Huangnan

fix

parent 10d80d88
No preview for this file type
expansions/pics/17033080.jpg

67.7 KB | W: | H:

expansions/pics/17033080.jpg

185 KB | W: | H:

expansions/pics/17033080.jpg
expansions/pics/17033080.jpg
expansions/pics/17033080.jpg
expansions/pics/17033080.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/17033081.jpg

69.7 KB | W: | H:

expansions/pics/17033081.jpg

191 KB | W: | H:

expansions/pics/17033081.jpg
expansions/pics/17033081.jpg
expansions/pics/17033081.jpg
expansions/pics/17033081.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/17033090.jpg

65.1 KB | W: | H:

expansions/pics/17033090.jpg

169 KB | W: | H:

expansions/pics/17033090.jpg
expansions/pics/17033090.jpg
expansions/pics/17033090.jpg
expansions/pics/17033090.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/17033091.jpg

68.1 KB | W: | H:

expansions/pics/17033091.jpg

183 KB | W: | H:

expansions/pics/17033091.jpg
expansions/pics/17033091.jpg
expansions/pics/17033091.jpg
expansions/pics/17033091.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/17033100.jpg

66.2 KB | W: | H:

expansions/pics/17033100.jpg

198 KB | W: | H:

expansions/pics/17033100.jpg
expansions/pics/17033100.jpg
expansions/pics/17033100.jpg
expansions/pics/17033100.jpg
  • 2-up
  • Swipe
  • Onion skin
expansions/pics/17033101.jpg

71.3 KB | W: | H:

expansions/pics/17033101.jpg

214 KB | W: | H:

expansions/pics/17033101.jpg
expansions/pics/17033101.jpg
expansions/pics/17033101.jpg
expansions/pics/17033101.jpg
  • 2-up
  • Swipe
  • Onion skin
--天之志雷马 --天之志雷马
local m=33701376 local s,id=GetID()
local cm=_G["c"..m] function s.initial_effect(c)
function cm.initial_effect(c) --link summon
--link summon aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_MACHINE),2)
aux.AddLinkProcedure(c,aux.FilterBoolFunction(Card.IsLinkRace,RACE_MACHINE),2) c:EnableReviveLimit()
c:EnableReviveLimit() --受到伤害时增加攻击力
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e1:SetCode(EVENT_DAMAGE) e1:SetCode(EVENT_DAMAGE)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetOperation(cm.atkop) e1:SetOperation(s.atkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) --对自己造成伤害
e2:SetDescription(aux.Stringid(m,0)) local e2=Effect.CreateEffect(c)
e2:SetCategory(CATEGORY_DAMAGE) e2:SetDescription(aux.Stringid(id,0))
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetCategory(CATEGORY_DAMAGE)
e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_MZONE) e2:SetProperty(EFFECT_FLAG_PLAYER_TARGET)
e2:SetCountLimit(1) e2:SetRange(LOCATION_MZONE)
e2:SetTarget(cm.dmtg) e2:SetCountLimit(1)
e2:SetOperation(cm.dmop) e2:SetTarget(s.dmtg)
c:RegisterEffect(e2) e2:SetOperation(s.dmop)
local e3=Effect.CreateEffect(c) c:RegisterEffect(e2)
e3:SetDescription(aux.Stringid(m,1)) --战斗阶段效果选择
e3:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOGRAVE) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_QUICK_O) e3:SetDescription(aux.Stringid(id,1))
e3:SetCode(EVENT_FREE_CHAIN) e3:SetCategory(CATEGORY_DAMAGE+CATEGORY_TOGRAVE)
e3:SetHintTiming(TIMING_DAMAGE_STEP) e3:SetType(EFFECT_TYPE_QUICK_O)
e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP) e3:SetCode(EVENT_FREE_CHAIN)
e3:SetRange(LOCATION_MZONE) e3:SetHintTiming(TIMING_DAMAGE_STEP)
e3:SetCountLimit(1) e3:SetProperty(EFFECT_FLAG_DAMAGE_STEP)
e3:SetCondition(cm.condition) e3:SetRange(LOCATION_MZONE)
e3:SetOperation(cm.operation) e3:SetCountLimit(1)
c:RegisterEffect(e3) e3:SetCondition(s.condition)
local e4=Effect.CreateEffect(c) e3:SetOperation(s.operation)
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS) c:RegisterEffect(e3)
e4:SetCode(EVENT_PHASE+PHASE_END) --回合结束时攻击力减半
e4:SetRange(LOCATION_MZONE) local e4=Effect.CreateEffect(c)
e4:SetCountLimit(1) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e4:SetOperation(cm.atkop1) e4:SetCode(EVENT_PHASE+PHASE_END)
c:RegisterEffect(e4) e4:SetRange(LOCATION_MZONE)
e4:SetCountLimit(1)
e4:SetOperation(s.atkop1)
c:RegisterEffect(e4)
end end
function cm.atkop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() function s.atkop(e,tp,eg,ep,ev,re,r,rp)
if ep==tp and bit.band(r,REASON_EFFECT)~=0 and re:GetHandler()==c and c:IsFaceup() then local c=e:GetHandler()
local e1=Effect.CreateEffect(c) if ep==tp and bit.band(r,REASON_EFFECT)~=0 and re:GetHandler()==c and c:IsFaceup() then
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_UPDATE_ATTACK) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetValue(ev) e1:SetCode(EFFECT_UPDATE_ATTACK)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetValue(ev)
c:RegisterEffect(e1) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
end c:RegisterEffect(e1)
end
end end
function cm.dmtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end function s.dmtg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetTargetPlayer(tp) if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,0) Duel.SetTargetPlayer(tp)
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,tp,0)
end end
function cm.dmop(e,tp,eg,ep,ev,re,r,rp)
local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM) function s.dmop(e,tp,eg,ep,ev,re,r,rp)
Duel.Damage(p,math.floor(Duel.GetLP(p)/2),REASON_EFFECT) local p=Duel.GetChainInfo(0,CHAININFO_TARGET_PLAYER,CHAININFO_TARGET_PARAM)
Duel.Damage(p,math.floor(Duel.GetLP(p)/2),REASON_EFFECT)
end end
function cm.condition(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() function s.condition(e,tp,eg,ep,ev,re,r,rp)
local ph=Duel.GetCurrentPhase() local c=e:GetHandler()
local bc=c:GetBattleTarget() local ph=Duel.GetCurrentPhase()
if bc~=nil then e:SetLabelObject(bc) end local bc=c:GetBattleTarget()
return ph==PHASE_DAMAGE and (c==Duel.GetAttacker() or c==Duel.GetAttackTarget()) if bc~=nil then e:SetLabelObject(bc) end
and not Duel.IsDamageCalculated() return ph==PHASE_DAMAGE and (c==Duel.GetAttacker() or c==Duel.GetAttackTarget())
and not Duel.IsDamageCalculated()
end end
function cm.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler()
local bc=e:GetLabelObject()
if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
local t2=c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsRelateToBattle()
local op=0 function s.operation(e,tp,eg,ep,ev,re,r,rp)
local m={} local c=e:GetHandler()
local n={} local bc=e:GetLabelObject()
local ct=1 if not c:IsFaceup() or not c:IsRelateToEffect(e) then return end
m[ct]=aux.Stringid(m,2) n[ct]=1 ct=ct+1 local t2=c:IsStatus(STATUS_OPPO_BATTLE) and bc:IsRelateToBattle()
if t2 then m[ct]=aux.Stringid(m,3) n[ct]=2 ct=ct+1 end
m[ct]=aux.Stringid(m,4) n[ct]=3 ct=ct+1
local sp=Duel.SelectOption(tp,table.unpack(m))
op=n[sp+1]
if op==1 then local op=0
local e1=Effect.CreateEffect(c) local m={}
e1:SetType(EFFECT_TYPE_SINGLE) local n={}
e1:SetCode(EFFECT_IMMUNE_EFFECT) local ct=1
e1:SetValue(cm.efilter) m[ct]=aux.Stringid(id,2) n[ct]=1 ct=ct+1
e1:SetOwnerPlayer(tp) if t2 then m[ct]=aux.Stringid(id,3) n[ct]=2 ct=ct+1 end
e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) m[ct]=aux.Stringid(id,4) n[ct]=3 ct=ct+1
c:RegisterEffect(e1) local sp=Duel.SelectOption(tp,table.unpack(m))
elseif op==2 then op=n[sp+1]
Duel.SendtoGrave(bc,REASON_EFFECT)
elseif op==3 then if op==1 then
local e2=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE) e1:SetCode(EFFECT_IMMUNE_EFFECT)
e2:SetValue(aux.ChangeBattleDamage(1,DOUBLE_DAMAGE)) e1:SetValue(s.efilter)
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE) e1:SetOwnerPlayer(tp)
c:RegisterEffect(e2) e1:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
end c:RegisterEffect(e1)
elseif op==2 then
Duel.SendtoGrave(bc,REASON_EFFECT)
elseif op==3 then
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CHANGE_BATTLE_DAMAGE)
e2:SetValue(aux.ChangeBattleDamage(1,DOUBLE_DAMAGE))
e2:SetReset(RESET_EVENT+RESETS_STANDARD+RESET_PHASE+PHASE_DAMAGE)
c:RegisterEffect(e2)
end
end end
function cm.atkop1(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() function s.atkop1(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()==tp then local c=e:GetHandler()
local e1=Effect.CreateEffect(c) if Duel.GetTurnPlayer()==tp then
e1:SetType(EFFECT_TYPE_SINGLE) local e1=Effect.CreateEffect(c)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetReset(RESET_EVENT+RESETS_STANDARD) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(math.ceil(c:GetAttack()/2)) e1:SetReset(RESET_EVENT+RESETS_STANDARD)
c:RegisterEffect(e1) e1:SetValue(math.ceil(c:GetAttack()/2))
end c:RegisterEffect(e1)
end
end end
function cm.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer() function s.efilter(e,re)
return e:GetOwnerPlayer()~=re:GetOwnerPlayer()
end end
...@@ -1080,7 +1080,7 @@ ...@@ -1080,7 +1080,7 @@
!setname 0x351a 星之国 !setname 0x351a 星之国
!counter 0x510 射手指示物 !counter 0x510 射手指示物
#子安 523 0x4e0-0x4ef #子安 2212431338 523 0x4e0-0x4ef
!setname 0x34e0 和平主义者 !setname 0x34e0 和平主义者
#TILL 3069681055 527 0x520-0x52f #TILL 3069681055 527 0x520-0x52f
......
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