Commit b0002598 authored by mercury233's avatar mercury233 Committed by GitHub

Update effect::is_can_be_forbidden (#526)

parent 0f7878a6
...@@ -43,8 +43,6 @@ int32 effect::is_self_destroy_related() { ...@@ -43,8 +43,6 @@ int32 effect::is_self_destroy_related() {
int32 effect::is_can_be_forbidden() { int32 effect::is_can_be_forbidden() {
if (is_flag(EFFECT_FLAG_CANNOT_DISABLE) && !is_flag(EFFECT_FLAG_CANNOT_NEGATE)) if (is_flag(EFFECT_FLAG_CANNOT_DISABLE) && !is_flag(EFFECT_FLAG_CANNOT_NEGATE))
return FALSE; return FALSE;
if (code == EFFECT_CHANGE_CODE)
return FALSE;
return TRUE; return TRUE;
} }
// check if a single/field/equip effect is available // check if a single/field/equip effect is available
......
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