Commit 4e2481a0 authored by salix5's avatar salix5

fix 闇属性以外

parent 0bcf70a6
......@@ -13,7 +13,7 @@ function c31456110.initial_effect(c)
c:RegisterEffect(e1)
end
function c31456110.filter(c)
return c:IsFaceup() and c:IsAttribute(0x5f) and c:IsLevelAbove(5)
return c:IsFaceup() and c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_DARK) and c:IsLevelAbove(5)
end
function c31456110.destg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and c31456110.filter(chkc) end
......
......@@ -63,5 +63,5 @@ function c46173679.activate(e,tp,eg,ep,ev,re,r,rp)
end
end
function c46173679.recon(e,c)
return not c:IsAttribute(ATTRIBUTE_DARK)
return c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_DARK)
end
......@@ -24,7 +24,7 @@ function c55557574.sumfilter(c)
return c:IsSummonable(true,nil) and c:IsLevel(10)
end
function c55557574.thfilter(c)
return c:GetTextAttack()==-2 and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) and c:IsLevel(10) and not c:IsAttribute(ATTRIBUTE_DARK)
return c:GetTextAttack()==-2 and c:IsAbleToHand() and c:IsType(TYPE_MONSTER) and c:IsLevel(10) and c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_DARK)
end
function c55557574.target(e,tp,eg,ep,ev,re,r,rp,chk)
local g=Duel.GetMatchingGroup(c55557574.checkfilter,tp,LOCATION_MZONE,0,nil)
......
......@@ -14,7 +14,7 @@ function c89732524.target(e,tp,eg,ep,ev,re,r,rp,chk)
Duel.SetOperationInfo(0,CATEGORY_TOHAND,nil,1,tp,LOCATION_DECK)
end
function c89732524.filter(c)
return c:IsRace(RACE_FIEND) and not c:IsAttribute(ATTRIBUTE_DARK+ATTRIBUTE_LIGHT) and c:IsAbleToHand()
return c:IsRace(RACE_FIEND) and c:IsAttribute(ATTRIBUTE_ALL-ATTRIBUTE_DARK-ATTRIBUTE_LIGHT) and c:IsAbleToHand()
end
function c89732524.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATOHAND)
......
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