Commit c87d9f8f authored by argon.sun's avatar argon.sun

fix

parent f680beda
......@@ -358,10 +358,9 @@ void field::shuffle(uint8 playerid, uint8 location) {
if(svector.size() == 0)
return;
if(svector.size() > 1) {
card_vector::iterator cit;
uint32 i = 0, s = svector.size(), r;
for(i = 0; i < s; ++i) {
r = pduel->get_next_integer(0, s - 1);
for(i = 0; i < s - 1; ++i) {
r = pduel->get_next_integer(i, s - 1);
t = svector[i];
svector[i] = svector[r];
svector[r] = t;
......
......@@ -1458,6 +1458,10 @@ int32 field::process_phase_event(int16 step, int32 phase) {
core.select_cards.clear();
for(auto cit = player[infos.turn_player].list_hand.begin(); cit != player[infos.turn_player].list_hand.end(); ++cit)
core.select_cards.push_back(*cit);
pduel->write_buffer8(MSG_HINT);
pduel->write_buffer8(HINT_SELECTMSG);
pduel->write_buffer8(infos.turn_player);
pduel->write_buffer32(501);
add_process(PROCESSOR_SELECT_CARD, 0, 0, 0, infos.turn_player, hd - limit + ((hd - limit) << 16));
return FALSE;
}
......
......@@ -18,7 +18,7 @@ function c91822647.filter1(c,e)
return c:IsSetCard(0x10) and c:IsType(TYPE_MONSTER) and c:IsAbleToDeck()
end
function c91822647.filter2(c,e,tp)
return c:IsDefenceBelow(1000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
return c:IsSetCard(0x10) and c:IsDefenceBelow(1000) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
end
function c91822647.target(e,tp,eg,ep,ev,re,r,rp,chk,chkc)
if chkc then return false 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