Commit 03cafacc authored by mercury233's avatar mercury233

update scripts

parent d44e2279
...@@ -40,7 +40,7 @@ function c100231008.initial_effect(c) ...@@ -40,7 +40,7 @@ function c100231008.initial_effect(c)
c:RegisterEffect(e4) c:RegisterEffect(e4)
--pendulum --pendulum
local e5=Effect.CreateEffect(c) local e5=Effect.CreateEffect(c)
e5:SetDescription(aux.Stringid(100231008,2)) e5:SetDescription(aux.Stringid(100231008,1))
e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O) e5:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_TRIGGER_O)
e5:SetProperty(EFFECT_FLAG_DELAY) e5:SetProperty(EFFECT_FLAG_DELAY)
e5:SetCode(EVENT_DESTROYED) e5:SetCode(EVENT_DESTROYED)
......
...@@ -37,7 +37,7 @@ end ...@@ -37,7 +37,7 @@ end
function c100242201.spcon(e,tp,eg,ep,ev,re,r,rp) function c100242201.spcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_FUSION) return c:IsPreviousLocation(LOCATION_MZONE) and c:IsSummonType(SUMMON_TYPE_FUSION)
and rp~=tp and c:GetPreviousControler()==tp and rp==1-tp and c:GetPreviousControler()==tp
end end
function c100242201.spfilter(c,e,tp) function c100242201.spfilter(c,e,tp)
return c:IsCode(70781052) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsCode(70781052) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
...@@ -51,6 +51,7 @@ function c100409004.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -51,6 +51,7 @@ function c100409004.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK) Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end end
function c100409004.activate(e,tp,eg,ep,ev,re,r,rp) function c100409004.activate(e,tp,eg,ep,ev,re,r,rp)
if not e:GetHandler():IsRelateToEffect(e) then return end
local g=Duel.GetMatchingGroup(c100409004.rmfilter,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,nil) local g=Duel.GetMatchingGroup(c100409004.rmfilter,tp,LOCATION_HAND+LOCATION_ONFIELD+LOCATION_GRAVE,0,nil)
if Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)>0 then if Duel.Remove(g,POS_FACEDOWN,REASON_EFFECT)>0 then
local ft=Duel.GetLocationCount(tp,LOCATION_MZONE) local ft=Duel.GetLocationCount(tp,LOCATION_MZONE)
......
...@@ -30,7 +30,7 @@ function c100409015.initial_effect(c) ...@@ -30,7 +30,7 @@ function c100409015.initial_effect(c)
c:RegisterEffect(e3) c:RegisterEffect(e3)
--chain attack --chain attack
local e4=Effect.CreateEffect(c) local e4=Effect.CreateEffect(c)
e4:SetDescription(aux.Stringid(20007374,0)) e4:SetDescription(aux.Stringid(100409015,0))
e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O) e4:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_TRIGGER_O)
e4:SetCode(EVENT_DAMAGE_STEP_END) e4:SetCode(EVENT_DAMAGE_STEP_END)
e4:SetRange(LOCATION_SZONE) e4:SetRange(LOCATION_SZONE)
...@@ -119,7 +119,8 @@ function c100409015.ftarget(e,c) ...@@ -119,7 +119,8 @@ function c100409015.ftarget(e,c)
return e:GetLabel()~=c:GetFieldID() return e:GetLabel()~=c:GetFieldID()
end end
function c100409015.catg(e,tp,eg,ep,ev,re,r,rp,chk) function c100409015.catg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():GetEquipTarget():IsChainAttackable(0,true) end if chk==0 then return Duel.GetFieldGroupCount(tp,0,LOCATION_MZONE)>0
and e:GetHandler():GetEquipTarget():IsChainAttackable(0,true) end
end end
function c100409015.caop(e,tp,eg,ep,ev,re,r,rp) function c100409015.caop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
......
...@@ -95,7 +95,8 @@ function c100409024.splimit(e,c) ...@@ -95,7 +95,8 @@ function c100409024.splimit(e,c)
return not c:IsAttribute(ATTRIBUTE_DARK) and c:IsLocation(LOCATION_EXTRA) return not c:IsAttribute(ATTRIBUTE_DARK) and c:IsLocation(LOCATION_EXTRA)
end end
function c100409024.tgop(e,tp,eg,ep,ev,re,r,rp) function c100409024.tgop(e,tp,eg,ep,ev,re,r,rp)
if Duel.SendtoGrave(e:GetHandler(),REASON_EFFECT)~=0 then local c=e:GetHandler()
if Duel.SendtoGrave(c,REASON_EFFECT)~=0 and c:IsLocation(LOCATION_GRAVE) then
Duel.Damage(tp,1000,REASON_EFFECT) Duel.Damage(tp,1000,REASON_EFFECT)
end end
end end
...@@ -75,7 +75,7 @@ function c100409035.effop(e,tp,eg,ep,ev,re,r,rp) ...@@ -75,7 +75,7 @@ function c100409035.effop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local rc=c:GetReasonCard() local rc=c:GetReasonCard()
local e1=Effect.CreateEffect(rc) local e1=Effect.CreateEffect(rc)
e1:SetDescription(aux.Stringid(100409035,0)) e1:SetDescription(aux.Stringid(100409035,1))
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_CLIENT_HINT) e1:SetProperty(EFFECT_FLAG_CLIENT_HINT)
e1:SetCode(EFFECT_BATTLE_DESTROY_REDIRECT) e1:SetCode(EFFECT_BATTLE_DESTROY_REDIRECT)
......
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