Commit c658d787 authored by DailyShana's avatar DailyShana

fix Effect.IsActivated

parent 0f903247
......@@ -985,7 +985,7 @@ int32 scriptlib::card_register_effect(lua_State *L) {
pduel->game_field->core.reseted_effects.insert(peffect);
return 0;
}
if((peffect->type & 0x7e0)
if((peffect->type & 0x7f0)
|| (pduel->game_field->core.reason_effect && (pduel->game_field->core.reason_effect->status & EFFECT_STATUS_ACTIVATED)))
peffect->status |= EFFECT_STATUS_ACTIVATED;
int32 id;
......
......@@ -71,7 +71,7 @@ int32 scriptlib::duel_register_effect(lua_State *L) {
if(playerid != 0 && playerid != 1)
return 0;
duel* pduel = peffect->pduel;
if((peffect->type & 0x7e0)
if((peffect->type & 0x7f0)
|| (pduel->game_field->core.reason_effect && (pduel->game_field->core.reason_effect->status & EFFECT_STATUS_ACTIVATED)))
peffect->status |= EFFECT_STATUS_ACTIVATED;
pduel->game_field->add_effect(peffect, playerid);
......
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