Commit 0f39a0be authored by mercury233's avatar mercury233 Committed by GitHub

fix Nobleman of Crossout

parent 000c783a
...@@ -23,18 +23,17 @@ function c71044499.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc) ...@@ -23,18 +23,17 @@ function c71044499.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
end end
function c71044499.activate(e,tp,eg,ep,ev,re,r,rp) function c71044499.activate(e,tp,eg,ep,ev,re,r,rp)
local tc=Duel.GetFirstTarget() local tc=Duel.GetFirstTarget()
if tc and tc:IsFacedown() and tc:IsRelateToEffect(e) then if tc:IsFacedown() and tc:IsRelateToEffect(e)
Duel.Destroy(tc,REASON_EFFECT,LOCATION_REMOVED) and Duel.Destroy(tc,REASON_EFFECT,LOCATION_REMOVED)>0
if tc:IsType(TYPE_FLIP) then and tc:IsLocation(LOCATION_REMOVED) and tc:IsType(TYPE_FLIP) then
local code=tc:GetCode() local code=tc:GetCode()
local g=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK,LOCATION_DECK,nil,code) local g=Duel.GetMatchingGroup(Card.IsCode,tp,LOCATION_DECK,LOCATION_DECK,nil,code)
Duel.Remove(g,POS_FACEUP,REASON_EFFECT) Duel.Remove(g,POS_FACEUP,REASON_EFFECT)
g=Duel.GetFieldGroup(tp,0,LOCATION_DECK) g=Duel.GetFieldGroup(tp,0,LOCATION_DECK)
Duel.ConfirmCards(tp,g) Duel.ConfirmCards(tp,g)
g=Duel.GetFieldGroup(tp,LOCATION_DECK,0) g=Duel.GetFieldGroup(tp,LOCATION_DECK,0)
Duel.ConfirmCards(1-tp,g) Duel.ConfirmCards(1-tp,g)
Duel.ShuffleDeck(tp) Duel.ShuffleDeck(tp)
Duel.ShuffleDeck(1-tp) Duel.ShuffleDeck(1-tp)
end
end end
end 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