Commit 73c32635 authored by VanillaSalt's avatar VanillaSalt

fix

parent 3245c21b
...@@ -564,11 +564,11 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) { ...@@ -564,11 +564,11 @@ int SingleDuel::Analyze(char* msgbuffer, unsigned int len) {
case 1: case 1:
case 2: case 2:
case 3: case 3:
case 4:
case 5: { case 5: {
NetServer::SendBufferToPlayer(players[player], STOC_GAME_MSG, offset, pbuf - offset); NetServer::SendBufferToPlayer(players[player], STOC_GAME_MSG, offset, pbuf - offset);
break; break;
} }
case 4:
case 6: case 6:
case 7: case 7:
case 8: case 8:
......
...@@ -1894,7 +1894,6 @@ int32 field::is_player_can_spsummon(uint8 playerid) { ...@@ -1894,7 +1894,6 @@ int32 field::is_player_can_spsummon(uint8 playerid) {
if(!eset[i]->target) if(!eset[i]->target)
return FALSE; return FALSE;
} }
eset.clear();
return TRUE; return TRUE;
} }
int32 field::is_player_can_spsummon(effect * peffect, uint32 sumtype, uint8 sumpos, uint8 playerid, uint8 toplayer, card * pcard) { int32 field::is_player_can_spsummon(effect * peffect, uint32 sumtype, uint8 sumpos, uint8 playerid, uint8 toplayer, card * pcard) {
...@@ -1916,7 +1915,6 @@ int32 field::is_player_can_spsummon(effect * peffect, uint32 sumtype, uint8 sump ...@@ -1916,7 +1915,6 @@ int32 field::is_player_can_spsummon(effect * peffect, uint32 sumtype, uint8 sump
if (pduel->lua->check_condition(eset[i]->target, 7)) if (pduel->lua->check_condition(eset[i]->target, 7))
return FALSE; return FALSE;
} }
eset.clear();
if(!check_spsummon_once(pcard, playerid)) if(!check_spsummon_once(pcard, playerid))
return FALSE; return FALSE;
if(!check_spsummon_counter(playerid)) if(!check_spsummon_counter(playerid))
......
...@@ -625,7 +625,7 @@ int32 field::process() { ...@@ -625,7 +625,7 @@ int32 field::process() {
pduel->lua->add_param(returns.ivalue[0], PARAM_TYPE_INT); pduel->lua->add_param(returns.ivalue[0], PARAM_TYPE_INT);
pduel->write_buffer8(MSG_HINT); pduel->write_buffer8(MSG_HINT);
pduel->write_buffer8(HINT_OPSELECTED); pduel->write_buffer8(HINT_OPSELECTED);
pduel->write_buffer8(1 - it->arg1); pduel->write_buffer8(it->arg1);
pduel->write_buffer32(core.select_options[returns.ivalue[0]]); pduel->write_buffer32(core.select_options[returns.ivalue[0]]);
core.units.pop_front(); core.units.pop_front();
} }
......
...@@ -7,6 +7,7 @@ function c12444060.initial_effect(c) ...@@ -7,6 +7,7 @@ function c12444060.initial_effect(c)
e1:SetType(EFFECT_TYPE_ACTIVATE) e1:SetType(EFFECT_TYPE_ACTIVATE)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(0,0x11e8) e1:SetHintTiming(0,0x11e8)
e1:SetCountLimit(1,12444060+EFFECT_COUNT_CODE_OATH)
e1:SetCost(c12444060.cost) e1:SetCost(c12444060.cost)
e1:SetTarget(c12444060.target) e1:SetTarget(c12444060.target)
e1:SetOperation(c12444060.activate) e1:SetOperation(c12444060.activate)
...@@ -32,7 +33,6 @@ function c12444060.cost(e,tp,eg,ep,ev,re,r,rp,chk) ...@@ -32,7 +33,6 @@ function c12444060.cost(e,tp,eg,ep,ev,re,r,rp,chk)
e1:SetTargetRange(1,0) e1:SetTargetRange(1,0)
e1:SetReset(RESET_PHASE+PHASE_END) e1:SetReset(RESET_PHASE+PHASE_END)
Duel.RegisterEffect(e1,tp) Duel.RegisterEffect(e1,tp)
Duel.RegisterFlagEffect(tp,12444060,RESET_PHASE+PHASE_END,0,1)
end end
function c12444060.filter(c,e,tp) function c12444060.filter(c,e,tp)
return c:IsSetCard(0x97) and c:IsCanBeSpecialSummoned(e,0,tp,false,false) return c:IsSetCard(0x97) and c:IsCanBeSpecialSummoned(e,0,tp,false,false)
......
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