(ids []int)
| 25 | } |
| 26 | |
| 27 | func ValidateBuffIds(ids []int) error { |
| 28 | for _, id := range ids { |
| 29 | if buffs.GetBuffSpec(id) == nil { |
| 30 | return fmt.Errorf("invalid buff id: %d", id) |
| 31 | } |
| 32 | } |
| 33 | return nil |
| 34 | } |
| 35 | |
| 36 | func ValidateSpec(spec *MutatorSpec) error { |
| 37 | if err := ValidateMutatorId(spec.MutatorId); err != nil { |
no test coverage detected