Commit 83dac712 authored by nekrozar's avatar nekrozar

fix

parent e76f1d2f
...@@ -7,6 +7,7 @@ function c13317419.initial_effect(c) ...@@ -7,6 +7,7 @@ function c13317419.initial_effect(c)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_STEP) e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCountLimit(1,13317419)
e1:SetCondition(c13317419.condition) e1:SetCondition(c13317419.condition)
e1:SetTarget(c13317419.target) e1:SetTarget(c13317419.target)
e1:SetOperation(c13317419.operation) e1:SetOperation(c13317419.operation)
...@@ -47,7 +48,7 @@ function c13317419.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -47,7 +48,7 @@ function c13317419.operation(e,tp,eg,ep,ev,re,r,rp)
e2:SetType(EFFECT_TYPE_QUICK_O) e2:SetType(EFFECT_TYPE_QUICK_O)
e2:SetCode(EVENT_FREE_CHAIN) e2:SetCode(EVENT_FREE_CHAIN)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetCountLimit(1) e2:SetCountLimit(1,13317419)
e2:SetCost(c13317419.descost) e2:SetCost(c13317419.descost)
e2:SetTarget(c13317419.destg) e2:SetTarget(c13317419.destg)
e2:SetOperation(c13317419.desop) e2:SetOperation(c13317419.desop)
...@@ -65,6 +66,7 @@ function c13317419.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -65,6 +66,7 @@ function c13317419.operation(e,tp,eg,ep,ev,re,r,rp)
end end
function c13317419.descost(e,tp,eg,ep,ev,re,r,rp,chk) function c13317419.descost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end if chk==0 then return e:GetHandler():IsAbleToGraveAsCost() end
e:SetLabelObject(e:GetHandler():GetEquipTarget())
Duel.SendtoGrave(e:GetHandler(),REASON_COST) Duel.SendtoGrave(e:GetHandler(),REASON_COST)
end end
function c13317419.desfilter(c) function c13317419.desfilter(c)
...@@ -78,18 +80,18 @@ function c13317419.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -78,18 +80,18 @@ function c13317419.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0) Duel.SetOperationInfo(0,CATEGORY_DESTROY,g,1,0,0)
end end
function c13317419.desop(e,tp,eg,ep,ev,re,r,rp) function c13317419.desop(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local ec=e:GetLabelObject()
local ec=c:GetEquipTarget()
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFaceup() then if tc:IsRelateToEffect(e) and tc:IsFaceup() then
if Duel.Destroy(tc,REASON_EFFECT)>0 and ec:IsFaceup() then Duel.Destroy(tc,REASON_EFFECT)
local e1=Effect.CreateEffect(c) if ec then
local e1=Effect.CreateEffect(e:GetHandler())
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetCode(EFFECT_SET_ATTACK_FINAL) e1:SetCode(EFFECT_SET_ATTACK_FINAL)
e1:SetValue(0) e1:SetValue(0)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
ec:RegisterEffect(e1) ec:RegisterEffect(e1)
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(e:GetHandler())
e2:SetType(EFFECT_TYPE_SINGLE) e2:SetType(EFFECT_TYPE_SINGLE)
e2:SetCode(EFFECT_CANNOT_CHANGE_POSITION) e2:SetCode(EFFECT_CANNOT_CHANGE_POSITION)
e2:SetReset(RESET_EVENT+0x1fe0000) e2:SetReset(RESET_EVENT+0x1fe0000)
......
...@@ -30,8 +30,11 @@ function c17530001.operation(e,tp,eg,ep,ev,re,r,rp) ...@@ -30,8 +30,11 @@ function c17530001.operation(e,tp,eg,ep,ev,re,r,rp)
e1:SetReset(RESET_EVENT+0x1fe0000) e1:SetReset(RESET_EVENT+0x1fe0000)
c:RegisterEffect(e1) c:RegisterEffect(e1)
local e2=e1:Clone() local e2=e1:Clone()
e2:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON) e2:SetCode(EFFECT_CANNOT_MSET)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e3=e1:Clone()
e3:SetCode(EFFECT_CANNOT_SPECIAL_SUMMON)
c:RegisterEffect(e3)
end end
function c17530001.tglimit(e,c) function c17530001.tglimit(e,c)
return c:GetLevel()==e:GetLabel() return c:GetLevel()==e:GetLabel()
......
--고신 하스톨 --고신 하스톨
function c70913714.initial_effect(c) function c70913714.initial_effect(c)
--synchro summon
aux.AddSynchroProcedure(c,nil,aux.NonTuner(nil),1)
c:EnableReviveLimit()
--equip --equip
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetDescription(aux.Stringid(70913714,0)) e1:SetDescription(aux.Stringid(70913714,0))
...@@ -63,7 +66,7 @@ end ...@@ -63,7 +66,7 @@ end
function c70913714.ctcon(e,tp,eg,ep,ev,re,r,rp) function c70913714.ctcon(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
local ec=c:GetEquipTarget() local ec=c:GetEquipTarget()
return c:GetLocation()~=LOCATION_DECK e:SetLabelObject(ec)
return ec and c:GetLocation()~=LOCATION_DECK and ec:IsLocation(LOCATION_MZONE) and ec:IsControler(1-tp) return ec and c:GetLocation()~=LOCATION_DECK and ec:IsLocation(LOCATION_MZONE) and ec:IsControler(1-tp)
end end
function c70913714.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc) function c70913714.cttg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
......
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