Commit 9ba5606c authored by argon.sun's avatar argon.sun

fix

parent 301b712d
......@@ -631,8 +631,8 @@ void card::xyz_add(card* mat, card_set* des) {
xyz_materials.push_back(mat);
for(auto cit = mat->equiping_cards.begin(); cit != mat->equiping_cards.end();) {
auto rm = cit++;
(*rm)->unequip();
des->insert(*rm);
(*rm)->unequip();
}
mat->overlay_target = this;
mat->current.controler = PLAYER_NONE;
......
......@@ -17,9 +17,9 @@ function c48216773.target(e,tp,eg,ep,ev,re,r,rp,chk)
end
function c48216773.activate(e,tp,eg,ep,ev,re,r,rp)
Duel.Hint(HINT_SELECTMSG,tp,HINTMSG_TODECK)
local dg1=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_MZONE,0,1,1nil)
local dg1=Duel.SelectMatchingCard(tp,Card.IsAbleToDeck,tp,LOCATION_MZONE,0,1,1,nil)
Duel.Hint(HINT_SELECTMSG,1-tp,HINTMSG_TODECK)
local dg2=Duel.SelectMatchingCard(1-tp,Card.IsAbleToDeck,1-tp,LOCATION_MZONE,0,1,1nil)
local dg2=Duel.SelectMatchingCard(1-tp,Card.IsAbleToDeck,1-tp,LOCATION_MZONE,0,1,1,nil)
dg1:Merge(dg2)
Duel.SendtoDeck(dg1,nil,2,REASON_EFFECT)
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