else if (target->group_id > 0 && target->group_id == luaspell->caster->group_id) { // put group target list logic here } else { // self target target = NULL; luaspell->initial_target = 0; }