Commit 482f96ce authored by argon.sun's avatar argon.sun

fix

parent af824bdf
...@@ -1857,4 +1857,5 @@ int32 scriptlib::card_reverse_in_deck(lua_State *L) { ...@@ -1857,4 +1857,5 @@ int32 scriptlib::card_reverse_in_deck(lua_State *L) {
pduel->write_buffer8(0); pduel->write_buffer8(0);
pduel->write_buffer32(pcard->data.code | 0x80000000); pduel->write_buffer32(pcard->data.code | 0x80000000);
} }
return 0;
} }
...@@ -17,6 +17,7 @@ int32 scriptlib::duel_enable_global_flag(lua_State *L) { ...@@ -17,6 +17,7 @@ int32 scriptlib::duel_enable_global_flag(lua_State *L) {
int32 flag = lua_tointeger(L, 1); int32 flag = lua_tointeger(L, 1);
duel* pduel = interpreter::get_duel_info(L); duel* pduel = interpreter::get_duel_info(L);
pduel->game_field->core.global_flag |= flag; pduel->game_field->core.global_flag |= flag;
return 0;
} }
int32 scriptlib::duel_get_lp(lua_State *L) { int32 scriptlib::duel_get_lp(lua_State *L) {
......
...@@ -6,9 +6,9 @@ function c58131925.initial_effect(c) ...@@ -6,9 +6,9 @@ function c58131925.initial_effect(c)
e1:SetCategory(CATEGORY_ATKCHANGE) e1:SetCategory(CATEGORY_ATKCHANGE)
e1:SetType(EFFECT_TYPE_QUICK_O) e1:SetType(EFFECT_TYPE_QUICK_O)
e1:SetCode(EVENT_FREE_CHAIN) e1:SetCode(EVENT_FREE_CHAIN)
e1:SetHintTiming(TIMING_DAMAGE_CAL) e1:SetHintTiming(TIMING_DAMAGE_STEP)
e1:SetRange(LOCATION_HAND) e1:SetRange(LOCATION_HAND)
e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP+EFFECT_FLAG_DAMAGE_CAL) e1:SetProperty(EFFECT_FLAG_CARD_TARGET+EFFECT_FLAG_DAMAGE_STEP)
e1:SetCondition(c58131925.condition) e1:SetCondition(c58131925.condition)
e1:SetCost(c58131925.cost) e1:SetCost(c58131925.cost)
e1:SetTarget(c58131925.target) e1:SetTarget(c58131925.target)
...@@ -17,7 +17,7 @@ function c58131925.initial_effect(c) ...@@ -17,7 +17,7 @@ function c58131925.initial_effect(c)
end end
function c58131925.condition(e,tp,eg,ep,ev,re,r,rp) function c58131925.condition(e,tp,eg,ep,ev,re,r,rp)
local phase=Duel.GetCurrentPhase() local phase=Duel.GetCurrentPhase()
return not (phase==PHASE_DAMAGE or phase==PHASE_DAMAGE_CAL) or not Duel.IsDamageCalculated() return phase~=PHASE_DAMAGE or not Duel.IsDamageCalculated()
end end
function c58131925.cost(e,tp,eg,ep,ev,re,r,rp,chk) function c58131925.cost(e,tp,eg,ep,ev,re,r,rp,chk)
if chk==0 then return e:GetHandler():IsDiscardable() end if chk==0 then return e:GetHandler():IsDiscardable() 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