Commit 54e8c9d4 authored by VanillaSalt's avatar VanillaSalt

fix

parent 9567ab0b
...@@ -6,10 +6,18 @@ function c18013090.initial_effect(c) ...@@ -6,10 +6,18 @@ function c18013090.initial_effect(c)
--atkup --atkup
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:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e1:SetCode(EVENT_CHAINING) e1:SetCode(EVENT_CHAINING)
e1:SetRange(LOCATION_MZONE) e1:SetRange(LOCATION_MZONE)
e1:SetOperation(c18013090.atop1) e1:SetCondition(c18013090.atcon)
e1:SetOperation(aux.chainreg)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD+EFFECT_TYPE_CONTINUOUS)
e2:SetCode(EVENT_CHAIN_SOLVED)
e2:SetRange(LOCATION_MZONE)
e2:SetOperation(c18013090.atop)
c:RegisterEffect(e2)
--chain attack --chain attack
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(aux.Stringid(18013090,0)) e3:SetDescription(aux.Stringid(18013090,0))
...@@ -26,10 +34,13 @@ c18013090.material_setcode=0x1017 ...@@ -26,10 +34,13 @@ c18013090.material_setcode=0x1017
function c18013090.tfilter(c) function c18013090.tfilter(c)
return c:IsCode(96182448) or c:IsHasEffect(20932152) return c:IsCode(96182448) or c:IsHasEffect(20932152)
end end
function c18013090.atop1(e,tp,eg,ep,ev,re,r,rp) function c18013090.atcon(e,tp,eg,ep,ev,re,r,rp)
if Duel.GetTurnPlayer()~=tp or ep~=tp then return end return ep==tp and Duel.GetTurnPlayer()==tp
if not re:IsHasType(EFFECT_TYPE_ACTIVATE) or not re:IsActiveType(TYPE_SPELL) then return end and re:IsHasType(EFFECT_TYPE_ACTIVATE) and re:IsActiveType(TYPE_SPELL)
end
function c18013090.atop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if c:GetFlagEffect(1)==0 then return end
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_UPDATE_ATTACK) e2:SetCode(EFFECT_UPDATE_ATTACK)
......
...@@ -14,13 +14,13 @@ function c86871614.initial_effect(c) ...@@ -14,13 +14,13 @@ function c86871614.initial_effect(c)
c:RegisterEffect(e2) c:RegisterEffect(e2)
end end
function c86871614.condition(e,tp,eg,ep,ev,re,r,rp) function c86871614.condition(e,tp,eg,ep,ev,re,r,rp)
local ec=eg:GetFirst()
return ep~=tp return ep~=tp
end end
function c86871614.target(e,tp,eg,ep,ev,re,r,rp,chk) function c86871614.target(e,tp,eg,ep,ev,re,r,rp,chk)
local ec=eg:GetFirst() local ec=eg:GetFirst()
if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0 and if chk==0 then return Duel.GetLocationCount(tp,LOCATION_MZONE)>0
Duel.IsPlayerCanSpecialSummonMonster(tp,86871615,0,0x4011,ec:GetBaseAttack(),ec:GetBaseDefense(), and ec:GetOriginalLevel()>0
and Duel.IsPlayerCanSpecialSummonMonster(tp,86871615,0,0x4011,ec:GetBaseAttack(),ec:GetBaseDefense(),
ec:GetOriginalLevel(),ec:GetOriginalRace(),ec:GetOriginalAttribute()) end ec:GetOriginalLevel(),ec:GetOriginalRace(),ec:GetOriginalAttribute()) end
ec:CreateEffectRelation(e) ec:CreateEffectRelation(e)
Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0) Duel.SetOperationInfo(0,CATEGORY_TOKEN,nil,1,0,0)
......
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