Commit b7e0addc authored by Chrono-Genex's avatar Chrono-Genex Committed by GitHub

use ATTRIBUTE_ALL (#1623)

parent 91d15b00
...@@ -19,7 +19,7 @@ function c15595052.ancop(e,tp,eg,ep,ev,re,r,rp) ...@@ -19,7 +19,7 @@ function c15595052.ancop(e,tp,eg,ep,ev,re,r,rp)
local ct=Duel.GetMatchingGroupCount(Card.IsCode,tp,LOCATION_GRAVE,0,nil,15595052) local ct=Duel.GetMatchingGroupCount(Card.IsCode,tp,LOCATION_GRAVE,0,nil,15595052)
if ct>0 and c:IsFaceup() and c:IsRelateToEffect(e) then if ct>0 and c:IsFaceup() and c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,ct,0xffff) local att=Duel.AnnounceAttribute(tp,ct,ATTRIBUTE_ALL)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,att) e:GetHandler():SetHint(CHINT_ATTRIBUTE,att)
--destroy --destroy
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
......
...@@ -24,7 +24,7 @@ function c27340877.activate(e,tp,eg,ep,ev,re,r,rp) ...@@ -24,7 +24,7 @@ function c27340877.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc:IsRelateToEffect(e) and tc:IsFacedown() then if tc:IsRelateToEffect(e) and tc:IsFacedown() then
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(1-tp,2,0xffffff) local rc=Duel.AnnounceAttribute(1-tp,2,ATTRIBUTE_ALL)
Duel.ConfirmCards(1-tp,tc) Duel.ConfirmCards(1-tp,tc)
if tc:IsAttribute(rc) then if tc:IsAttribute(rc) then
Duel.Draw(1-tp,2,REASON_EFFECT) Duel.Draw(1-tp,2,REASON_EFFECT)
......
...@@ -18,7 +18,7 @@ function c30334522.target(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -18,7 +18,7 @@ function c30334522.target(e,tp,eg,ep,ev,re,r,rp,chk)
local rc=Duel.AnnounceRace(tp,1,RACE_ALL) local rc=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local at=Duel.AnnounceAttribute(tp,1,0xffff) local at=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL)
Duel.SetTargetParam(at) Duel.SetTargetParam(at)
end end
function c30334522.operation(e,tp,eg,ep,ev,re,r,rp) function c30334522.operation(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -48,7 +48,7 @@ function c34989413.atttg(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -48,7 +48,7 @@ function c34989413.atttg(e,tp,eg,ep,ev,re,r,rp,chk)
local lg=e:GetHandler():GetLinkedGroup() local lg=e:GetHandler():GetLinkedGroup()
if chk==0 then return Duel.IsExistingMatchingCard(c34989413.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,lg) end if chk==0 then return Duel.IsExistingMatchingCard(c34989413.filter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil,lg) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,1,0xffff) local att=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL)
e:SetLabel(att) e:SetLabel(att)
end end
function c34989413.attop(e,tp,eg,ep,ev,re,r,rp) function c34989413.attop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -14,7 +14,7 @@ function c40410110.attop(e,tp,eg,ep,ev,re,r,rp) ...@@ -14,7 +14,7 @@ function c40410110.attop(e,tp,eg,ep,ev,re,r,rp)
if c:IsFaceup() and c:IsRelateToEffect(e) then if c:IsFaceup() and c:IsRelateToEffect(e) then
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local catt=c:GetAttribute() local catt=c:GetAttribute()
local att=Duel.AnnounceAttribute(tp,1,0xffff - catt) local att=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL-catt)
local e1=Effect.CreateEffect(c) local e1=Effect.CreateEffect(c)
e1:SetType(EFFECT_TYPE_SINGLE) e1:SetType(EFFECT_TYPE_SINGLE)
e1:SetProperty(EFFECT_FLAG_COPY_INHERIT) e1:SetProperty(EFFECT_FLAG_COPY_INHERIT)
......
...@@ -20,7 +20,7 @@ end ...@@ -20,7 +20,7 @@ end
function c56769674.target(e,tp,eg,ep,ev,re,r,rp,chk) function c56769674.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL)
e:GetLabelObject():SetLabel(rc) e:GetLabelObject():SetLabel(rc)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc) e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
end end
......
...@@ -84,7 +84,7 @@ end ...@@ -84,7 +84,7 @@ end
function c5795980.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c5795980.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
end end
function c5795980.atop(e,tp,eg,ep,ev,re,r,rp) function c5795980.atop(e,tp,eg,ep,ev,re,r,rp)
......
...@@ -31,7 +31,7 @@ end ...@@ -31,7 +31,7 @@ end
function c88581108.attg(e,tp,eg,ep,ev,re,r,rp,chk) function c88581108.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end if chk==0 then return Duel.IsExistingMatchingCard(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE) Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xffff) local rc=Duel.AnnounceAttribute(tp,1,ATTRIBUTE_ALL)
e:SetLabel(rc) e:SetLabel(rc)
end end
function c88581108.atop(e,tp,eg,ep,ev,re,r,rp) function c88581108.atop(e,tp,eg,ep,ev,re,r,rp)
......
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