Commit 0ccc513a authored by salix5's avatar salix5

Merge pull request #1541 from Tianchenglipu/patch-6

Fix Xyz Material Detachers
parents f3896e74 35412266
......@@ -29,7 +29,7 @@ function c40817915.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
and Duel.IsExistingTarget(c40817915.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,nil)
and Duel.IsExistingMatchingCard(c40817915.spfilter,tp,LOCATION_DECK,0,1,nil,e,tp)
end
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TARGET)
Duel.Hint(HINT_SELECTMSG,tp,532)
local g=Duel.SelectTarget(tp,c40817915.ofilter,tp,LOCATION_MZONE,LOCATION_MZONE,1,1,nil)
Duel.SetOperationInfo(0,CATEGORY_SPECIAL_SUMMON,nil,1,tp,LOCATION_DECK)
end
......
......@@ -19,5 +19,12 @@ function c59644958.target(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return Duel.CheckRemoveOverlayCard(tp,1,1,1,REASON_EFFECT) end
end
function c59644958.operation(e,tp,eg,ep,ev,re,r,rp)
Duel.RemoveOverlayCard(tp,1,1,1,1,REASON_EFFECT)
local sg=Duel.GetMatchingGroup(Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end
if sg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,532)
sg=sg:Select(tp,1,1,nil)
Duel.HintSelection(sg)
end
sg:GetFirst():RemoveOverlayCard(tp,1,1,REASON_EFFECT)
end
......@@ -15,7 +15,7 @@ function c69176131.activate(e,tp,eg,ep,ev,re,r,rp)
local sg=Duel.GetMatchingGroup(Card.CheckRemoveOverlayCard,tp,LOCATION_MZONE,LOCATION_MZONE,nil,tp,1,REASON_EFFECT)
if sg:GetCount()==0 then return end
if sg:GetCount()>1 then
Duel.Hint(HINT_SELECTMSG,tp,aux.Stringid(69176131,0))
Duel.Hint(HINT_SELECTMSG,tp,532)
sg=sg:Select(tp,1,1,nil)
Duel.HintSelection(sg)
end
......
......@@ -94,6 +94,7 @@
!system 529 请选择自己的卡
!system 530 请选择对方的卡
!system 531 请选择上级召唤用需要解放的怪兽:
!system 532 请选择要取除超量素材的怪兽
!system 550 请选择要发动的效果
!system 551 请选择效果的对象
!system 552 请选择硬币的正反面
......
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