| 60 | } |
| 61 | |
| 62 | static bool HasAttribute(Span<const lcf::DBBitArray*> attribute_sets, int id) { |
| 63 | for (auto* as: attribute_sets) { |
| 64 | const auto idx = id - 1; |
| 65 | if (idx < static_cast<int>(as->size()) && (*as)[idx]) { |
| 66 | return true; |
| 67 | } |
| 68 | } |
| 69 | return false; |
| 70 | } |
| 71 | |
| 72 | int ApplyAttributeMultiplier(int effect, const Game_Battler& target, Span<const lcf::DBBitArray*> attribute_sets) { |
| 73 | int physical = INT_MIN; |
no test coverage detected