Commit 9da2297b authored by POLYMER's avatar POLYMER

fix

parent fe01bb34
...@@ -36,7 +36,7 @@ function cm.initial_effect(c) ...@@ -36,7 +36,7 @@ function cm.initial_effect(c)
e5:SetCode(EVENT_CHAINING) e5:SetCode(EVENT_CHAINING)
e5:SetValue(function(e,c) return e:GetHandler():GetEquipTarget():IsSetCard(0x1142) end) e5:SetValue(function(e,c) return e:GetHandler():GetEquipTarget():IsSetCard(0x1142) end)
e5:SetRange(LOCATION_ONFIELD) e5:SetRange(LOCATION_ONFIELD)
e5:SetCountLimit(1,13131310) e5:SetCountLimit(1,13131310*2)
e5:SetCondition(cm.thcon) e5:SetCondition(cm.thcon)
e5:SetTarget(cm.drtg) e5:SetTarget(cm.drtg)
e5:SetOperation(cm.drop) e5:SetOperation(cm.drop)
......
...@@ -13,7 +13,7 @@ function cm.initial_effect(c) ...@@ -13,7 +13,7 @@ function cm.initial_effect(c)
--destroy --destroy
local e2=Effect.CreateEffect(c) local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e2:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE+EFFECT_FLAG_UNCOPYABLE) e2:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_UNCOPYABLE)
e2:SetCode(EVENT_BATTLED) e2:SetCode(EVENT_BATTLED)
e2:SetRange(LOCATION_MZONE) e2:SetRange(LOCATION_MZONE)
e2:SetOperation(cm.desop) e2:SetOperation(cm.desop)
...@@ -21,7 +21,7 @@ function cm.initial_effect(c) ...@@ -21,7 +21,7 @@ function cm.initial_effect(c)
--summon success --summon success
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS) e3:SetType(EFFECT_TYPE_SINGLE+EFFECT_TYPE_CONTINUOUS)
e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE+EFFECT_FLAG_CANNOT_NEGATE) e3:SetProperty(EFFECT_FLAG_CANNOT_DISABLE)
e3:SetCode(EVENT_SPSUMMON_SUCCESS) e3:SetCode(EVENT_SPSUMMON_SUCCESS)
e3:SetCondition(cm.sumcon) e3:SetCondition(cm.sumcon)
e3:SetOperation(cm.sumsuc) e3:SetOperation(cm.sumsuc)
...@@ -57,11 +57,11 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp) ...@@ -57,11 +57,11 @@ function cm.desop(e,tp,eg,ep,ev,re,r,rp)
end end
end end
function cm.sumcon(e,tp,eg,ep,ev,re,r,rp) function cm.sumcon(e,tp,eg,ep,ev,re,r,rp)
return e:GetHandler():IsAttackable() and Duel.GetFlagEffect(tp,14000206)>0 return Duel.GetFlagEffect(tp,14000206)>0
end end
function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp) function cm.sumsuc(e,tp,eg,ep,ev,re,r,rp)
local c=e:GetHandler() local c=e:GetHandler()
if not c:IsAttackable() or not c:IsRelateToEffect(e) then return end --if not c:IsAttackable() or not c:IsRelateToEffect(e) then return end
value=c:GetAttack() value=c:GetAttack()
ef=c:IsHasEffect(EFFECT_DEFENSE_ATTACK) ef=c:IsHasEffect(EFFECT_DEFENSE_ATTACK)
if ef and ef:GetValue()==1 then if ef and ef:GetValue()==1 then
......
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