wangguan
2020-12-02 d7d30d2e665aa451f8bd3ea3c8b15391b765ccc3
Assets/Scripts/TowerDefense/Level/EndlessBuff/EndlessBuff.cs
@@ -49,7 +49,15 @@
                    isEffective = true;
                    break;
                case EndlessBuffUseTarget.Element:
                    isEffective = gemId == buffData.Config.target_type[1];
                    int attributeId = 0;
                    if (gemId == 101)
                        attributeId = 1;
                    else if (gemId == 201)
                        attributeId = 2;
                    else if (gemId == 301)
                        attributeId = 3;
                    isEffective = attributeId == buffData.Config.target_type[1];
                    break;
                case EndlessBuffUseTarget.Designated:
                    isEffective = gemId == buffData.Config.target_type[1];