Commit ac5fae27 authored by nanahira's avatar nanahira

fix

parent 746312dc
...@@ -44,7 +44,7 @@ function cm.filter1(c) ...@@ -44,7 +44,7 @@ function cm.filter1(c)
return c:IsCode(77765001) return c:IsCode(77765001)
end end
function cm.con(e) function cm.con(e)
return not Duel.IsExistingMatchingCard(cm.filter1,e:GetHandlerPlayer(),LOCATION_GRAVE,0,1,nil) return not Duel.IsExistingMatchingCard(cm.filter1,e:GetHandlerPlayer(),LOCATION_MZONE,0,1,nil)
end end
function cm.costfilter(c) function cm.costfilter(c)
return Kaguya.IsDifficulty(c) and c:IsDiscardable() return Kaguya.IsDifficulty(c) and c:IsDiscardable()
......
...@@ -32,6 +32,28 @@ function cm.initial_effect(c) ...@@ -32,6 +32,28 @@ function cm.initial_effect(c)
e2:SetRange(LOCATION_SZONE) e2:SetRange(LOCATION_SZONE)
e2:SetOperation(cm.counter) e2:SetOperation(cm.counter)
c:RegisterEffect(e2) c:RegisterEffect(e2)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_UPDATE_ATTACK)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(function(e,c)
return c:IsFaceup()
end)
e2:SetValue(function(e,c)
return e:GetHandler():GetCounter(0x1)*-300
end)
c:RegisterEffect(e2)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(EFFECT_SELF_TOGRAVE)
e2:SetRange(LOCATION_SZONE)
e2:SetTargetRange(LOCATION_MZONE,0)
e2:SetTarget(function(e,c)
return c:IsFaceup() and c:IsAttack(0) and c:GetBaseAttack()>0
end)
e2:SetValue(1)
c:RegisterEffect(e2)
local e3=Effect.CreateEffect(c) local e3=Effect.CreateEffect(c)
e3:SetDescription(m*16) e3:SetDescription(m*16)
e3:SetCategory(CATEGORY_SPECIAL_SUMMON) e3:SetCategory(CATEGORY_SPECIAL_SUMMON)
......
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