Commit b5ced8e7 authored by sidschingis's avatar sidschingis

fix & setcode

fixed typos
new setcodes (Fusion Setcode  wasnt needed as it is the same as
Fusion/polymerization)
!setcode 0xa2 Dark Magician
!setcode 0xa3 Stardust
!setcode 0xa4 Change
parent 54db2866
...@@ -16,9 +16,9 @@ function c15981690.initial_effect(c) ...@@ -16,9 +16,9 @@ function c15981690.initial_effect(c)
e2:SetType(EFFECT_TYPE_IGNITION) e2:SetType(EFFECT_TYPE_IGNITION)
e2:SetRange(LOCATION_GRAVE) e2:SetRange(LOCATION_GRAVE)
e2:SetCountLimit(1,23893227) e2:SetCountLimit(1,23893227)
e2:SetCost(c23893227.spcost) e2:SetCost(c15981690.spcost)
e2:SetTarget(c23893227.sptg) e2:SetTarget(c15981690.sptg)
e2:SetOperation(c23893227.spop) e2:SetOperation(c15981690.spop)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c15981690.upcon(e,tp,eg,ep,ev,re,r,rp) function c15981690.upcon(e,tp,eg,ep,ev,re,r,rp)
...@@ -37,22 +37,22 @@ function c15981690.upop(e,tp,eg,ep,ev,re,r,rp) ...@@ -37,22 +37,22 @@ function c15981690.upop(e,tp,eg,ep,ev,re,r,rp)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
end end
function c23893227.spcost(e,tp,eg,ep,ev,re,r,rp,chk) function c15981690.spcost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end if chk==0 then return e:GetHandler():IsAbleToRemoveAsCost() end
Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST) Duel.Remove(e:GetHandler(),POS_FACEUP,REASON_COST)
end end
function c23893227.spfilter(c,e,tp) function c15981690.spfilter(c,e,tp)
return c:IsType(TYPE_NORMAL) and c:IsLevelBelow(7) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsType(TYPE_NORMAL) and c:IsLevelBelow(7) and c:IsRace(RACE_DRAGON) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c23893227.sptg(e,tp,eg,ep,ev,re,r,rp,chk) function c15981690.sptg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
and Duel.IsExistingMatchingCard(c23893227.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end and Duel.IsExistingMatchingCard(c15981690.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,nil,e,tp) end
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK+LOCATION_HAND)
end end
function c23893227.spop(e,tp,eg,ep,ev,re,r,rp) function c15981690.spop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_SPSUMMON)
local g=Duel.SelectMatchingCard(tp,c23893227.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp) local g=Duel.SelectMatchingCard(tp,c15981690.spfilter,tp,LOCATION_DECK+LOCATION_HAND,0,1,1,nil,e,tp)
if g:GetCount()>0 then if g:GetCount()>0 then
Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE) Duel.SpecialSummon(g,0,tp,tp,false,false,POS_FACEUP_DEFENCE)
end end
......
...@@ -6,8 +6,8 @@ function c17052477.initial_effect(c) ...@@ -6,8 +6,8 @@ function c17052477.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetCost(c17052477.cost) e1:SetCost(c17052477.cost)
e1:SetTarget(c17052477.target) e1:SetTarget(c17052477.drtg)
e1:SetOperation(c17052477.operation) e1:SetOperation(c17052477.drop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Effect Draw --Effect Draw
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
......
...@@ -13,8 +13,7 @@ function c21414674.filter(c) ...@@ -13,8 +13,7 @@ function c21414674.filter(c)
return c:IsFaceup() and ( return c:IsFaceup() and (
c:GetCode()==22530212 or c:GetCode()==22530212 or
c:GetCode()==68535320 or c:GetCode()==68535320 or
c:GetCode()==95929069 or c:GetCode()==95929069)
)
end end
function c21414674.spcon(e,c) function c21414674.spcon(e,c)
if c==nil then return true end if c==nil then return true end
......
--マジック・ハンド --マジック・ハンド
function c4440873.initial_effect(c) function c22530212.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e1:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
...@@ -7,26 +7,26 @@ function c4440873.initial_effect(c) ...@@ -7,26 +7,26 @@ function c4440873.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET) e1:SetProperty(EFFECT_FLAG_NO_TURN_RESET)
e1:SetCode(EVENT_TO_HAND) e1:SetCode(EVENT_TO_HAND)
e1:SetCountLimit(1) e1:SetCountLimit(1)
e1:SetCondition(c4440873.condition) e1:SetCondition(c22530212.condition)
e1:SetTarget(c4440873.target) e1:SetTarget(c22530212.target)
e1:SetOperation(c4440873.activate) e1:SetOperation(c22530212.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c4440873.cfilter(c,tp) function c22530212.cfilter(c,tp)
return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK) and not c:IsReason(REASON_DRAW) return c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK) and not c:IsReason(REASON_DRAW)
end end
function c4440873.condition(e,tp,eg,ep,ev,re,r,rp) function c22530212.condition(e,tp,eg,ep,ev,re,r,rp)
return eg:IsExists(c4440873.cfilter,1,nil,1-tp) return eg:IsExists(c22530212.cfilter,1,nil,1-tp)
end end
function c4440873.target(e,tp,eg,ep,ev,re,r,rp,chk) function c22530212.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,1-tp,800)
end end
function c4440873.filter(c,e,tp) function c22530212.filter(c,e,tp)
return c:IsRelateToEffect(e) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK) return c:IsRelateToEffect(e) and c:IsControler(tp) and c:IsPreviousLocation(LOCATION_DECK)
end end
function c4440873.activate(e,tp,eg,ep,ev,re,r,rp) function c22530212.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=eg:Filter(c4440873.filter,nil,e,1-tp) local sg=eg:Filter(c22530212.filter,nil,e,1-tp)
if sg:GetCount()==0 then if sg:GetCount()==0 then
Duel.SendtoGrave(sg,REASON_EFFECT) Duel.SendtoGrave(sg,REASON_EFFECT)
if sg:IsExists(Card.IsLocation,1,nil,LOCATION_GRAVE) then if sg:IsExists(Card.IsLocation,1,nil,LOCATION_GRAVE) then
......
...@@ -14,7 +14,7 @@ end ...@@ -14,7 +14,7 @@ end
function c35329581.filter(c,e,tp) function c35329581.filter(c,e,tp)
return c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e) return c:IsLocation(LOCATION_GRAVE) and c:IsCanBeEffectTarget(e)
and c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT) and c:GetPreviousControler()==tp and c:IsReason(REASON_DESTROY) and c:IsReason(REASON_BATTLE+REASON_EFFECT)
and c:IsType(TYPE_SYNCHRO) and Duel.IsExistingMatchingCard(c23893227.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c) and c:IsType(TYPE_SYNCHRO) and Duel.IsExistingMatchingCard(c35329581.spfilter,tp,LOCATION_EXTRA,0,1,nil,e,tp,c)
end end
function c35329581.spfilter(c,e,tp,tc) function c35329581.spfilter(c,e,tp,tc)
return c:IsType(TYPE_SYNCHRO) and c:GetLevel()==tc:GetLevel() return c:IsType(TYPE_SYNCHRO) and c:GetLevel()==tc:GetLevel()
......
...@@ -12,7 +12,7 @@ function c47264717.initial_effect(c) ...@@ -12,7 +12,7 @@ function c47264717.initial_effect(c)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c47264717.cfilter(c) function c47264717.cfilter(c)
return c:IsSetCard(0xa4) and c:IsFaceup() return c:IsSetCard(0xa3) and c:IsFaceup()
end end
function c47264717.condition(e,tp,eg,ep,ev,re,r,rp) function c47264717.condition(e,tp,eg,ep,ev,re,r,rp)
return Duel.IsExistingMatchingCard(c47264717.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) return Duel.IsExistingMatchingCard(c47264717.cfilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
......
...@@ -22,11 +22,11 @@ function c55569674.initial_effect(c) ...@@ -22,11 +22,11 @@ function c55569674.initial_effect(c)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetValue(1) e3:SetValue(1)
c:RegisterEffect(e3) c:RegisterEffect(e3)
-.atkage --atkage
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(55569674,0)) e4:SetDescription(aux.Stringid(55569674,0))
e4:SetCategory(CATEGORY_ATKCHANGE) e4:SetCategory(CATEGORY_ATKCHANGE)
e4:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG.atkAGE_STEP) e4:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_TO_GRAVE) e4:SetCode(EVENT_TO_GRAVE)
e4:SetCondition(c55569674.atkcon) e4:SetCondition(c55569674.atkcon)
......
--機関連結 --機関連結
function c1200843.initial_effect(c) function c60879050.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_EQUIP) e1:SetCategory(CATEGORY_EQUIP)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCost(c1200843.cost) e1:SetCost(c60879050.cost)
e1:SetTarget(c1200843.target) e1:SetTarget(c60879050.target)
e1:SetOperation(c1200843.operation) e1:SetOperation(c60879050.operation)
c:RegisterEffect(e1) c:RegisterEffect(e1)
--Equip limit --Equip limit
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_EQUIP_LIMIT) e2:SetCode(EFFECT_EQUIP_LIMIT)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e2:SetValue(c1200843.eqlimit) e2:SetValue(c60879050.eqlimit)
c:RegisterEffect(e2) c:RegisterEffect(e2)
--Atk Change --Atk Change
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_EQUIP) e3:SetType(EFFECT_TYPE_EQUIP)
e3:SetCode(EFFECT_SET_ATTACK) e3:SetCode(EFFECT_SET_ATTACK)
e3:SetValue(c22046459.value) e3:SetValue(c60879050.value)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--Pierce --Pierce
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
...@@ -29,36 +29,36 @@ function c1200843.initial_effect(c) ...@@ -29,36 +29,36 @@ function c1200843.initial_effect(c)
e4:SetCode(EFFECT_PIERCE) e4:SetCode(EFFECT_PIERCE)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--cannot attack --cannot attack
local e5=Effect.CreateEffect(e:GetHandler()) local e5=Effect.CreateEffect(c)
e5:SetType(EFFECT_TYPE_FIELD) e5:SetType(EFFECT_TYPE_FIELD)
e5:SetCode(EFFECT_CANNOT_ATTACK) e5:SetCode(EFFECT_CANNOT_ATTACK)
e5:SetProperty(EFFECT_FLAG_OATH) e5:SetProperty(EFFECT_FLAG_OATH)
e5:SetTargetRange(LOCATION_MZONE,0) e5:SetTargetRange(LOCATION_MZONE,0)
e5:SetTarget(c22046459.ftarget) e5:SetTarget(c60879050.ftarget)
c:RegisterEffect(e5) c:RegisterEffect(e5)
end end
function c1200843.eqlimit(e,c) function c60879050.eqlimit(e,c)
return c:IsRelateToCard(e:GetHandler()) return c:IsRelateToCard(e:GetHandler())
end end
function c1200843.filter(c) function c60879050.filter(c)
return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH) return c:IsRace(RACE_MACHINE) and c:IsAttribute(ATTRIBUTE_EARTH)
end end
function c1200843.rmfilter(c) function c60879050.rmfilter(c)
return c:IsRace(RACE_MACHINE) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost() return c:IsRace(RACE_MACHINE) and c:IsLevelAbove(10) and c:IsAbleToRemoveAsCost()
end end
function c1200843.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c60879050.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c1200843.rmfilter,tp,LOCATION_GRAVE,0,2,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c60879050.rmfilter,tp,LOCATION_GRAVE,0,2,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local g=Duel.SelectMatchingCard(tp,c1200843.rmfilter,tp,LOCATION_GRAVE,0,2,2,nil) local g=Duel.SelectMatchingCard(tp,c60879050.rmfilter,tp,LOCATION_GRAVE,0,2,2,nil)
Duel.Remove(g,POS_FACEUP,REASON_COST) Duel.Remove(g,POS_FACEUP,REASON_COST)
end end
function c1200843.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c60879050.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c1200843.filter(chkc) end if chkc then return chkc:IsLocation(LOCATION_MZONE) and c60879050.filter(chkc) end
if chk==0 then return Duel.IsExistingTarget(c1200843.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingTarget(c60879050.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
Duel.SelectTarget(tp,c1200843.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil) Duel.SelectTarget(tp,c60879050.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
end end
function c1200843.operation(e,tp,eg,ep,ev,re,r,rp) function c60879050.operation(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then if c:IsRelateToEffect(e) and tc:IsRelateToEffect(e) and tc:IsFaceup() then
...@@ -66,9 +66,9 @@ function c1200843.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -66,9 +66,9 @@ function c1200843.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Equip(tp,c,tc) Duel.Equip(tp,c,tc)
end end
end end
function c22046459.value(e,c) function c60879050.value(e,c)
return c:GetBaseAttack()*2 return c:GetBaseAttack()*2
end end
function c22046459.ftarget(e,c) function c60879050.ftarget(e,c)
return e:GetHandler():GetEquipTarget():GetFieldID()~=c:GetFieldID() return e:GetHandler():GetEquipTarget():GetFieldID()~=c:GetFieldID()
end end
\ No newline at end of file
...@@ -29,7 +29,7 @@ function c68535320.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,7 +29,7 @@ function c68535320.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c68535320.spfilter(c) function c68535320.spfilter(c,e,tp)
return c:GetCode()==95929069 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetCode()==95929069 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c68535320.operation(e,tp,eg,ep,ev,re,r,rp) function c68535320.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -30,7 +30,7 @@ function c80831721.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -30,7 +30,7 @@ function c80831721.cost(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2)) Duel.PayLPCost(tp,math.floor(Duel.GetLP(tp)/2))
end end
function c80831721.filter(c) function c80831721.filter(c)
return c:IsSetCard(0xa3) and c:IsAbleToHand() return c:IsSetCard(0x46) and c:IsType(TYPE_SPELL) and c:IsAbleToHand()
end end
function c80831721.target(e,tp,eg,ep,ev,re,r,rp,chk) function c80831721.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(c80831721.filter,tp,LOCATION_DECK,0,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(c80831721.filter,tp,LOCATION_DECK,0,1,nil) end
......
--決戦融合-ファイナル・フュージョン --決戦融合-ファイナル・フュージョン
function c83555666.initial_effect(c) function c89719143.initial_effect(c)
--Activate --Activate
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE) e1:SetCategory(CATEGORY_DESTROY+CATEGORY_DAMAGE)
...@@ -7,30 +7,30 @@ function c83555666.initial_effect(c) ...@@ -7,30 +7,30 @@ function c83555666.initial_effect(c)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET) e1:SetProperty(EFFECT_FLAG_CARD_TARGET)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,TIMING_BATTLE_PHASE) e1:SetHintTiming(0,TIMING_BATTLE_PHASE)
e1:SetCondition(c83555666.condition) e1:SetCondition(c89719143.condition)
e1:SetTarget(c83555666.target) e1:SetTarget(c89719143.target)
e1:SetOperation(c83555666.activate) e1:SetOperation(c89719143.activate)
c:RegisterEffect(e1) c:RegisterEffect(e1)
end end
function c50789693.condition(e,tp,eg,ep,ev,re,r,rp) function c89719143.condition(e,tp,eg,ep,ev,re,r,rp)
local bt=Duel.GetAttacker() local bt=Duel.GetAttacker()
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
return bt and bt:IsType(TYPE_FUSION) and at and at:IsType(TYPE_FUSION) return bt and bt:IsType(TYPE_FUSION) and at and at:IsType(TYPE_FUSION)
end end
function c83555666.filter(c) function c89719143.filter(c)
return c:IsFaceup() and c:IsDestructable() return c:IsFaceup() and c:IsDestructable()
end end
function c83555666.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c89719143.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
local bt=Duel.GetAttacker() local bt=Duel.GetAttacker()
local at=Duel.GetAttackTarget() local at=Duel.GetAttackTarget()
if chkc then return chkc==bt or chkc==at end if chkc then return chkc==bt or chkc==at end
if chk==0 then return bt:IsOnField() and bt:IsCanBeEffectTarget(e) and at:IsOnField and at:IsCanBeEffectTarget(e) end if chk==0 then return bt:IsOnField() and bt:IsCanBeEffectTarget(e) and at:IsOnField() and at:IsCanBeEffectTarget(e) end
Duel.SetTargetCard(bt) Duel.SetTargetCard(bt)
Duel.SetTargetCard(at) Duel.SetTargetCard(at)
local dam=bt:GetAttack()+at:GetAttack() local dam=bt:GetAttack()+at:GetAttack()
Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,dam) Duel.SetOperationInfo(0,CATEGORY_DAMAGE,nil,0,PLAYER_ALL,dam)
end end
function c83555666.activate(e,tp,eg,ep,ev,re,r,rp) function c89719143.activate(e,tp,eg,ep,ev,re,r,rp)
local d=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM) local d=Duel.GetChainInfo(0,CHAININFO_TARGET_PARAM)
if Duel.NegateAttack() then if Duel.NegateAttack() then
Duel.Damage(1-tp,d,REASON_EFFECT) Duel.Damage(1-tp,d,REASON_EFFECT)
......
...@@ -3,10 +3,10 @@ function c9047460.initial_effect(c) ...@@ -3,10 +3,10 @@ function c9047460.initial_effect(c)
--token --token
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(9047460,0)) e1:SetDescription(aux.Stringid(9047460,0))
e1:SetCategory(CATEGORY.SPECIAL_SUMMON+CATEGORY_TOKEN) e1:SetCategory(CATEGORY_SPECIAL_SUMMON+CATEGORY_TOKEN)
e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F) e1:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_F)
e1:SetCode(EVENT_LEAVE_FIELD) e1:SetCode(EVENT_LEAVE_FIELD)
e4:SetCondition(c4779091.tkcon) e1:SetCondition(c9047460.tkcon)
e1:SetTarget(c9047460.tktg) e1:SetTarget(c9047460.tktg)
e1:SetOperation(c9047460.tkop) e1:SetOperation(c9047460.tkop)
c:RegisterEffect(e1) c:RegisterEffect(e1)
...@@ -28,11 +28,11 @@ end ...@@ -28,11 +28,11 @@ end
function c9047460.tktg(e,tp,eg,ep,ev,re,r,rp,chk) function c9047460.tktg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
Duel.SetOperationInfo(0,CATEGORY.SPECIAL_SUMMON,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,0,0)
end end
function c9047460.tkop(e,tp,eg,ep,ev,re,r,rp) function c9047460.tkop(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end if Duel.GetLocationCount(tp,LOCATION_MZONE)<=0 then return end
if Duel.PlayerCanSpecialSummonMonster(tp,9047461,0,0x4011,100,100,3,RACE_AQUA,ATTRIBUTE_WIND) then if Duel.IsPlayerCanSpecialSummonMonster(tp,9047461,0,0x4011,100,100,3,RACE_AQUA,ATTRIBUTE_WIND) then
local token=Duel.CreateToken(tp,9047461) local token=Duel.CreateToken(tp,9047461)
Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP) Duel.SpecialSummon(token,0,tp,tp,false,false,POS_FACEUP)
end end
......
...@@ -29,7 +29,7 @@ function c95929069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -29,7 +29,7 @@ function c95929069.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,g:GetCount(),0,0)
end end
function c95929069.spfilter(c) function c95929069.spfilter(c,e,tp)
return c:GetCode()==68535320 and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:GetCode()==68535320 and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end end
function c95929069.operation(e,tp,eg,ep,ev,re,r,rp) function c95929069.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -43,7 +43,7 @@ end ...@@ -43,7 +43,7 @@ end
function c96864105.atkop(e,tp,eg,ep,ev,re,r,rp) function c96864105.atkop(e,tp,eg,ep,ev,re,r,rp)
local a=Duel.GetAttacker() local a=Duel.GetAttacker()
local d=Duel.GetAttackTarget() local d=Duel.GetAttackTarget()
if not a:IsRelateToBattle() or not d:IsRelateToBattle() then return end if not (a:IsRelateToBattle() and d and d:IsRelateToBattle()) then return end
local e1=Effect.CreateEffect(e:GetHandler()) local e1=Effect.CreateEffect(e:GetHandler())
e1:SetOwnerPlayer(tp) e1:SetOwnerPlayer(tp)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
......
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