Commit 1c0ce946 authored by Nemo Ma's avatar Nemo Ma

fix

parent 13b80350
......@@ -7,7 +7,7 @@ function cm.initial_effect(c)
local e2=Effect.CreateEffect(c)
e2:SetType(EFFECT_TYPE_FIELD)
e2:SetCode(m)
e2:SetTargetRange(0,LOCATION_MZONE)
e2:SetTargetRange(0,LOCATION_MZONE+LOCATION_GRAVE)
e2:SetRange(LOCATION_SZONE)
c:RegisterEffect(e2)
local e3=rsef.I(c,{m,0},1,"sum",nil,LOCATION_SZONE,nil,nil,rsop.target(cm.sumfilter,"sum",LOCATION_HAND),cm.sumop)
......
......@@ -33,7 +33,7 @@ function cm.thop(e,tp)
rsop.SelectToHand(tp,cm.thfilter,tp,LOCATION_DECK,0,1,1,nil,{})
end
function cm.repfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xc4) and c:IsLocation(LOCATION_ONFIELD)
return c:IsFaceup() and c:IsLocation(LOCATION_ONFIELD)
and c:IsControler(tp)
end
function cm.reptg(e,tp,eg,ep,ev,re,r,rp,chk)
......
......@@ -30,7 +30,7 @@ function cm.spfilter(c,e,tp)
return c:IsAttribute(ATTRIBUTE_LIGHT+ATTRIBUTE_DARK) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) and Duel.GetLocationCount(tp,LOCATION_MZONE)>0
end
function cm.spop2(e,tp)
rsop.SelectSpecialSummon(tp,aux.NecroValleyFilter(cm.spfilter),tp,rsloc.hg,0,1,1,aux.ExceptThisCard(e),{0,tp,tp,false,false,POS_FACEUP,nil,{"dis,dise"}})
rsop.SelectSpecialSummon(tp,aux.NecroValleyFilter(cm.spfilter),tp,rsloc.hg,0,1,1,aux.ExceptThisCard(e),{0,tp,tp,false,false,POS_FACEUP,nil,{"dis,dise"}},e,tp)
end
function cm.repfilter(c,tp)
return c:IsFaceup() and c:IsSetCard(0xc4) and c:IsLocation(LOCATION_ONFIELD)
......
......@@ -212,12 +212,15 @@ s.buff_code_list = {
["ind"] = "!BeDestroyed",
["im"] = "UnaffectedByEffects",
["fmat~"] = "!BeUsedAsFusionMaterial",
["fus~"] = "!BeUsedAsFusionMaterial",
["fsmat~"] = "!BeUsedAsMaterial4FusionSummon",
["smat~"] = "!BeUsedAsSynchroMaterial",
["ssmat~"] = "!BeUsedAsMaterial4SynchroSummon",
["xmat~"] = "!BeUsedAsXyzMaterial",
["xyz~"] = "!BeUsedAsXyzMaterial",
["xsmat~"] = "!BeUsedAsMaterial4XyzSummon",
["lmat~"] = "!BeUsedAsLinkMaterial",
["link~"] = "!BeUsedAsLinkMaterial",
["lsmat~"] = "!BeUsedAsMaterial4LinkSummon",
["tgb~"] = "!BeBattleTarget",
["tge~"] = "!BeEffectTarget",
......
......@@ -75,7 +75,7 @@ end
function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.SetOperationInfo(0,CATEGORY_NEGATE,eg,1,0,0)
local ag=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,0,aux.ExceptThisCard(e))
local ag=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,aux.ExceptThisCard(e))
if re:GetHandler():IsDestructable() and re:GetHandler():IsRelateToEffect(re) then
ag:Merge(eg)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,ag,2,0,0)
......@@ -84,7 +84,7 @@ function cm.distg(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_DESTROY,ag,1,0,0)
end
function cm.disop(e,tp,eg,ep,ev,re,r,rp)
local ag=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD,0,aux.ExceptThisCard(e))
local ag=Duel.GetMatchingGroup(aux.TRUE,tp,LOCATION_ONFIELD+LOCATION_HAND,0,aux.ExceptThisCard(e))
if #ag~=0 then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_DESTROY)
local dg=ag:Select(tp,1,1,nil)
......
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