Commit 9b54370e authored by nekrozar's avatar nekrozar Committed by mercury233

update (#961)

parent bcd9a5c2
......@@ -29,7 +29,7 @@ function c10352095.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_EQUIP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:GetLabelObject():SetLabel(rc)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
......
......@@ -16,7 +16,7 @@ function c20127343.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chk==0 then return Duel.IsExistingTarget(Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
local g=Duel.SelectTarget(tp,Card.IsFaceup,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,1,0xff-g:GetFirst():GetAttribute())
e:SetLabel(att)
end
......
......@@ -73,7 +73,7 @@ function c27769400.desfilter(c,att)
end
function c27769400.destg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local rc=Duel.AnnounceAttribute(tp,1,0xff)
Duel.SetTargetParam(rc)
e:GetHandler():SetHint(CHINT_ATTRIBUTE,rc)
......
......@@ -27,7 +27,7 @@ function c33184167.target(e,tp,eg,ep,ev,re,r,rp,chk)
race=bit.bor(race,tc:GetRace())
tc=g:GetNext()
end
Duel.Hint(HINT_SELECTMSG,tp,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local arc=Duel.AnnounceRace(tp,1,race)
e:SetLabel(arc)
local dg=g:Filter(Card.IsRace,nil,arc)
......
......@@ -22,7 +22,7 @@ end
function c38049541.costg(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return chkc:IsLocation(LOCATION_MZONE) and chkc:IsControler(tp) and chkc:IsFaceup() end
if chk==0 then return Duel.IsExistingTarget(c38049541.filter,tp,LOCATION_MZONE,0,1,nil) end
Duel.Hint(HINT_SELECTMSG,tp,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local att=Duel.AnnounceAttribute(tp,1,0x7f)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_FACEUP)
Duel.SelectTarget(tp,c38049541.filter,tp,LOCATION_MZONE,0,1,1,nil)
......
......@@ -30,6 +30,7 @@ function c49600724.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
att=bit.bor(att,tc:GetAttribute())
tc=rg:GetNext()
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local ac=Duel.AnnounceAttribute(tp,1,att)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_REMOVE)
local sg=rg:FilterSelect(tp,Card.IsAttribute,2,2,nil,ac)
......
......@@ -77,7 +77,7 @@ function c53334471.adjustop(e,tp,eg,ep,ev,re,r,rp)
local att=c53334471.getattribute(g1)
if bit.band(att,att-1)~=0 then
if c53334471[tp]==0 or bit.band(c53334471[tp],att)==0 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(53334471,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
att=Duel.AnnounceAttribute(tp,1,att)
else att=c53334471[tp] end
end
......@@ -89,7 +89,7 @@ function c53334471.adjustop(e,tp,eg,ep,ev,re,r,rp)
local att=c53334471.getattribute(g2)
if bit.band(att,att-1)~=0 then
if c53334471[1-tp]==0 or bit.band(c53334471[1-tp],att)==0 then
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(53334471,0))
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATTRIBUTE)
att=Duel.AnnounceAttribute(1-tp,1,att)
else att=c53334471[1-tp] end
end
......
......@@ -41,7 +41,7 @@ function c54757758.tglimit(e,c)
end
function c54757758.atttg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,563)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local aat=Duel.AnnounceAttribute(tp,1,0xff-e:GetHandler():GetAttribute())
e:SetLabel(aat)
end
......
......@@ -18,7 +18,7 @@ function c56704140.cost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c56704140.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local aat=Duel.AnnounceAttribute(tp,1,0x7f)
e:SetLabel(aat)
end
......
......@@ -37,10 +37,10 @@ function c60530944.operation(e,tp,eg,ep,ev,re,r,rp)
local g1=Duel.GetFieldGroup(tp,LOCATION_MZONE,0)
local g2=Duel.GetFieldGroup(tp,0,LOCATION_MZONE)
local c=e:GetHandler()
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(60530944,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local r1=Duel.AnnounceAttribute(tp,1,c60530944.getattr(g1))
g1:Remove(c60530944.rmfilter,nil,r1)
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(60530944,0))
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_ATTRIBUTE)
local r2=Duel.AnnounceAttribute(1-tp,1,c60530944.getattr(g2))
g2:Remove(c60530944.rmfilter,nil,r2)
g1:Merge(g2)
......
......@@ -54,7 +54,7 @@ function c8522996.chcost(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c8522996.chtg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_ATTRIBUTE)
local aat=Duel.AnnounceAttribute(tp,1,0x7f)
e:SetLabel(aat)
end
......
......@@ -78,7 +78,7 @@ function c90846359.adjustop(e,tp,eg,ep,ev,re,r,rp)
local rac=c90846359.getrace(g1)
if bit.band(rac,rac-1)~=0 then
if c90846359[tp]==0 or bit.band(c90846359[tp],rac)==0 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(90846359,0))
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
rac=Duel.AnnounceRace(tp,1,rac)
else rac=c90846359[tp] end
end
......@@ -90,7 +90,7 @@ function c90846359.adjustop(e,tp,eg,ep,ev,re,r,rp)
local rac=c90846359.getrace(g2)
if bit.band(rac,rac-1)~=0 then
if c90846359[1-tp]==0 or bit.band(c90846359[1-tp],rac)==0 then
Duel.Hint(HINT_SELECTMSG,1-tp,aux.Stringid(90846359,0))
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_RACE)
rac=Duel.AnnounceRace(1-tp,1,rac)
else rac=c90846359[1-tp] end
end
......
......@@ -18,7 +18,7 @@ function c98126725.atcon(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c98126725.attg(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return true end
Duel.Hint(HINT_SELECTMSG,tp,0)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_RACE)
local ac=Duel.AnnounceRace(tp,1,RACE_ALL)
e:SetLabel(ac)
end
......
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