add effect flag in Card.RegisterEffect #677
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Effect category
It means that it is an effects that "include some actions".
It can be modified based on the option when activating the effect.
Effect Flag
It is the property of the effect itself.
It will not be modified in most cases.
Card.IsEffectProperty
We should check effect property in
Card.IsEffectProperty
.Now it will add
EFFECT_FLAG_FUSION_SUMMON
when registering theCATEGORY_FUSION_SUMMON
effect.https://ocg-rule.readthedocs.io/zh-cn/latest/c04/%E7%81%B0%E6%B5%81%E4%B8%BD%C2%B7%E6%98%9F%E5%B0%98%E9%BE%99.html
Effect Category
包含X的效果
可能被發動時的選項改變
Effect Flag
效果本身的特性
一般不會被發動時的選項改變
Card.IsEffectProperty
應該改成檢查Effect Property
目前改成註冊
CATEGORY_FUSION_SUMMON
效果就會自動添加EFFECT_FLAG_FUSION_SUMMON
.Fix #648 , #676
@mercury233
@purerosefallen
@Wind2009-Louse
@fallenstardust